Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationMon, 14 Dec 2009 12:30:45 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Dec/14/t1260819138ibf6wmf1b2edenh.htm/, Retrieved Sun, 05 May 2024 14:46:25 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=67640, Retrieved Sun, 05 May 2024 14:46:25 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact108
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:06:21] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [Seatbelt Law Model 3] [2009-12-14 19:30:45] [befe6dd6a614b6d3a2a74a47a0a4f514] [Current]
Feedback Forum

Post a new message
Dataseries X:
8,9	-3
8,8	-1
8,3	-3
7,5	-4
7,2	-6
7,4	0
8,8	-4
9,3	-2
9,3	-2
8,7	-6
8,2	-7
8,3	-6
8,5	-6
8,6	-3
8,5	-2
8,2	-5
8,1	-11
7,9	-11
8,6	-11
8,7	-10
8,7	-14
8,5	-8
8,4	-9
8,5	-5
8,7	-1
8,7	-2
8,6	-5
8,5	-4
8,3	-6
8	-2
8,2	-2
8,1	-2
8,1	-2
8	2
7,9	1
7,9	-8
8	-1
8	1
7,9	-1
8	2
7,7	2
7,2	1
7,5	-1
7,3	-2
7	-2
7	-1
7	-8
7,2	-4
7,3	-6
7,1	-3
6,8	-3
6,4	-7
6,1	-9
6,5	-11
7,7	-13
7,9	-11
7,5	-9
6,9	-17
6,6	-22
6,9	-25




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 4 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67640&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67640&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67640&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
TW[t] = + 8.94088917186533 + 0.00653226645769947CV[t] + 0.137834015945990M1[t] + 0.117136475596342M2[t] -0.0639642653802124M3[t] -0.327677912939847M4[t] -0.520939934167162M5[t] -0.579024567933734M6[t] + 0.222487597672791M7[t] + 0.348322323780837M8[t] + 0.241995769638123M9[t] -0.0256372377961309M10[t] -0.174979899148826M11[t] -0.0310605392742062t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
TW[t] =  +  8.94088917186533 +  0.00653226645769947CV[t] +  0.137834015945990M1[t] +  0.117136475596342M2[t] -0.0639642653802124M3[t] -0.327677912939847M4[t] -0.520939934167162M5[t] -0.579024567933734M6[t] +  0.222487597672791M7[t] +  0.348322323780837M8[t] +  0.241995769638123M9[t] -0.0256372377961309M10[t] -0.174979899148826M11[t] -0.0310605392742062t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67640&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]TW[t] =  +  8.94088917186533 +  0.00653226645769947CV[t] +  0.137834015945990M1[t] +  0.117136475596342M2[t] -0.0639642653802124M3[t] -0.327677912939847M4[t] -0.520939934167162M5[t] -0.579024567933734M6[t] +  0.222487597672791M7[t] +  0.348322323780837M8[t] +  0.241995769638123M9[t] -0.0256372377961309M10[t] -0.174979899148826M11[t] -0.0310605392742062t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67640&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67640&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Multiple Linear Regression - Estimated Regression Equation
TW[t] = + 8.94088917186533 + 0.00653226645769947CV[t] + 0.137834015945990M1[t] + 0.117136475596342M2[t] -0.0639642653802124M3[t] -0.327677912939847M4[t] -0.520939934167162M5[t] -0.579024567933734M6[t] + 0.222487597672791M7[t] + 0.348322323780837M8[t] + 0.241995769638123M9[t] -0.0256372377961309M10[t] -0.174979899148826M11[t] -0.0310605392742062t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)8.940889171865330.25946734.458700
CV0.006532266457699470.0126060.51820.60680.3034
M10.1378340159459900.3044490.45270.6528690.326434
M20.1171364755963420.3101650.37770.7074210.353711
M3-0.06396426538021240.305866-0.20910.8352740.417637
M4-0.3276779129398470.303316-1.08030.2856320.142816
M5-0.5209399341671620.297755-1.74960.0868630.043432
M6-0.5790245679337340.300481-1.9270.060170.030085
M70.2224875976727910.2971560.74870.4578360.228918
M80.3483223237808370.2985841.16660.2493930.124696
M90.2419957696381230.2977810.81270.4205970.210298
M10-0.02563723779613090.297434-0.08620.9316860.465843
M11-0.1749798991488260.294236-0.59470.5549640.277482
t-0.03106053927420620.003651-8.507300

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Ordinary Least Squares \tabularnewline
Variable & Parameter & S.D. & T-STATH0: parameter = 0 & 2-tail p-value & 1-tail p-value \tabularnewline
(Intercept) & 8.94088917186533 & 0.259467 & 34.4587 & 0 & 0 \tabularnewline
CV & 0.00653226645769947 & 0.012606 & 0.5182 & 0.6068 & 0.3034 \tabularnewline
M1 & 0.137834015945990 & 0.304449 & 0.4527 & 0.652869 & 0.326434 \tabularnewline
M2 & 0.117136475596342 & 0.310165 & 0.3777 & 0.707421 & 0.353711 \tabularnewline
M3 & -0.0639642653802124 & 0.305866 & -0.2091 & 0.835274 & 0.417637 \tabularnewline
M4 & -0.327677912939847 & 0.303316 & -1.0803 & 0.285632 & 0.142816 \tabularnewline
M5 & -0.520939934167162 & 0.297755 & -1.7496 & 0.086863 & 0.043432 \tabularnewline
M6 & -0.579024567933734 & 0.300481 & -1.927 & 0.06017 & 0.030085 \tabularnewline
M7 & 0.222487597672791 & 0.297156 & 0.7487 & 0.457836 & 0.228918 \tabularnewline
M8 & 0.348322323780837 & 0.298584 & 1.1666 & 0.249393 & 0.124696 \tabularnewline
M9 & 0.241995769638123 & 0.297781 & 0.8127 & 0.420597 & 0.210298 \tabularnewline
M10 & -0.0256372377961309 & 0.297434 & -0.0862 & 0.931686 & 0.465843 \tabularnewline
M11 & -0.174979899148826 & 0.294236 & -0.5947 & 0.554964 & 0.277482 \tabularnewline
t & -0.0310605392742062 & 0.003651 & -8.5073 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67640&T=2

