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 computationSun, 22 Nov 2009 06:32:33 -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/Nov/22/t12588968384s5p2uwca14kqi4.htm/, Retrieved Sun, 28 Apr 2024 15:57:59 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58627, Retrieved Sun, 28 Apr 2024 15:57:59 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact242
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]
F    D    [Multiple Regression] [ws7777] [2009-11-20 12:13:23] [b8b64ced21f32e31669b267b64eede7f]
-    D        [Multiple Regression] [w7] [2009-11-22 13:32:33] [30a48cc4afddc7f052994dfe2358176d] [Current]
-    D          [Multiple Regression] [verbetering] [2009-11-27 09:27:31] [f5d341d4bbba73282fc6e80153a6d315]
Feedback Forum

Post a new message
Dataseries X:
8	0
8,1	0
7,7	0
7,5	0
7,6	0
7,8	0
7,8	0
7,8	0
7,5	0
7,5	0
7,1	0
7,5	0
7,5	0
7,6	0
7,7	0
7,7	0
7,9	0
8,1	0
8,2	0
8,2	0
8,2	0
7,9	0
7,3	0
6,9	0
6,6	0
6,7	0
6,9	0
7	0
7,1	0
7,2	0
7,1	0
6,9	0
7	0
6,8	0
6,4	0
6,7	0
6,6	0
6,4	0
6,3	0
6,2	0
6,5	0
6,8	1
6,8	1
6,4	1
6,1	1
5,8	1
6,1	1
7,2	1
7,3	1
6,9	1
6,1	1
5,8	1
6,2	1
7,1	1
7,7	1
7,9	1
7,7	1
7,4	1
7,5	1
8	1
8,1	1




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=58627&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=58627&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58627&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
Y[t] = + 7.98971428571429 + 0.291428571428571X[t] -0.0081111111111108M1[t] -0.296793650793651M2[t] -0.473285714285714M3[t] -0.549777777777779M4[t] -0.306269841269842M5[t] -0.00104761904761940M6[t] + 0.142460317460317M7[t] + 0.0859682539682537M8[t] -0.0305238095238098M9[t] -0.227015873015873M10[t] -0.403507936507937M11[t] -0.0235079365079365t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  7.98971428571429 +  0.291428571428571X[t] -0.0081111111111108M1[t] -0.296793650793651M2[t] -0.473285714285714M3[t] -0.549777777777779M4[t] -0.306269841269842M5[t] -0.00104761904761940M6[t] +  0.142460317460317M7[t] +  0.0859682539682537M8[t] -0.0305238095238098M9[t] -0.227015873015873M10[t] -0.403507936507937M11[t] -0.0235079365079365t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58627&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  7.98971428571429 +  0.291428571428571X[t] -0.0081111111111108M1[t] -0.296793650793651M2[t] -0.473285714285714M3[t] -0.549777777777779M4[t] -0.306269841269842M5[t] -0.00104761904761940M6[t] +  0.142460317460317M7[t] +  0.0859682539682537M8[t] -0.0305238095238098M9[t] -0.227015873015873M10[t] -0.403507936507937M11[t] -0.0235079365079365t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58627&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58627&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
Y[t] = + 7.98971428571429 + 0.291428571428571X[t] -0.0081111111111108M1[t] -0.296793650793651M2[t] -0.473285714285714M3[t] -0.549777777777779M4[t] -0.306269841269842M5[t] -0.00104761904761940M6[t] + 0.142460317460317M7[t] + 0.0859682539682537M8[t] -0.0305238095238098M9[t] -0.227015873015873M10[t] -0.403507936507937M11[t] -0.0235079365079365t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)7.989714285714290.33745623.676300
X0.2914285714285710.292590.9960.3243350.162168
M1-0.00811111111111080.372191-0.02180.9827050.491353
M2-0.2967936507936510.390476-0.76010.4510020.225501
M3-0.4732857142857140.389954-1.21370.2309280.115464
M4-0.5497777777777790.389587-1.41120.1647770.082388
M5-0.3062698412698420.389374-0.78660.4354810.217741
M6-0.001047619047619400.390607-0.00270.9978710.498936
M70.1424603174603170.3897570.36550.716370.358185
M80.08596825396825370.389060.2210.8260770.413039
M9-0.03052380952380980.388517-0.07860.9377120.468856
M10-0.2270158730158730.388129-0.58490.5614140.280707
M11-0.4035079365079370.387895-1.04020.3035460.151773
t-0.02350793650793650.007766-3.02720.0039980.001999