[TABLE]
[ROW][C]Multiple Linear Regression - Ordinary Least Squares[/C][/ROW]
[ROW][C]Variable[/C][C]Parameter[/C][C]S.D.[/C][C]T-STATH0: parameter = 0[/C][C]2-tail p-value[/C][C]1-tail p-value[/C][/ROW]
[ROW][C](Intercept)[/C][C]8.94088917186533[/C][C]0.259467[/C][C]34.4587[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]CV[/C][C]0.00653226645769947[/C][C]0.012606[/C][C]0.5182[/C][C]0.6068[/C][C]0.3034[/C][/ROW]
[ROW][C]M1[/C][C]0.137834015945990[/C][C]0.304449[/C][C]0.4527[/C][C]0.652869[/C][C]0.326434[/C][/ROW]
[ROW][C]M2[/C][C]0.117136475596342[/C][C]0.310165[/C][C]0.3777[/C][C]0.707421[/C][C]0.353711[/C][/ROW]
[ROW][C]M3[/C][C]-0.0639642653802124[/C][C]0.305866[/C][C]-0.2091[/C][C]0.835274[/C][C]0.417637[/C][/ROW]
[ROW][C]M4[/C][C]-0.327677912939847[/C][C]0.303316[/C][C]-1.0803[/C][C]0.285632[/C][C]0.142816[/C][/ROW]
[ROW][C]M5[/C][C]-0.520939934167162[/C][C]0.297755[/C][C]-1.7496[/C][C]0.086863[/C][C]0.043432[/C][/ROW]
[ROW][C]M6[/C][C]-0.579024567933734[/C][C]0.300481[/C][C]-1.927[/C][C]0.06017[/C][C]0.030085[/C][/ROW]
[ROW][C]M7[/C][C]0.222487597672791[/C][C]0.297156[/C][C]0.7487[/C][C]0.457836[/C][C]0.228918[/C][/ROW]
[ROW][C]M8[/C][C]0.348322323780837[/C][C]0.298584[/C][C]1.1666[/C][C]0.249393[/C][C]0.124696[/C][/ROW]
[ROW][C]M9[/C][C]0.241995769638123[/C][C]0.297781[/C][C]0.8127[/C][C]0.420597[/C][C]0.210298[/C][/ROW]
[ROW][C]M10[/C][C]-0.0256372377961309[/C][C]0.297434[/C][C]-0.0862[/C][C]0.931686[/C][C]0.465843[/C][/ROW]
[ROW][C]M11[/C][C]-0.174979899148826[/C][C]0.294236[/C][C]-0.5947[/C][C]0.554964[/C][C]0.277482[/C][/ROW]
[ROW][C]t[/C][C]-0.0310605392742062[/C][C]0.003651[/C][C]-8.5073[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67640&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67640&T=2

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)8.940889171865330.25946734.458700
CV0.006532266457699470.0126060.51820.60680.3034
M10.1378340159459900.3044490.45270.6528690.326434
M20.1171364755963420.3101650.37770.7074210.353711
M3-0.06396426538021240.305866-0.20910.8352740.417637
M4-0.3276779129398470.303316-1.08030.2856320.142816
M5-0.5209399341671620.297755-1.74960.0868630.043432
M6-0.5790245679337340.300481-1.9270.060170.030085
M70.2224875976727910.2971560.74870.4578360.228918
M80.3483223237808370.2985841.16660.2493930.124696
M90.2419957696381230.2977810.81270.4205970.210298
M10-0.02563723779613090.297434-0.08620.9316860.465843
M11-0.1749798991488260.294236-0.59470.5549640.277482
t-0.03106053927420620.003651-8.507300