\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) & 7.98971428571429 & 0.337456 & 23.6763 & 0 & 0 \tabularnewline
X & 0.291428571428571 & 0.29259 & 0.996 & 0.324335 & 0.162168 \tabularnewline
M1 & -0.0081111111111108 & 0.372191 & -0.0218 & 0.982705 & 0.491353 \tabularnewline
M2 & -0.296793650793651 & 0.390476 & -0.7601 & 0.451002 & 0.225501 \tabularnewline
M3 & -0.473285714285714 & 0.389954 & -1.2137 & 0.230928 & 0.115464 \tabularnewline
M4 & -0.549777777777779 & 0.389587 & -1.4112 & 0.164777 & 0.082388 \tabularnewline
M5 & -0.306269841269842 & 0.389374 & -0.7866 & 0.435481 & 0.217741 \tabularnewline
M6 & -0.00104761904761940 & 0.390607 & -0.0027 & 0.997871 & 0.498936 \tabularnewline
M7 & 0.142460317460317 & 0.389757 & 0.3655 & 0.71637 & 0.358185 \tabularnewline
M8 & 0.0859682539682537 & 0.38906 & 0.221 & 0.826077 & 0.413039 \tabularnewline
M9 & -0.0305238095238098 & 0.388517 & -0.0786 & 0.937712 & 0.468856 \tabularnewline
M10 & -0.227015873015873 & 0.388129 & -0.5849 & 0.561414 & 0.280707 \tabularnewline
M11 & -0.403507936507937 & 0.387895 & -1.0402 & 0.303546 & 0.151773 \tabularnewline
t & -0.0235079365079365 & 0.007766 & -3.0272 & 0.003998 & 0.001999 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58627&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]7.98971428571429[/C][C]0.337456[/C][C]23.6763[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]0.291428571428571[/C][C]0.29259[/C][C]0.996[/C][C]0.324335[/C][C]0.162168[/C][/ROW]
[ROW][C]M1[/C][C]-0.0081111111111108[/C][C]0.372191[/C][C]-0.0218[/C][C]0.982705[/C][C]0.491353[/C][/ROW]
[ROW][C]M2[/C][C]-0.296793650793651[/C][C]0.390476[/C][C]-0.7601[/C][C]0.451002[/C][C]0.225501[/C][/ROW]
[ROW][C]M3[/C][C]-0.473285714285714[/C][C]0.389954[/C][C]-1.2137[/C][C]0.230928[/C][C]0.115464[/C][/ROW]
[ROW][C]M4[/C][C]-0.549777777777779[/C][C]0.389587[/C][C]-1.4112[/C][C]0.164777[/C][C]0.082388[/C][/ROW]
[ROW][C]M5[/C][C]-0.306269841269842[/C][C]0.389374[/C][C]-0.7866[/C][C]0.435481[/C][C]0.217741[/C][/ROW]
[ROW][C]M6[/C][C]-0.00104761904761940[/C][C]0.390607[/C][C]-0.0027[/C][C]0.997871[/C][C]0.498936[/C][/ROW]
[ROW][C]M7[/C][C]0.142460317460317[/C][C]0.389757[/C][C]0.3655[/C][C]0.71637[/C][C]0.358185[/C][/ROW]
[ROW][C]M8[/C][C]0.0859682539682537[/C][C]0.38906[/C][C]0.221[/C][C]0.826077[/C][C]0.413039[/C][/ROW]
[ROW][C]M9[/C][C]-0.0305238095238098[/C][C]0.388517[/C][C]-0.0786[/C][C]0.937712[/C][C]0.468856[/C][/ROW]
[ROW][C]M10[/C][C]-0.227015873015873[/C][C]0.388129[/C][C]-0.5849[/C][C]0.561414[/C][C]0.280707[/C][/ROW]
[ROW][C]M11[/C][C]-0.403507936507937[/C][C]0.387895[/C][C]-1.0402[/C][C]0.303546[/C][C]0.151773[/C][/ROW]
[ROW][C]t[/C][C]-0.0235079365079365[/C][C]0.007766[/C][C]-3.0272[/C][C]0.003998[/C][C]0.001999[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58627&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58627&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)7.989714285714290.33745623.676300
X0.2914285714285710.292590.9960.3243350.162168
M1-0.00811111111111080.372191-0.02180.9827050.491353
M2-0.2967936507936510.390476-0.76010.4510020.225501
M3-0.4732857142857140.389954-1.21370.2309280.115464
M4-0.5497777777777790.389587-1.41120.1647770.082388
M5-0.3062698412698420.389374-0.78660.4354810.217741
M6-0.001047619047619400.390607-0.00270.9978710.498936
M70.1424603174603170.3897570.36550.716370.358185
M80.08596825396825370.389060.2210.8260770.413039
M9-0.03052380952380980.388517-0.07860.9377120.468856
M10-0.2270158730158730.388129-0.58490.5614140.280707
M11-0.4035079365079370.387895-1.04020.3035460.151773
t-0.02350793650793650.007766-3.02720.0039980.001999







Multiple Linear Regression - Regression Statistics
Multiple R0.574299977559274
R-squared0.329820464224582
Adjusted R-squared0.144451656456913
F-TEST (value)1.77926625410442
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0.0752311735750701
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.613193676007708
Sum Squared Residuals17.6723047619048

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.574299977559274 \tabularnewline
R-squared & 0.329820464224582 \tabularnewline
Adjusted R-squared & 0.144451656456913 \tabularnewline
F-TEST (value) & 1.77926625410442 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.0752311735750701 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.613193676007708 \tabularnewline
Sum Squared Residuals & 17.6723047619048 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58627&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.574299977559274[/C][/ROW]
[ROW][C]R-squared[/C][C]0.329820464224582[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.144451656456913[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]1.77926625410442[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]0.0752311735750701[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.613193676007708[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]17.6723047619048[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58627&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58627&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.574299977559274
R-squared0.329820464224582
Adjusted R-squared0.144451656456913
F-TEST (value)1.77926625410442
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0.0752311735750701
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.613193676007708
Sum Squared Residuals17.6723047619048







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
187.958095238095230.0419047619047665
28.17.645904761904760.454095238095238
37.77.445904761904760.254095238095238
47.57.345904761904760.154095238095236
57.67.565904761904760.0340952380952374
67.87.84761904761905-0.0476190476190475
77.87.96761904761905-0.167619047619048
87.87.88761904761905-0.0876190476190477
97.57.74761904761905-0.247619047619048
107.57.52761904761905-0.0276190476190476
117.17.32761904761905-0.227619047619048
127.57.70761904761905-0.207619047619048
137.57.676-0.176000000000001
147.67.363809523809520.236190476190475
157.77.163809523809520.536190476190476
167.77.063809523809520.636190476190477
177.97.283809523809520.616190476190477
188.17.565523809523810.53447619047619
198.27.685523809523810.51447619047619
208.27.605523809523810.59447619047619
218.27.465523809523810.73447619047619
227.97.245523809523810.65447619047619
237.37.045523809523810.254476190476191
246.97.42552380952381-0.525523809523809
256.67.39390476190476-0.793904761904763
266.77.08171428571428-0.381714285714285
276.96.881714285714290.0182857142857146
2876.781714285714290.218285714285715
297.17.001714285714290.098285714285714
307.27.28342857142857-0.0834285714285712
317.17.40342857142857-0.303428571428571
326.97.32342857142857-0.423428571428571
3377.18342857142857-0.183428571428571
346.86.96342857142857-0.163428571428572
356.46.76342857142857-0.363428571428571
366.77.14342857142857-0.443428571428571
376.67.11180952380952-0.511809523809525
386.46.79961904761905-0.399619047619047
396.36.59961904761905-0.299619047619048
406.26.49961904761905-0.299619047619047
416.56.71961904761905-0.219619047619047
426.87.2927619047619-0.492761904761905
436.87.4127619047619-0.612761904761905
446.47.3327619047619-0.932761904761905
456.17.1927619047619-1.09276190476191
465.86.9727619047619-1.17276190476190
476.16.7727619047619-0.672761904761905
487.27.15276190476190.0472380952380952
497.37.121142857142860.178857142857142
506.96.808952380952380.0910476190476197
516.16.60895238095238-0.508952380952381
525.86.50895238095238-0.70895238095238
536.26.72895238095238-0.528952380952381
547.17.010666666666670.089333333333333
557.77.130666666666670.569333333333334
567.97.050666666666670.849333333333334
577.76.910666666666670.789333333333334
587.46.690666666666670.709333333333333
597.56.490666666666671.00933333333333
6086.870666666666671.12933333333333
618.16.839047619047621.26095238095238

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8 & 7.95809523809523 & 0.0419047619047665 \tabularnewline
2 & 8.1 & 7.64590476190476 & 0.454095238095238 \tabularnewline
3 & 7.7 & 7.44590476190476 & 0.254095238095238 \tabularnewline
4 & 7.5 & 7.34590476190476 & 0.154095238095236 \tabularnewline
5 & 7.6 & 7.56590476190476 & 0.0340952380952374 \tabularnewline
6 & 7.8 & 7.84761904761905 & -0.0476190476190475 \tabularnewline
7 & 7.8 & 7.96761904761905 & -0.167619047619048 \tabularnewline
8 & 7.8 & 7.88761904761905 & -0.0876190476190477 \tabularnewline
9 & 7.5 & 7.74761904761905 & -0.247619047619048 \tabularnewline
10 & 7.5 & 7.52761904761905 & -0.0276190476190476 \tabularnewline
11 & 7.1 & 7.32761904761905 & -0.227619047619048 \tabularnewline
12 & 7.5 & 7.70761904761905 & -0.207619047619048 \tabularnewline
13 & 7.5 & 7.676 & -0.176000000000001 \tabularnewline
14 & 7.6 & 7.36380952380952 & 0.236190476190475 \tabularnewline
15 & 7.7 & 7.16380952380952 & 0.536190476190476 \tabularnewline
16 & 7.7 & 7.06380952380952 & 0.636190476190477 \tabularnewline
17 & 7.9 & 7.28380952380952 & 0.616190476190477 \tabularnewline
18 & 8.1 & 7.56552380952381 & 0.53447619047619 \tabularnewline
19 & 8.2 & 7.68552380952381 & 0.51447619047619 \tabularnewline
20 & 8.2 & 7.60552380952381 & 0.59447619047619 \tabularnewline
21 & 8.2 & 7.46552380952381 & 0.73447619047619 \tabularnewline
22 & 7.9 & 7.24552380952381 & 0.65447619047619 \tabularnewline
23 & 7.3 & 7.04552380952381 & 0.254476190476191 \tabularnewline
24 & 6.9 & 7.42552380952381 & -0.525523809523809 \tabularnewline
25 & 6.6 & 7.39390476190476 & -0.793904761904763 \tabularnewline
26 & 6.7 & 7.08171428571428 & -0.381714285714285 \tabularnewline
27 & 6.9 & 6.88171428571429 & 0.0182857142857146 \tabularnewline
28 & 7 & 6.78171428571429 & 0.218285714285715 \tabularnewline
29 & 7.1 & 7.00171428571429 & 0.098285714285714 \tabularnewline
30 & 7.2 & 7.28342857142857 & -0.0834285714285712 \tabularnewline
31 & 7.1 & 7.40342857142857 & -0.303428571428571 \tabularnewline
32 & 6.9 & 7.32342857142857 & -0.423428571428571 \tabularnewline
33 & 7 & 7.18342857142857 & -0.183428571428571 \tabularnewline
34 & 6.8 & 6.96342857142857 & -0.163428571428572 \tabularnewline
35 & 6.4 & 6.76342857142857 & -0.363428571428571 \tabularnewline
36 & 6.7 & 7.14342857142857 & -0.443428571428571 \tabularnewline
37 & 6.6 & 7.11180952380952 & -0.511809523809525 \tabularnewline
38 & 6.4 & 6.79961904761905 & -0.399619047619047 \tabularnewline
39 & 6.3 & 6.59961904761905 & -0.299619047619048 \tabularnewline
40 & 6.2 & 6.49961904761905 & -0.299619047619047 \tabularnewline
41 & 6.5 & 6.71961904761905 & -0.219619047619047 \tabularnewline
42 & 6.8 & 7.2927619047619 & -0.492761904761905 \tabularnewline
43 & 6.8 & 7.4127619047619 & -0.612761904761905 \tabularnewline
44 & 6.4 & 7.3327619047619 & -0.932761904761905 \tabularnewline
45 & 6.1 & 7.1927619047619 & -1.09276190476191 \tabularnewline
46 & 5.8 & 6.9727619047619 & -1.17276190476190 \tabularnewline
47 & 6.1 & 6.7727619047619 & -0.672761904761905 \tabularnewline
48 & 7.2 & 7.1527619047619 & 0.0472380952380952 \tabularnewline
49 & 7.3 & 7.12114285714286 & 0.178857142857142 \tabularnewline
50 & 6.9 & 6.80895238095238 & 0.0910476190476197 \tabularnewline
51 & 6.1 & 6.60895238095238 & -0.508952380952381 \tabularnewline
52 & 5.8 & 6.50895238095238 & -0.70895238095238 \tabularnewline
53 & 6.2 & 6.72895238095238 & -0.528952380952381 \tabularnewline
54 & 7.1 & 7.01066666666667 & 0.089333333333333 \tabularnewline
55 & 7.7 & 7.13066666666667 & 0.569333333333334 \tabularnewline
56 & 7.9 & 7.05066666666667 & 0.849333333333334 \tabularnewline
57 & 7.7 & 6.91066666666667 & 0.789333333333334 \tabularnewline
58 & 7.4 & 6.69066666666667 & 0.709333333333333 \tabularnewline
59 & 7.5 & 6.49066666666667 & 1.00933333333333 \tabularnewline
60 & 8 & 6.87066666666667 & 1.12933333333333 \tabularnewline
61 & 8.1 & 6.83904761904762 & 1.26095238095238 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58627&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[/C][C]7.95809523809523[/C][C]0.0419047619047665[/C][/ROW]
[ROW][C]2[/C][C]8.1[/C][C]7.64590476190476[/C][C]0.454095238095238[/C][/ROW]
[ROW][C]3[/C][C]7.7[/C][C]7.44590476190476[/C][C]0.254095238095238[/C][/ROW]
[ROW][C]4[/C][C]7.5[/C][C]7.34590476190476[/C][C]0.154095238095236[/C][/ROW]
[ROW][C]5[/C][C]7.6[/C][C]7.56590476190476[/C][C]0.0340952380952374[/C][/ROW]
[ROW][C]6[/C][C]7.8[/C][C]7.84761904761905[/C][C]-0.0476190476190475[/C][/ROW]
[ROW][C]7[/C][C]7.8[/C][C]7.96761904761905[/C][C]-0.167619047619048[/C][/ROW]
[ROW][C]8[/C][C]7.8[/C][C]7.88761904761905[/C][C]-0.0876190476190477[/C][/ROW]
[ROW][C]9[/C][C]7.5[/C][C]7.74761904761905[/C][C]-0.247619047619048[/C][/ROW]
[ROW][C]10[/C][C]7.5[/C][C]7.52761904761905[/C][C]-0.0276190476190476[/C][/ROW]
[ROW][C]11[/C][C]7.1[/C][C]7.32761904761905[/C][C]-0.227619047619048[/C][/ROW]
[ROW][C]12[/C][C]7.5[/C][C]7.70761904761905[/C][C]-0.207619047619048[/C][/ROW]
[ROW][C]13[/C][C]7.5[/C][C]7.676[/C][C]-0.176000000000001[/C][/ROW]
[ROW][C]14[/C][C]7.6[/C][C]7.36380952380952[/C][C]0.236190476190475[/C][/ROW]
[ROW][C]15[/C][C]7.7[/C][C]7.16380952380952[/C][C]0.536190476190476[/C][/ROW]
[ROW][C]16[/C][C]7.7[/C][C]7.06380952380952[/C][C]0.636190476190477[/C][/ROW]
[ROW][C]17[/C][C]7.9[/C][C]7.28380952380952[/C][C]0.616190476190477[/C][/ROW]
[ROW][C]18[/C][C]8.1[/C][C]7.56552380952381[/C][C]0.53447619047619[/C][/ROW]
[ROW][C]19[/C][C]8.2[/C][C]7.68552380952381[/C][C]0.51447619047619[/C][/ROW]
[ROW][C]20[/C][C]8.2[/C][C]7.60552380952381[/C][C]0.59447619047619[/C][/ROW]
[ROW][C]21[/C][C]8.2[/C][C]7.46552380952381[/C][C]0.73447619047619[/C][/ROW]
[ROW][C]22[/C][C]7.9[/C][C]7.24552380952381[/C][C]0.65447619047619[/C][/ROW]
[ROW][C]23[/C][C]7.3[/C][C]7.04552380952381[/C][C]0.254476190476191[/C][/ROW]
[ROW][C]24[/C][C]6.9[/C][C]7.42552380952381[/C][C]-0.525523809523809[/C][/ROW]
[ROW][C]25[/C][C]6.6[/C][C]7.39390476190476[/C][C]-0.793904761904763[/C][/ROW]
[ROW][C]26[/C][C]6.7[/C][C]7.08171428571428[/C][C]-0.381714285714285[/C][/ROW]
[ROW][C]27[/C][C]6.9[/C][C]6.88171428571429[/C][C]0.0182857142857146[/C][/ROW]
[ROW][C]28[/C][C]7[/C][C]6.78171428571429[/C][C]0.218285714285715[/C][/ROW]
[ROW][C]29[/C][C]7.1[/C][C]7.00171428571429[/C][C]0.098285714285714[/C][/ROW]
[ROW][C]30[/C][C]7.2[/C][C]7.28342857142857[/C][C]-0.0834285714285712[/C][/ROW]
[ROW][C]31[/C][C]7.1[/C][C]7.40342857142857[/C][C]-0.303428571428571[/C][/ROW]
[ROW][C]32[/C][C]6.9[/C][C]7.32342857142857[/C][C]-0.423428571428571[/C][/ROW]
[ROW][C]33[/C][C]7[/C][C]7.18342857142857[/C][C]-0.183428571428571[/C][/ROW]
[ROW][C]34[/C][C]6.8[/C][C]6.96342857142857[/C][C]-0.163428571428572[/C][/ROW]
[ROW][C]35[/C][C]6.4[/C][C]6.76342857142857[/C][C]-0.363428571428571[/C][/ROW]
[ROW][C]36[/C][C]6.7[/C][C]7.14342857142857[/C][C]-0.443428571428571[/C][/ROW]
[ROW][C]37[/C][C]6.6[/C][C]7.11180952380952[/C][C]-0.511809523809525[/C][/ROW]
[ROW][C]38[/C][C]6.4[/C][C]6.79961904761905[/C][C]-0.399619047619047[/C][/ROW]
[ROW][C]39[/C][C]6.3[/C][C]6.59961904761905[/C][C]-0.299619047619048[/C][/ROW]
[ROW][C]40[/C][C]6.2[/C][C]6.49961904761905[/C][C]-0.299619047619047[/C][/ROW]
[ROW][C]41[/C][C]6.5[/C][C]6.71961904761905[/C][C]-0.219619047619047[/C][/ROW]
[ROW][C]42[/C][C]6.8[/C][C]7.2927619047619[/C][C]-0.492761904761905[/C][/ROW]
[ROW][C]43[/C][C]6.8[/C][C]7.4127619047619[/C][C]-0.612761904761905[/C][/ROW]
[ROW][C]44[/C][C]6.4[/C][C]7.3327619047619[/C][C]-0.932761904761905[/C][/ROW]
[ROW][C]45[/C][C]6.1[/C][C]7.1927619047619[/C][C]-1.09276190476191[/C][/ROW]
[ROW][C]46[/C][C]5.8[/C][C]6.9727619047619[/C][C]-1.17276190476190[/C][/ROW]
[ROW][C]47[/C][C]6.1[/C][C]6.7727619047619[/C][C]-0.672761904761905[/C][/ROW]
[ROW][C]48[/C][C]7.2[/C][C]7.1527619047619[/C][C]0.0472380952380952[/C][/ROW]
[ROW][C]49[/C][C]7.3[/C][C]7.12114285714286[/C][C]0.178857142857142[/C][/ROW]
[ROW][C]50[/C][C]6.9[/C][C]6.80895238095238[/C][C]0.0910476190476197[/C][/ROW]
[ROW][C]51[/C][C]6.1[/C][C]6.60895238095238[/C][C]-0.508952380952381[/C][/ROW]
[ROW][C]52[/C][C]5.8[/C][C]6.50895238095238[/C][C]-0.70895238095238[/C][/ROW]
[ROW][C]53[/C][C]6.2[/C][C]6.72895238095238[/C][C]-0.528952380952381[/C][/ROW]
[ROW][C]54[/C][C]7.1[/C][C]7.01066666666667[/C][C]0.089333333333333[/C][/ROW]
[ROW][C]55[/C][C]7.7[/C][C]7.13066666666667[/C][C]0.569333333333334[/C][/ROW]
[ROW][C]56[/C][C]7.9[/C][C]7.05066666666667[/C][C]0.849333333333334[/C][/ROW]
[ROW][C]57[/C][C]7.7[/C][C]6.91066666666667[/C][C]0.789333333333334[/C][/ROW]
[ROW][C]58[/C][C]7.4[/C][C]6.69066666666667[/C][C]0.709333333333333[/C][/ROW]
[ROW][C]59[/C][C]7.5[/C][C]6.49066666666667[/C][C]1.00933333333333[/C][/ROW]
[ROW][C]60[/C][C]8[/C][C]6.87066666666667[/C][C]1.12933333333333[/C][/ROW]
[ROW][C]61[/C][C]8.1[/C][C]6.83904761904762[/C][C]1.26095238095238[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58627&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58627&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
187.958095238095230.0419047619047665
28.17.645904761904760.454095238095238
37.77.445904761904760.254095238095238
47.57.345904761904760.154095238095236
57.67.565904761904760.0340952380952374
67.87.84761904761905-0.0476190476190475
77.87.96761904761905-0.167619047619048
87.87.88761904761905-0.0876190476190477
97.57.74761904761905-0.247619047619048
107.57.52761904761905-0.0276190476190476
117.17.32761904761905-0.227619047619048
127.57.70761904761905-0.207619047619048
137.57.676-0.176000000000001
147.67.363809523809520.236190476190475
157.77.163809523809520.536190476190476
167.77.063809523809520.636190476190477
177.97.283809523809520.616190476190477
188.17.565523809523810.53447619047619
198.27.685523809523810.51447619047619
208.27.605523809523810.59447619047619
218.27.465523809523810.73447619047619
227.97.245523809523810.65447619047619
237.37.045523809523810.254476190476191
246.97.42552380952381-0.525523809523809
256.67.39390476190476-0.793904761904763
266.77.08171428571428-0.381714285714285
276.96.881714285714290.0182857142857146
2876.781714285714290.218285714285715
297.17.001714285714290.098285714285714
307.27.28342857142857-0.0834285714285712
317.17.40342857142857-0.303428571428571
326.97.32342857142857-0.423428571428571
3377.18342857142857-0.183428571428571
346.86.96342857142857-0.163428571428572
356.46.76342857142857-0.363428571428571
366.77.14342857142857-0.443428571428571
376.67.11180952380952-0.511809523809525
386.46.79961904761905-0.399619047619047
396.36.59961904761905-0.299619047619048
406.26.49961904761905-0.299619047619047
416.56.71961904761905-0.219619047619047
426.87.2927619047619-0.492761904761905
436.87.4127619047619-0.612761904761905
446.47.3327619047619-0.932761904761905
456.17.1927619047619-1.09276190476191
465.86.9727619047619-1.17276190476190
476.16.7727619047619-0.672761904761905
487.27.15276190476190.0472380952380952
497.37.121142857142860.178857142857142
506.96.808952380952380.0910476190476197
516.16.60895238095238-0.508952380952381
525.86.50895238095238-0.70895238095238
536.26.72895238095238-0.528952380952381
547.17.010666666666670.089333333333333
557.77.130666666666670.569333333333334
567.97.050666666666670.849333333333334
577.76.910666666666670.789333333333334
587.46.690666666666670.709333333333333
597.56.490666666666671.00933333333333
6086.870666666666671.12933333333333
618.16.839047619047621.26095238095238







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.1065145927590500.2130291855181000.89348540724095
180.05868524183803610.1173704836760720.941314758161964
190.0364721853698940.0729443707397880.963527814630106
200.02335178141890550.04670356283781100.976648218581095
210.03148274509660720.06296549019321440.968517254903393
220.02939892294160130.05879784588320250.970601077058399
230.02043550453379130.04087100906758250.979564495466209
240.0304188155461250.060837631092250.969581184453875
250.1382406174595180.2764812349190370.861759382540482
260.2058878290117370.4117756580234740.794112170988263
270.2497130563109820.4994261126219630.750286943689018
280.4371044050328810.8742088100657620.562895594967119
290.7785812486281030.4428375027437940.221418751371897
300.7855970734911650.4288058530176710.214402926508835
310.7470727527637120.5058544944725770.252927247236288
320.7188392333496040.5623215333007920.281160766650396
330.7222168058776350.555566388244730.277783194122365
340.8065714523612370.3868570952775260.193428547638763
350.7516997841285160.4966004317429680.248300215871484
360.6795533722342160.6408932555315690.320446627765784
370.6916188445726220.6167623108547560.308381155427378
380.7509718293399540.4980563413200920.249028170660046
390.6641568900047780.6716862199904450.335843109995222
400.5617484204197320.8765031591605370.438251579580268
410.4350461719949130.8700923439898260.564953828005087
420.6477288195793580.7045423608412840.352271180420642
430.5710817895891140.8578364208217730.428918210410886
440.438334543043320.876669086086640.56166545695668

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.106514592759050 & 0.213029185518100 & 0.89348540724095 \tabularnewline
18 & 0.0586852418380361 & 0.117370483676072 & 0.941314758161964 \tabularnewline
19 & 0.036472185369894 & 0.072944370739788 & 0.963527814630106 \tabularnewline
20 & 0.0233517814189055 & 0.0467035628378110 & 0.976648218581095 \tabularnewline
21 & 0.0314827450966072 & 0.0629654901932144 & 0.968517254903393 \tabularnewline
22 & 0.0293989229416013 & 0.0587978458832025 & 0.970601077058399 \tabularnewline
23 & 0.0204355045337913 & 0.0408710090675825 & 0.979564495466209 \tabularnewline
24 & 0.030418815546125 & 0.06083763109225 & 0.969581184453875 \tabularnewline
25 & 0.138240617459518 & 0.276481234919037 & 0.861759382540482 \tabularnewline
26 & 0.205887829011737 & 0.411775658023474 & 0.794112170988263 \tabularnewline
27 & 0.249713056310982 & 0.499426112621963 & 0.750286943689018 \tabularnewline
28 & 0.437104405032881 & 0.874208810065762 & 0.562895594967119 \tabularnewline
29 & 0.778581248628103 & 0.442837502743794 & 0.221418751371897 \tabularnewline
30 & 0.785597073491165 & 0.428805853017671 & 0.214402926508835 \tabularnewline
31 & 0.747072752763712 & 0.505854494472577 & 0.252927247236288 \tabularnewline
32 & 0.718839233349604 & 0.562321533300792 & 0.281160766650396 \tabularnewline
33 & 0.722216805877635 & 0.55556638824473 & 0.277783194122365 \tabularnewline
34 & 0.806571452361237 & 0.386857095277526 & 0.193428547638763 \tabularnewline
35 & 0.751699784128516 & 0.496600431742968 & 0.248300215871484 \tabularnewline
36 & 0.679553372234216 & 0.640893255531569 & 0.320446627765784 \tabularnewline
37 & 0.691618844572622 & 0.616762310854756 & 0.308381155427378 \tabularnewline
38 & 0.750971829339954 & 0.498056341320092 & 0.249028170660046 \tabularnewline
39 & 0.664156890004778 & 0.671686219990445 & 0.335843109995222 \tabularnewline
40 & 0.561748420419732 & 0.876503159160537 & 0.438251579580268 \tabularnewline
41 & 0.435046171994913 & 0.870092343989826 & 0.564953828005087 \tabularnewline
42 & 0.647728819579358 & 0.704542360841284 & 0.352271180420642 \tabularnewline
43 & 0.571081789589114 & 0.857836420821773 & 0.428918210410886 \tabularnewline
44 & 0.43833454304332 & 0.87666908608664 & 0.56166545695668 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58627&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.106514592759050[/C][C]0.213029185518100[/C][C]0.89348540724095[/C][/ROW]
[ROW][C]18[/C][C]0.0586852418380361[/C][C]0.117370483676072[/C][C]0.941314758161964[/C][/ROW]
[ROW][C]19[/C][C]0.036472185369894[/C][C]0.072944370739788[/C][C]0.963527814630106[/C][/ROW]
[ROW][C]20[/C][C]0.0233517814189055[/C][C]0.0467035628378110[/C][C]0.976648218581095[/C][/ROW]
[ROW][C]21[/C][C]0.0314827450966072[/C][C]0.0629654901932144[/C][C]0.968517254903393[/C][/ROW]
[ROW][C]22[/C][C]0.0293989229416013[/C][C]0.0587978458832025[/C][C]0.970601077058399[/C][/ROW]
[ROW][C]23[/C][C]0.0204355045337913[/C][C]0.0408710090675825[/C][C]0.979564495466209[/C][/ROW]
[ROW][C]24[/C][C]0.030418815546125[/C][C]0.06083763109225[/C][C]0.969581184453875[/C][/ROW]
[ROW][C]25[/C][C]0.138240617459518[/C][C]0.276481234919037[/C][C]0.861759382540482[/C][/ROW]
[ROW][C]26[/C][C]0.205887829011737[/C][C]0.411775658023474[/C][C]0.794112170988263[/C][/ROW]
[ROW][C]27[/C][C]0.249713056310982[/C][C]0.499426112621963[/C][C]0.750286943689018[/C][/ROW]
[ROW][C]28[/C][C]0.437104405032881[/C][C]0.874208810065762[/C][C]0.562895594967119[/C][/ROW]
[ROW][C]29[/C][C]0.778581248628103[/C][C]0.442837502743794[/C][C]0.221418751371897[/C][/ROW]
[ROW][C]30[/C][C]0.785597073491165[/C][C]0.428805853017671[/C][C]0.214402926508835[/C][/ROW]
[ROW][C]31[/C][C]0.747072752763712[/C][C]0.505854494472577[/C][C]0.252927247236288[/C][/ROW]
[ROW][C]32[/C][C]0.718839233349604[/C][C]0.562321533300792[/C][C]0.281160766650396[/C][/ROW]
[ROW][C]33[/C][C]0.722216805877635[/C][C]0.55556638824473[/C][C]0.277783194122365[/C][/ROW]
[ROW][C]34[/C][C]0.806571452361237[/C][C]0.386857095277526[/C][C]0.193428547638763[/C][/ROW]
[ROW][C]35[/C][C]0.751699784128516[/C][C]0.496600431742968[/C][C]0.248300215871484[/C][/ROW]
[ROW][C]36[/C][C]0.679553372234216[/C][C]0.640893255531569[/C][C]0.320446627765784[/C][/ROW]
[ROW][C]37[/C][C]0.691618844572622[/C][C]0.616762310854756[/C][C]0.308381155427378[/C][/ROW]
[ROW][C]38[/C][C]0.750971829339954[/C][C]0.498056341320092[/C][C]0.249028170660046[/C][/ROW]
[ROW][C]39[/C][C]0.664156890004778[/C][C]0.671686219990445[/C][C]0.335843109995222[/C][/ROW]
[ROW][C]40[/C][C]0.561748420419732[/C][C]0.876503159160537[/C][C]0.438251579580268[/C][/ROW]
[ROW][C]41[/C][C]0.435046171994913[/C][C]0.870092343989826[/C][C]0.564953828005087[/C][/ROW]
[ROW][C]42[/C][C]0.647728819579358[/C][C]0.704542360841284[/C][C]0.352271180420642[/C][/ROW]
[ROW][C]43[/C][C]0.571081789589114[/C][C]0.857836420821773[/C][C]0.428918210410886[/C][/ROW]
[ROW][C]44[/C][C]0.43833454304332[/C][C]0.87666908608664[/C][C]0.56166545695668[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58627&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58627&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.1065145927590500.2130291855181000.89348540724095
180.05868524183803610.1173704836760720.941314758161964
190.0364721853698940.0729443707397880.963527814630106
200.02335178141890550.04670356283781100.976648218581095
210.03148274509660720.06296549019321440.968517254903393
220.02939892294160130.05879784588320250.970601077058399
230.02043550453379130.04087100906758250.979564495466209
240.0304188155461250.060837631092250.969581184453875
250.1382406174595180.2764812349190370.861759382540482
260.2058878290117370.4117756580234740.794112170988263
270.2497130563109820.4994261126219630.750286943689018
280.4371044050328810.8742088100657620.562895594967119
290.7785812486281030.4428375027437940.221418751371897
300.7855970734911650.4288058530176710.214402926508835
310.7470727527637120.5058544944725770.252927247236288
320.7188392333496040.5623215333007920.281160766650396
330.7222168058776350.555566388244730.277783194122365
340.8065714523612370.3868570952775260.193428547638763
350.7516997841285160.4966004317429680.248300215871484
360.6795533722342160.6408932555315690.320446627765784
370.6916188445726220.6167623108547560.308381155427378
380.7509718293399540.4980563413200920.249028170660046
390.6641568900047780.6716862199904450.335843109995222
400.5617484204197320.8765031591605370.438251579580268
410.4350461719949130.8700923439898260.564953828005087
420.6477288195793580.7045423608412840.352271180420642
430.5710817895891140.8578364208217730.428918210410886
440.438334543043320.876669086086640.56166545695668







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level20.0714285714285714NOK
10% type I error level60.214285714285714NOK

\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 & 2 & 0.0714285714285714 & NOK \tabularnewline
10% type I error level & 6 & 0.214285714285714 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58627&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]2[/C][C]0.0714285714285714[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]6[/C][C]0.214285714285714[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58627&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58627&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 level20.0714285714285714NOK
10% type I error level60.214285714285714NOK



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')
}