Multiple Linear Regression - Regression Statistics
Multiple R0.833530486242842
R-squared0.694773071496228
Adjusted R-squared0.608513287353858
F-TEST (value)8.05442627064214
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value4.60466417218086e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.465075588310465
Sum Squared Residuals9.94958393074696

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.833530486242842 \tabularnewline
R-squared & 0.694773071496228 \tabularnewline
Adjusted R-squared & 0.608513287353858 \tabularnewline
F-TEST (value) & 8.05442627064214 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 4.60466417218086e-08 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.465075588310465 \tabularnewline
Sum Squared Residuals & 9.94958393074696 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67640&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.833530486242842[/C][/ROW]
[ROW][C]R-squared[/C][C]0.694773071496228[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.608513287353858[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]8.05442627064214[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]4.60466417218086e-08[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.465075588310465[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]9.94958393074696[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67640&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67640&T=3

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Multiple Linear Regression - Regression Statistics
Multiple R0.833530486242842
R-squared0.694773071496228
Adjusted R-squared0.608513287353858
F-TEST (value)8.05442627064214
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value4.60466417218086e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.465075588310465
Sum Squared Residuals9.94958393074696







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.99.02806584916405-0.128065849164049
28.88.98937230245557-0.189372302455567
38.38.76414648928941-0.464146489289408
47.58.46284003599787-0.962840035997868
57.28.22545294258095-1.02545294258095
67.48.17550136828637-0.775501368286366
78.88.91982392878789-0.119823928787886
89.39.027662648537130.272337351462873
99.38.89027555512020.409724444879795
108.78.565452942580950.134547057419051
118.28.37851747549635-0.178517475496348
128.38.52896910182867-0.228969101828666
138.58.63574257850045-0.13574257850045
148.68.6035812982497-0.00358129824969552
158.58.397952284456630.102047715543366
168.28.08358129824970.116418701750304
178.17.820065139001980.279934860998023
187.97.73091996596120.169080034038802
198.68.501371592293520.0986284077064826
208.78.602678045585060.0973219544149426
218.78.439161886337340.260838113662661
228.58.179661938375070.320338061624925
238.47.992726471290470.407273528709526
248.58.16277489699590.337225103004108
258.78.295677439498470.404322560501526
268.78.237387093416920.462612906583079
278.68.005629013793060.594370986206939
288.57.717387093416920.78261290658308
298.37.480.82
3087.416983892790020.583016107209981
318.28.187435519122340.0125644808776612
328.18.28220970595618-0.182209705956178
338.18.14482261253926-0.0448226125392585
3487.87225813166160.127741868338404
357.97.6853226645770.214677335423006
367.97.770451626332320.129548373667681
3787.9229509682080.0770490317920008
3887.884257421499540.115742578500455
397.97.659031608333390.240968391666616
4087.383854220872640.616145779127357
417.77.159531660371120.540468339628879
427.27.063854220872640.136145779127357
437.57.82124131428956-0.321241314289563
447.37.9094832346657-0.609483234665704
4577.77209614124878-0.772096141248784
4677.47993486099802-0.479934860998023
4777.25380579516723-0.253805795167225
487.27.42385422087264-0.223854220872643
497.37.51756316462903-0.217563164629028
507.17.48540188437827-0.385401884378273
516.87.27324060412751-0.473240604127512
526.46.95233735146287-0.552337351462873
536.16.71495025804595-0.614950258045954
546.56.61274055208978-0.112740552089775
557.77.37012764550670.329872354493305
567.97.477966365255930.422033634744066
577.57.353643804754410.146356195245586
586.97.00269212638436-0.102692126384357
596.66.78962759346896-0.189627593468958
606.96.91395015397048-0.0139501539704796

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.9 & 9.02806584916405 & -0.128065849164049 \tabularnewline
2 & 8.8 & 8.98937230245557 & -0.189372302455567 \tabularnewline
3 & 8.3 & 8.76414648928941 & -0.464146489289408 \tabularnewline
4 & 7.5 & 8.46284003599787 & -0.962840035997868 \tabularnewline
5 & 7.2 & 8.22545294258095 & -1.02545294258095 \tabularnewline
6 & 7.4 & 8.17550136828637 & -0.775501368286366 \tabularnewline
7 & 8.8 & 8.91982392878789 & -0.119823928787886 \tabularnewline
8 & 9.3 & 9.02766264853713 & 0.272337351462873 \tabularnewline
9 & 9.3 & 8.8902755551202 & 0.409724444879795 \tabularnewline
10 & 8.7 & 8.56545294258095 & 0.134547057419051 \tabularnewline
11 & 8.2 & 8.37851747549635 & -0.178517475496348 \tabularnewline
12 & 8.3 & 8.52896910182867 & -0.228969101828666 \tabularnewline
13 & 8.5 & 8.63574257850045 & -0.13574257850045 \tabularnewline
14 & 8.6 & 8.6035812982497 & -0.00358129824969552 \tabularnewline
15 & 8.5 & 8.39795228445663 & 0.102047715543366 \tabularnewline
16 & 8.2 & 8.0835812982497 & 0.116418701750304 \tabularnewline
17 & 8.1 & 7.82006513900198 & 0.279934860998023 \tabularnewline
18 & 7.9 & 7.7309199659612 & 0.169080034038802 \tabularnewline
19 & 8.6 & 8.50137159229352 & 0.0986284077064826 \tabularnewline
20 & 8.7 & 8.60267804558506 & 0.0973219544149426 \tabularnewline
21 & 8.7 & 8.43916188633734 & 0.260838113662661 \tabularnewline
22 & 8.5 & 8.17966193837507 & 0.320338061624925 \tabularnewline
23 & 8.4 & 7.99272647129047 & 0.407273528709526 \tabularnewline
24 & 8.5 & 8.1627748969959 & 0.337225103004108 \tabularnewline
25 & 8.7 & 8.29567743949847 & 0.404322560501526 \tabularnewline
26 & 8.7 & 8.23738709341692 & 0.462612906583079 \tabularnewline
27 & 8.6 & 8.00562901379306 & 0.594370986206939 \tabularnewline
28 & 8.5 & 7.71738709341692 & 0.78261290658308 \tabularnewline
29 & 8.3 & 7.48 & 0.82 \tabularnewline
30 & 8 & 7.41698389279002 & 0.583016107209981 \tabularnewline
31 & 8.2 & 8.18743551912234 & 0.0125644808776612 \tabularnewline
32 & 8.1 & 8.28220970595618 & -0.182209705956178 \tabularnewline
33 & 8.1 & 8.14482261253926 & -0.0448226125392585 \tabularnewline
34 & 8 & 7.8722581316616 & 0.127741868338404 \tabularnewline
35 & 7.9 & 7.685322664577 & 0.214677335423006 \tabularnewline
36 & 7.9 & 7.77045162633232 & 0.129548373667681 \tabularnewline
37 & 8 & 7.922950968208 & 0.0770490317920008 \tabularnewline
38 & 8 & 7.88425742149954 & 0.115742578500455 \tabularnewline
39 & 7.9 & 7.65903160833339 & 0.240968391666616 \tabularnewline
40 & 8 & 7.38385422087264 & 0.616145779127357 \tabularnewline
41 & 7.7 & 7.15953166037112 & 0.540468339628879 \tabularnewline
42 & 7.2 & 7.06385422087264 & 0.136145779127357 \tabularnewline
43 & 7.5 & 7.82124131428956 & -0.321241314289563 \tabularnewline
44 & 7.3 & 7.9094832346657 & -0.609483234665704 \tabularnewline
45 & 7 & 7.77209614124878 & -0.772096141248784 \tabularnewline
46 & 7 & 7.47993486099802 & -0.479934860998023 \tabularnewline
47 & 7 & 7.25380579516723 & -0.253805795167225 \tabularnewline
48 & 7.2 & 7.42385422087264 & -0.223854220872643 \tabularnewline
49 & 7.3 & 7.51756316462903 & -0.217563164629028 \tabularnewline
50 & 7.1 & 7.48540188437827 & -0.385401884378273 \tabularnewline
51 & 6.8 & 7.27324060412751 & -0.473240604127512 \tabularnewline
52 & 6.4 & 6.95233735146287 & -0.552337351462873 \tabularnewline
53 & 6.1 & 6.71495025804595 & -0.614950258045954 \tabularnewline
54 & 6.5 & 6.61274055208978 & -0.112740552089775 \tabularnewline
55 & 7.7 & 7.3701276455067 & 0.329872354493305 \tabularnewline
56 & 7.9 & 7.47796636525593 & 0.422033634744066 \tabularnewline
57 & 7.5 & 7.35364380475441 & 0.146356195245586 \tabularnewline
58 & 6.9 & 7.00269212638436 & -0.102692126384357 \tabularnewline
59 & 6.6 & 6.78962759346896 & -0.189627593468958 \tabularnewline
60 & 6.9 & 6.91395015397048 & -0.0139501539704796 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67640&T=4

[TABLE]
[ROW][C]Multiple Linear Regression - Actuals, Interpolation, and Residuals[/C][/ROW]
[ROW][C]Time or Index[/C][C]Actuals[/C][C]InterpolationForecast[/C][C]ResidualsPrediction Error[/C][/ROW]
[ROW][C]1[/C][C]8.9[/C][C]9.02806584916405[/C][C]-0.128065849164049[/C][/ROW]
[ROW][C]2[/C][C]8.8[/C][C]8.98937230245557[/C][C]-0.189372302455567[/C][/ROW]
[ROW][C]3[/C][C]8.3[/C][C]8.76414648928941[/C][C]-0.464146489289408[/C][/ROW]
[ROW][C]4[/C][C]7.5[/C][C]8.46284003599787[/C][C]-0.962840035997868[/C][/ROW]
[ROW][C]5[/C][C]7.2[/C][C]8.22545294258095[/C][C]-1.02545294258095[/C][/ROW]
[ROW][C]6[/C][C]7.4[/C][C]8.17550136828637[/C][C]-0.775501368286366[/C][/ROW]
[ROW][C]7[/C][C]8.8[/C][C]8.91982392878789[/C][C]-0.119823928787886[/C][/ROW]
[ROW][C]8[/C][C]9.3[/C][C]9.02766264853713[/C][C]0.272337351462873[/C][/ROW]
[ROW][C]9[/C][C]9.3[/C][C]8.8902755551202[/C][C]0.409724444879795[/C][/ROW]
[ROW][C]10[/C][C]8.7[/C][C]8.56545294258095[/C][C]0.134547057419051[/C][/ROW]
[ROW][C]11[/C][C]8.2[/C][C]8.37851747549635[/C][C]-0.178517475496348[/C][/ROW]
[ROW][C]12[/C][C]8.3[/C][C]8.52896910182867[/C][C]-0.228969101828666[/C][/ROW]
[ROW][C]13[/C][C]8.5[/C][C]8.63574257850045[/C][C]-0.13574257850045[/C][/ROW]
[ROW][C]14[/C][C]8.6[/C][C]8.6035812982497[/C][C]-0.00358129824969552[/C][/ROW]
[ROW][C]15[/C][C]8.5[/C][C]8.39795228445663[/C][C]0.102047715543366[/C][/ROW]
[ROW][C]16[/C][C]8.2[/C][C]8.0835812982497[/C][C]0.116418701750304[/C][/ROW]
[ROW][C]17[/C][C]8.1[/C][C]7.82006513900198[/C][C]0.279934860998023[/C][/ROW]
[ROW][C]18[/C][C]7.9[/C][C]7.7309199659612[/C][C]0.169080034038802[/C][/ROW]
[ROW][C]19[/C][C]8.6[/C][C]8.50137159229352[/C][C]0.0986284077064826[/C][/ROW]
[ROW][C]20[/C][C]8.7[/C][C]8.60267804558506[/C][C]0.0973219544149426[/C][/ROW]
[ROW][C]21[/C][C]8.7[/C][C]8.43916188633734[/C][C]0.260838113662661[/C][/ROW]
[ROW][C]22[/C][C]8.5[/C][C]8.17966193837507[/C][C]0.320338061624925[/C][/ROW]
[ROW][C]23[/C][C]8.4[/C][C]7.99272647129047[/C][C]0.407273528709526[/C][/ROW]
[ROW][C]24[/C][C]8.5[/C][C]8.1627748969959[/C][C]0.337225103004108[/C][/ROW]
[ROW][C]25[/C][C]8.7[/C][C]8.29567743949847[/C][C]0.404322560501526[/C][/ROW]
[ROW][C]26[/C][C]8.7[/C][C]8.23738709341692[/C][C]0.462612906583079[/C][/ROW]
[ROW][C]27[/C][C]8.6[/C][C]8.00562901379306[/C][C]0.594370986206939[/C][/ROW]
[ROW][C]28[/C][C]8.5[/C][C]7.71738709341692[/C][C]0.78261290658308[/C][/ROW]
[ROW][C]29[/C][C]8.3[/C][C]7.48[/C][C]0.82[/C][/ROW]
[ROW][C]30[/C][C]8[/C][C]7.41698389279002[/C][C]0.583016107209981[/C][/ROW]
[ROW][C]31[/C][C]8.2[/C][C]8.18743551912234[/C][C]0.0125644808776612[/C][/ROW]
[ROW][C]32[/C][C]8.1[/C][C]8.28220970595618[/C][C]-0.182209705956178[/C][/ROW]
[ROW][C]33[/C][C]8.1[/C][C]8.14482261253926[/C][C]-0.0448226125392585[/C][/ROW]
[ROW][C]34[/C][C]8[/C][C]7.8722581316616[/C][C]0.127741868338404[/C][/ROW]
[ROW][C]35[/C][C]7.9[/C][C]7.685322664577[/C][C]0.214677335423006[/C][/ROW]
[ROW][C]36[/C][C]7.9[/C][C]7.77045162633232[/C][C]0.129548373667681[/C][/ROW]
[ROW][C]37[/C][C]8[/C][C]7.922950968208[/C][C]0.0770490317920008[/C][/ROW]
[ROW][C]38[/C][C]8[/C][C]7.88425742149954[/C][C]0.115742578500455[/C][/ROW]
[ROW][C]39[/C][C]7.9[/C][C]7.65903160833339[/C][C]0.240968391666616[/C][/ROW]
[ROW][C]40[/C][C]8[/C][C]7.38385422087264[/C][C]0.616145779127357[/C][/ROW]
[ROW][C]41[/C][C]7.7[/C][C]7.15953166037112[/C][C]0.540468339628879[/C][/ROW]
[ROW][C]42[/C][C]7.2[/C][C]7.06385422087264[/C][C]0.136145779127357[/C][/ROW]
[ROW][C]43[/C][C]7.5[/C][C]7.82124131428956[/C][C]-0.321241314289563[/C][/ROW]
[ROW][C]44[/C][C]7.3[/C][C]7.9094832346657[/C][C]-0.609483234665704[/C][/ROW]
[ROW][C]45[/C][C]7[/C][C]7.77209614124878[/C][C]-0.772096141248784[/C][/ROW]
[ROW][C]46[/C][C]7[/C][C]7.47993486099802[/C][C]-0.479934860998023[/C][/ROW]
[ROW][C]47[/C][C]7[/C][C]7.25380579516723[/C][C]-0.253805795167225[/C][/ROW]
[ROW][C]48[/C][C]7.2[/C][C]7.42385422087264[/C][C]-0.223854220872643[/C][/ROW]
[ROW][C]49[/C][C]7.3[/C][C]7.51756316462903[/C][C]-0.217563164629028[/C][/ROW]
[ROW][C]50[/C][C]7.1[/C][C]7.48540188437827[/C][C]-0.385401884378273[/C][/ROW]
[ROW][C]51[/C][C]6.8[/C][C]7.27324060412751[/C][C]-0.473240604127512[/C][/ROW]
[ROW][C]52[/C][C]6.4[/C][C]6.95233735146287[/C][C]-0.552337351462873[/C][/ROW]
[ROW][C]53[/C][C]6.1[/C][C]6.71495025804595[/C][C]-0.614950258045954[/C][/ROW]
[ROW][C]54[/C][C]6.5[/C][C]6.61274055208978[/C][C]-0.112740552089775[/C][/ROW]
[ROW][C]55[/C][C]7.7[/C][C]7.3701276455067[/C][C]0.329872354493305[/C][/ROW]
[ROW][C]56[/C][C]7.9[/C][C]7.47796636525593[/C][C]0.422033634744066[/C][/ROW]
[ROW][C]57[/C][C]7.5[/C][C]7.35364380475441[/C][C]0.146356195245586[/C][/ROW]
[ROW][C]58[/C][C]6.9[/C][C]7.00269212638436[/C][C]-0.102692126384357[/C][/ROW]
[ROW][C]59[/C][C]6.6[/C][C]6.78962759346896[/C][C]-0.189627593468958[/C][/ROW]
[ROW][C]60[/C][C]6.9[/C][C]6.91395015397048[/C][C]-0.0139501539704796[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67640&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67640&T=4

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.99.02806584916405-0.128065849164049
28.88.98937230245557-0.189372302455567
38.38.76414648928941-0.464146489289408
47.58.46284003599787-0.962840035997868
57.28.22545294258095-1.02545294258095
67.48.17550136828637-0.775501368286366
78.88.91982392878789-0.119823928787886
89.39.027662648537130.272337351462873
99.38.89027555512020.409724444879795
108.78.565452942580950.134547057419051
118.28.37851747549635-0.178517475496348
128.38.52896910182867-0.228969101828666
138.58.63574257850045-0.13574257850045
148.68.6035812982497-0.00358129824969552
158.58.397952284456630.102047715543366
168.28.08358129824970.116418701750304
178.17.820065139001980.279934860998023
187.97.73091996596120.169080034038802
198.68.501371592293520.0986284077064826
208.78.602678045585060.0973219544149426
218.78.439161886337340.260838113662661
228.58.179661938375070.320338061624925
238.47.992726471290470.407273528709526
248.58.16277489699590.337225103004108
258.78.295677439498470.404322560501526
268.78.237387093416920.462612906583079
278.68.005629013793060.594370986206939
288.57.717387093416920.78261290658308
298.37.480.82
3087.416983892790020.583016107209981
318.28.187435519122340.0125644808776612
328.18.28220970595618-0.182209705956178
338.18.14482261253926-0.0448226125392585
3487.87225813166160.127741868338404
357.97.6853226645770.214677335423006
367.97.770451626332320.129548373667681
3787.9229509682080.0770490317920008
3887.884257421499540.115742578500455
397.97.659031608333390.240968391666616
4087.383854220872640.616145779127357
417.77.159531660371120.540468339628879
427.27.063854220872640.136145779127357
437.57.82124131428956-0.321241314289563
447.37.9094832346657-0.609483234665704
4577.77209614124878-0.772096141248784
4677.47993486099802-0.479934860998023
4777.25380579516723-0.253805795167225
487.27.42385422087264-0.223854220872643
497.37.51756316462903-0.217563164629028
507.17.48540188437827-0.385401884378273
516.87.27324060412751-0.473240604127512
526.46.95233735146287-0.552337351462873
536.16.71495025804595-0.614950258045954
546.56.61274055208978-0.112740552089775
557.77.37012764550670.329872354493305
567.97.477966365255930.422033634744066
577.57.353643804754410.146356195245586
586.97.00269212638436-0.102692126384357
596.66.78962759346896-0.189627593468958
606.96.91395015397048-0.0139501539704796







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.7485877267660660.5028245464678690.251412273233934
180.6308181504123710.7383636991752570.369181849587629
190.6224206475686700.7551587048626590.377579352431330
200.7050115363675490.5899769272649030.294988463632451
210.6705499680668850.658900063866230.329450031933115
220.5954370492948710.8091259014102580.404562950705129
230.4875373181978410.9750746363956810.512462681802159
240.3784041175260840.7568082350521680.621595882473916
250.3038750486809210.6077500973618420.696124951319079
260.2197407068837450.4394814137674890.780259293116256
270.152782132617790.305564265235580.84721786738221
280.1407866324641070.2815732649282150.859213367535893
290.1164650265681240.2329300531362480.883534973431876
300.07695029215292570.1539005843058510.923049707847074
310.1272796139390200.2545592278780390.87272038606098
320.2430582855936930.4861165711873860.756941714406307
330.2789829969178830.5579659938357650.721017003082117
340.2206375293945650.441275058789130.779362470605435
350.1663495893677780.3326991787355570.833650410632222
360.1273708466576950.2547416933153910.872629153342305
370.09503100841783220.1900620168356640.904968991582168
380.06677589146829060.1335517829365810.93322410853171
390.04955592433222470.09911184866444940.950444075667775
400.1308552541652950.2617105083305900.869144745834705
410.6962542989647430.6074914020705150.303745701035257
420.9217725769338370.1564548461323260.0782274230661632
430.8362499888864490.3275000222271020.163750011113551

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.748587726766066 & 0.502824546467869 & 0.251412273233934 \tabularnewline
18 & 0.630818150412371 & 0.738363699175257 & 0.369181849587629 \tabularnewline
19 & 0.622420647568670 & 0.755158704862659 & 0.377579352431330 \tabularnewline
20 & 0.705011536367549 & 0.589976927264903 & 0.294988463632451 \tabularnewline
21 & 0.670549968066885 & 0.65890006386623 & 0.329450031933115 \tabularnewline
22 & 0.595437049294871 & 0.809125901410258 & 0.404562950705129 \tabularnewline
23 & 0.487537318197841 & 0.975074636395681 & 0.512462681802159 \tabularnewline
24 & 0.378404117526084 & 0.756808235052168 & 0.621595882473916 \tabularnewline
25 & 0.303875048680921 & 0.607750097361842 & 0.696124951319079 \tabularnewline
26 & 0.219740706883745 & 0.439481413767489 & 0.780259293116256 \tabularnewline
27 & 0.15278213261779 & 0.30556426523558 & 0.84721786738221 \tabularnewline
28 & 0.140786632464107 & 0.281573264928215 & 0.859213367535893 \tabularnewline
29 & 0.116465026568124 & 0.232930053136248 & 0.883534973431876 \tabularnewline
30 & 0.0769502921529257 & 0.153900584305851 & 0.923049707847074 \tabularnewline
31 & 0.127279613939020 & 0.254559227878039 & 0.87272038606098 \tabularnewline
32 & 0.243058285593693 & 0.486116571187386 & 0.756941714406307 \tabularnewline
33 & 0.278982996917883 & 0.557965993835765 & 0.721017003082117 \tabularnewline
34 & 0.220637529394565 & 0.44127505878913 & 0.779362470605435 \tabularnewline
35 & 0.166349589367778 & 0.332699178735557 & 0.833650410632222 \tabularnewline
36 & 0.127370846657695 & 0.254741693315391 & 0.872629153342305 \tabularnewline
37 & 0.0950310084178322 & 0.190062016835664 & 0.904968991582168 \tabularnewline
38 & 0.0667758914682906 & 0.133551782936581 & 0.93322410853171 \tabularnewline
39 & 0.0495559243322247 & 0.0991118486644494 & 0.950444075667775 \tabularnewline
40 & 0.130855254165295 & 0.261710508330590 & 0.869144745834705 \tabularnewline
41 & 0.696254298964743 & 0.607491402070515 & 0.303745701035257 \tabularnewline
42 & 0.921772576933837 & 0.156454846132326 & 0.0782274230661632 \tabularnewline
43 & 0.836249988886449 & 0.327500022227102 & 0.163750011113551 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67640&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]17[/C][C]0.748587726766066[/C][C]0.502824546467869[/C][C]0.251412273233934[/C][/ROW]
[ROW][C]18[/C][C]0.630818150412371[/C][C]0.738363699175257[/C][C]0.369181849587629[/C][/ROW]
[ROW][C]19[/C][C]0.622420647568670[/C][C]0.755158704862659[/C][C]0.377579352431330[/C][/ROW]
[ROW][C]20[/C][C]0.705011536367549[/C][C]0.589976927264903[/C][C]0.294988463632451[/C][/ROW]
[ROW][C]21[/C][C]0.670549968066885[/C][C]0.65890006386623[/C][C]0.329450031933115[/C][/ROW]
[ROW][C]22[/C][C]0.595437049294871[/C][C]0.809125901410258[/C][C]0.404562950705129[/C][/ROW]
[ROW][C]23[/C][C]0.487537318197841[/C][C]0.975074636395681[/C][C]0.512462681802159[/C][/ROW]
[ROW][C]24[/C][C]0.378404117526084[/C][C]0.756808235052168[/C][C]0.621595882473916[/C][/ROW]
[ROW][C]25[/C][C]0.303875048680921[/C][C]0.607750097361842[/C][C]0.696124951319079[/C][/ROW]
[ROW][C]26[/C][C]0.219740706883745[/C][C]0.439481413767489[/C][C]0.780259293116256[/C][/ROW]
[ROW][C]27[/C][C]0.15278213261779[/C][C]0.30556426523558[/C][C]0.84721786738221[/C][/ROW]
[ROW][C]28[/C][C]0.140786632464107[/C][C]0.281573264928215[/C][C]0.859213367535893[/C][/ROW]
[ROW][C]29[/C][C]0.116465026568124[/C][C]0.232930053136248[/C][C]0.883534973431876[/C][/ROW]
[ROW][C]30[/C][C]0.0769502921529257[/C][C]0.153900584305851[/C][C]0.923049707847074[/C][/ROW]
[ROW][C]31[/C][C]0.127279613939020[/C][C]0.254559227878039[/C][C]0.87272038606098[/C][/ROW]
[ROW][C]32[/C][C]0.243058285593693[/C][C]0.486116571187386[/C][C]0.756941714406307[/C][/ROW]
[ROW][C]33[/C][C]0.278982996917883[/C][C]0.557965993835765[/C][C]0.721017003082117[/C][/ROW]
[ROW][C]34[/C][C]0.220637529394565[/C][C]0.44127505878913[/C][C]0.779362470605435[/C][/ROW]
[ROW][C]35[/C][C]0.166349589367778[/C][C]0.332699178735557[/C][C]0.833650410632222[/C][/ROW]
[ROW][C]36[/C][C]0.127370846657695[/C][C]0.254741693315391[/C][C]0.872629153342305[/C][/ROW]
[ROW][C]37[/C][C]0.0950310084178322[/C][C]0.190062016835664[/C][C]0.904968991582168[/C][/ROW]
[ROW][C]38[/C][C]0.0667758914682906[/C][C]0.133551782936581[/C][C]0.93322410853171[/C][/ROW]
[ROW][C]39[/C][C]0.0495559243322247[/C][C]0.0991118486644494[/C][C]0.950444075667775[/C][/ROW]
[ROW][C]40[/C][C]0.130855254165295[/C][C]0.261710508330590[/C][C]0.869144745834705[/C][/ROW]
[ROW][C]41[/C][C]0.696254298964743[/C][C]0.607491402070515[/C][C]0.303745701035257[/C][/ROW]
[ROW][C]42[/C][C]0.921772576933837[/C][C]0.156454846132326[/C][C]0.0782274230661632[/C][/ROW]
[ROW][C]43[/C][C]0.836249988886449[/C][C]0.327500022227102[/C][C]0.163750011113551[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67640&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67640&T=5

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.7485877267660660.5028245464678690.251412273233934
180.6308181504123710.7383636991752570.369181849587629
190.6224206475686700.7551587048626590.377579352431330
200.7050115363675490.5899769272649030.294988463632451
210.6705499680668850.658900063866230.329450031933115
220.5954370492948710.8091259014102580.404562950705129
230.4875373181978410.9750746363956810.512462681802159
240.3784041175260840.7568082350521680.621595882473916
250.3038750486809210.6077500973618420.696124951319079
260.2197407068837450.4394814137674890.780259293116256
270.152782132617790.305564265235580.84721786738221
280.1407866324641070.2815732649282150.859213367535893
290.1164650265681240.2329300531362480.883534973431876
300.07695029215292570.1539005843058510.923049707847074
310.1272796139390200.2545592278780390.87272038606098
320.2430582855936930.4861165711873860.756941714406307
330.2789829969178830.5579659938357650.721017003082117
340.2206375293945650.441275058789130.779362470605435
350.1663495893677780.3326991787355570.833650410632222
360.1273708466576950.2547416933153910.872629153342305
370.09503100841783220.1900620168356640.904968991582168
380.06677589146829060.1335517829365810.93322410853171
390.04955592433222470.09911184866444940.950444075667775
400.1308552541652950.2617105083305900.869144745834705
410.6962542989647430.6074914020705150.303745701035257
420.9217725769338370.1564548461323260.0782274230661632
430.8362499888864490.3275000222271020.163750011113551







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level10.0370370370370370OK

\begin{tabular}{lllllllll}
\hline
Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
Description & # significant tests & % significant tests & OK/NOK \tabularnewline
1% type I error level & 0 & 0 & OK \tabularnewline
5% type I error level & 0 & 0 & OK \tabularnewline
10% type I error level & 1 & 0.0370370370370370 & OK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67640&T=6

[TABLE]
[ROW][C]Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]Description[/C][C]# significant tests[/C][C]% significant tests[/C][C]OK/NOK[/C][/ROW]
[ROW][C]1% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]1[/C][C]0.0370370370370370[/C][C]OK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67640&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67640&T=6

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level10.0370370370370370OK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT
H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation
Forecast', 1, TRUE)
a<-table.element(a, 'Residuals
Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}