Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationSun, 23 Nov 2008 07:05:03 -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/2008/Nov/23/t1227449197h749z1u0nerledl.htm/, Retrieved Tue, 28 May 2024 13:34:16 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=25258, Retrieved Tue, 28 May 2024 13:34:16 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact177
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F       [Multiple Regression] [CASE: Seatbelt La...] [2008-11-23 14:05:03] [20dfa2578b2b18ce36fdb36ac12aedd7] [Current]
Feedback Forum
2008-11-30 12:21:37 [Steven Vercammen] [reply
Deze vraag werd correct opgelost. De tabellen en grafieken worden op de juiste manier geïnterpreteerd (voor de interpretatie zie assessment van Q1 en Q2).
De student vond wel geen exacte gebeurtenis die de ingegeven dummie-waardes weergeeft. Het model verklaart de werkloosheidsgraad helemaal niet: de p-waarde van de R^2 is veel groter dan 5%.
2008-12-01 14:04:30 [Dave Bellekens] [reply
Goede conclusies bij het al dan niet verwerpen van de nulhypothese. Je ziet inderdaad dat in de periode M8 en M9 de 2zijdige p-waarde lager ligt dan de alpha fout van 5%, waardoor deze significant verschillend zijn. In de andere maanden zijn de schommelingen mogelijk te verklaren door het toeval.

Je trekt ook de juist conclusies bij de grafieken om na te gaan of het model perfect is. Het model kan nog worden verbetert aangezien er nog sprake is van autocorrelatie en de gemiddelde van de residuals niet gelijk is aan 0.
2008-12-01 16:14:28 [Anouk Greeve] [reply
Juiste interpretatie, ik heb hier niets meer aan toe te voegen.
2008-12-02 05:20:22 [Sofie Mertens] [reply
De grafieken worden allemaal correct geïnterpreteerd. Maar ik vind het spijtig dat er niet is gezocht naar een geschikte dummy variabele die een effect zou hebben op de werkloosheidsgraad.

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




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001

\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 & 6 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ 193.190.124.10:1001 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25258&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]6 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ 193.190.124.10:1001[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25258&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25258&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 time6 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001







Multiple Linear Regression - Estimated Regression Equation
Werkloosheidsgraad[t] = + 9.40833333333333 + 0.761111111111111y[t] -0.469861111111114M1[t] -0.538055555555556M2[t] -0.36625M3[t] -0.134444444444445M4[t] -0.122638888888889M5[t] -0.270833333333333M6[t] -0.499027777777778M7[t] -0.707222222222222M8[t] -0.755416666666667M9[t] -0.123611111111111M10[t] + 0.00819444444444408M11[t] -0.0518055555555555t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Werkloosheidsgraad[t] =  +  9.40833333333333 +  0.761111111111111y[t] -0.469861111111114M1[t] -0.538055555555556M2[t] -0.36625M3[t] -0.134444444444445M4[t] -0.122638888888889M5[t] -0.270833333333333M6[t] -0.499027777777778M7[t] -0.707222222222222M8[t] -0.755416666666667M9[t] -0.123611111111111M10[t] +  0.00819444444444408M11[t] -0.0518055555555555t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25258&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Werkloosheidsgraad[t] =  +  9.40833333333333 +  0.761111111111111y[t] -0.469861111111114M1[t] -0.538055555555556M2[t] -0.36625M3[t] -0.134444444444445M4[t] -0.122638888888889M5[t] -0.270833333333333M6[t] -0.499027777777778M7[t] -0.707222222222222M8[t] -0.755416666666667M9[t] -0.123611111111111M10[t] +  0.00819444444444408M11[t] -0.0518055555555555t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25258&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25258&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
Werkloosheidsgraad[t] = + 9.40833333333333 + 0.761111111111111y[t] -0.469861111111114M1[t] -0.538055555555556M2[t] -0.36625M3[t] -0.134444444444445M4[t] -0.122638888888889M5[t] -0.270833333333333M6[t] -0.499027777777778M7[t] -0.707222222222222M8[t] -0.755416666666667M9[t] -0.123611111111111M10[t] + 0.00819444444444408M11[t] -0.0518055555555555t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)9.408333333333330.23601639.863100
y0.7611111111111110.2271073.35130.0016150.000807
M1-0.4698611111111140.281908-1.66670.1023660.051183
M2-0.5380555555555560.280303-1.91960.061130.030565
M3-0.366250.278842-1.31350.195540.09777
M4-0.1344444444444450.277529-0.48440.6303770.315188
M5-0.1226388888888890.276365-0.44380.6592990.329649
M6-0.2708333333333330.275352-0.98360.3304630.165232
M7-0.4990277777777780.274492-1.8180.0755790.03779
M8-0.7072222222222220.273787-2.58310.0130360.006518
M9-0.7554166666666670.273237-2.76470.0081710.004085
M10-0.1236111111111110.272843-0.4530.6526440.326322
M110.008194444444444080.2726070.03010.976150.488075
t-0.05180555555555550.006556-7.90200

\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) & 9.40833333333333 & 0.236016 & 39.8631 & 0 & 0 \tabularnewline
y & 0.761111111111111 & 0.227107 & 3.3513 & 0.001615 & 0.000807 \tabularnewline
M1 & -0.469861111111114 & 0.281908 & -1.6667 & 0.102366 & 0.051183 \tabularnewline
M2 & -0.538055555555556 & 0.280303 & -1.9196 & 0.06113 & 0.030565 \tabularnewline
M3 & -0.36625 & 0.278842 & -1.3135 & 0.19554 & 0.09777 \tabularnewline
M4 & -0.134444444444445 & 0.277529 & -0.4844 & 0.630377 & 0.315188 \tabularnewline
M5 & -0.122638888888889 & 0.276365 & -0.4438 & 0.659299 & 0.329649 \tabularnewline
M6 & -0.270833333333333 & 0.275352 & -0.9836 & 0.330463 & 0.165232 \tabularnewline
M7 & -0.499027777777778 & 0.274492 & -1.818 & 0.075579 & 0.03779 \tabularnewline
M8 & -0.707222222222222 & 0.273787 & -2.5831 & 0.013036 & 0.006518 \tabularnewline
M9 & -0.755416666666667 & 0.273237 & -2.7647 & 0.008171 & 0.004085 \tabularnewline
M10 & -0.123611111111111 & 0.272843 & -0.453 & 0.652644 & 0.326322 \tabularnewline
M11 & 0.00819444444444408 & 0.272607 & 0.0301 & 0.97615 & 0.488075 \tabularnewline
t & -0.0518055555555555 & 0.006556 & -7.902 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25258&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]9.40833333333333[/C][C]0.236016[/C][C]39.8631[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]y[/C][C]0.761111111111111[/C][C]0.227107[/C][C]3.3513[/C][C]0.001615[/C][C]0.000807[/C][/ROW]
[ROW][C]M1[/C][C]-0.469861111111114[/C][C]0.281908[/C][C]-1.6667[/C][C]0.102366[/C][C]0.051183[/C][/ROW]
[ROW][C]M2[/C][C]-0.538055555555556[/C][C]0.280303[/C][C]-1.9196[/C][C]0.06113[/C][C]0.030565[/C][/ROW]
[ROW][C]M3[/C][C]-0.36625[/C][C]0.278842[/C][C]-1.3135[/C][C]0.19554[/C][C]0.09777[/C][/ROW]
[ROW][C]M4[/C][C]-0.134444444444445[/C][C]0.277529[/C][C]-0.4844[/C][C]0.630377[/C][C]0.315188[/C][/ROW]
[ROW][C]M5[/C][C]-0.122638888888889[/C][C]0.276365[/C][C]-0.4438[/C][C]0.659299[/C][C]0.329649[/C][/ROW]
[ROW][C]M6[/C][C]-0.270833333333333[/C][C]0.275352[/C][C]-0.9836[/C][C]0.330463[/C][C]0.165232[/C][/ROW]
[ROW][C]M7[/C][C]-0.499027777777778[/C][C]0.274492[/C][C]-1.818[/C][C]0.075579[/C][C]0.03779[/C][/ROW]
[ROW][C]M8[/C][C]-0.707222222222222[/C][C]0.273787[/C][C]-2.5831[/C][C]0.013036[/C][C]0.006518[/C][/ROW]
[ROW][C]M9[/C][C]-0.755416666666667[/C][C]0.273237[/C][C]-2.7647[/C][C]0.008171[/C][C]0.004085[/C][/ROW]
[ROW][C]M10[/C][C]-0.123611111111111[/C][C]0.272843[/C][C]-0.453[/C][C]0.652644[/C][C]0.326322[/C][/ROW]
[ROW][C]M11[/C][C]0.00819444444444408[/C][C]0.272607[/C][C]0.0301[/C][C]0.97615[/C][C]0.488075[/C][/ROW]
[ROW][C]t[/C][C]-0.0518055555555555[/C][C]0.006556[/C][C]-7.902[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25258&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25258&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)9.408333333333330.23601639.863100
y0.7611111111111110.2271073.35130.0016150.000807
M1-0.4698611111111140.281908-1.66670.1023660.051183
M2-0.5380555555555560.280303-1.91960.061130.030565
M3-0.366250.278842-1.31350.195540.09777
M4-0.1344444444444450.277529-0.48440.6303770.315188
M5-0.1226388888888890.276365-0.44380.6592990.329649
M6-0.2708333333333330.275352-0.98360.3304630.165232
M7-0.4990277777777780.274492-1.8180.0755790.03779
M8-0.7072222222222220.273787-2.58310.0130360.006518
M9-0.7554166666666670.273237-2.76470.0081710.004085
M10-0.1236111111111110.272843-0.4530.6526440.326322
M110.008194444444444080.2726070.03010.976150.488075
t-0.05180555555555550.006556-7.90200







Multiple Linear Regression - Regression Statistics
Multiple R0.861862270776383
R-squared0.742806573787824
Adjusted R-squared0.670121475075687
F-TEST (value)10.2195166127468
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value1.26703780800597e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.430904564795214
Sum Squared Residuals8.54122222222223

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.861862270776383 \tabularnewline
R-squared & 0.742806573787824 \tabularnewline
Adjusted R-squared & 0.670121475075687 \tabularnewline
F-TEST (value) & 10.2195166127468 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 1.26703780800597e-09 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.430904564795214 \tabularnewline
Sum Squared Residuals & 8.54122222222223 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25258&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.861862270776383[/C][/ROW]
[ROW][C]R-squared[/C][C]0.742806573787824[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.670121475075687[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]10.2195166127468[/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]1.26703780800597e-09[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.430904564795214[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]8.54122222222223[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25258&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25258&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.861862270776383
R-squared0.742806573787824
Adjusted R-squared0.670121475075687
F-TEST (value)10.2195166127468
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value1.26703780800597e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.430904564795214
Sum Squared Residuals8.54122222222223







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.48.88666666666668-0.486666666666676
28.48.76666666666667-0.366666666666666
38.68.88666666666667-0.286666666666667
48.99.06666666666667-0.166666666666666
58.89.02666666666667-0.226666666666665
68.38.82666666666667-0.526666666666666
77.58.54666666666667-1.04666666666667
87.28.28666666666667-1.08666666666667
97.58.18666666666667-0.686666666666666
108.88.766666666666670.0333333333333344
119.38.846666666666670.453333333333334
129.38.786666666666670.513333333333334
138.78.2650.435000000000002
148.28.1450.0549999999999991
158.38.2650.0350000000000007
168.58.4450.0550000000000002
178.68.4050.195000000000000
188.68.2050.395
198.27.9250.275000000000000
208.17.6650.434999999999999
2187.5650.435
228.68.1450.455
238.78.2250.475
248.88.1650.635
258.58.404444444444440.095555555555558
268.48.284444444444440.115555555555556
278.58.404444444444450.0955555555555552
288.78.584444444444440.115555555555555
298.78.544444444444440.155555555555555
308.68.344444444444440.255555555555555
318.58.064444444444440.435555555555556
328.37.804444444444440.495555555555556
338.17.704444444444440.395555555555555
348.28.28444444444444-0.084444444444445
358.18.36444444444444-0.264444444444445
368.18.30444444444444-0.204444444444445
377.97.782777777777780.117222222222225
387.97.662777777777780.237222222222223
397.97.782777777777780.117222222222222
4087.962777777777780.0372222222222221
4187.922777777777780.077222222222222
427.97.722777777777780.177222222222222
4387.442777777777780.557222222222222
447.77.182777777777780.517222222222222
457.27.082777777777780.117222222222222
467.57.66277777777778-0.162777777777778
477.37.74277777777778-0.442777777777778
4877.68277777777778-0.682777777777778
4977.16111111111111-0.161111111111109
5077.04111111111111-0.0411111111111112
517.27.161111111111110.0388888888888886
527.37.34111111111111-0.0411111111111115
537.17.30111111111111-0.201111111111111
546.87.10111111111111-0.301111111111112
556.66.82111111111111-0.221111111111112
566.26.56111111111111-0.361111111111111
576.26.46111111111111-0.261111111111111
586.87.04111111111111-0.241111111111111
596.97.12111111111111-0.221111111111111
606.87.06111111111111-0.261111111111112

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.4 & 8.88666666666668 & -0.486666666666676 \tabularnewline
2 & 8.4 & 8.76666666666667 & -0.366666666666666 \tabularnewline
3 & 8.6 & 8.88666666666667 & -0.286666666666667 \tabularnewline
4 & 8.9 & 9.06666666666667 & -0.166666666666666 \tabularnewline
5 & 8.8 & 9.02666666666667 & -0.226666666666665 \tabularnewline
6 & 8.3 & 8.82666666666667 & -0.526666666666666 \tabularnewline
7 & 7.5 & 8.54666666666667 & -1.04666666666667 \tabularnewline
8 & 7.2 & 8.28666666666667 & -1.08666666666667 \tabularnewline
9 & 7.5 & 8.18666666666667 & -0.686666666666666 \tabularnewline
10 & 8.8 & 8.76666666666667 & 0.0333333333333344 \tabularnewline
11 & 9.3 & 8.84666666666667 & 0.453333333333334 \tabularnewline
12 & 9.3 & 8.78666666666667 & 0.513333333333334 \tabularnewline
13 & 8.7 & 8.265 & 0.435000000000002 \tabularnewline
14 & 8.2 & 8.145 & 0.0549999999999991 \tabularnewline
15 & 8.3 & 8.265 & 0.0350000000000007 \tabularnewline
16 & 8.5 & 8.445 & 0.0550000000000002 \tabularnewline
17 & 8.6 & 8.405 & 0.195000000000000 \tabularnewline
18 & 8.6 & 8.205 & 0.395 \tabularnewline
19 & 8.2 & 7.925 & 0.275000000000000 \tabularnewline
20 & 8.1 & 7.665 & 0.434999999999999 \tabularnewline
21 & 8 & 7.565 & 0.435 \tabularnewline
22 & 8.6 & 8.145 & 0.455 \tabularnewline
23 & 8.7 & 8.225 & 0.475 \tabularnewline
24 & 8.8 & 8.165 & 0.635 \tabularnewline
25 & 8.5 & 8.40444444444444 & 0.095555555555558 \tabularnewline
26 & 8.4 & 8.28444444444444 & 0.115555555555556 \tabularnewline
27 & 8.5 & 8.40444444444445 & 0.0955555555555552 \tabularnewline
28 & 8.7 & 8.58444444444444 & 0.115555555555555 \tabularnewline
29 & 8.7 & 8.54444444444444 & 0.155555555555555 \tabularnewline
30 & 8.6 & 8.34444444444444 & 0.255555555555555 \tabularnewline
31 & 8.5 & 8.06444444444444 & 0.435555555555556 \tabularnewline
32 & 8.3 & 7.80444444444444 & 0.495555555555556 \tabularnewline
33 & 8.1 & 7.70444444444444 & 0.395555555555555 \tabularnewline
34 & 8.2 & 8.28444444444444 & -0.084444444444445 \tabularnewline
35 & 8.1 & 8.36444444444444 & -0.264444444444445 \tabularnewline
36 & 8.1 & 8.30444444444444 & -0.204444444444445 \tabularnewline
37 & 7.9 & 7.78277777777778 & 0.117222222222225 \tabularnewline
38 & 7.9 & 7.66277777777778 & 0.237222222222223 \tabularnewline
39 & 7.9 & 7.78277777777778 & 0.117222222222222 \tabularnewline
40 & 8 & 7.96277777777778 & 0.0372222222222221 \tabularnewline
41 & 8 & 7.92277777777778 & 0.077222222222222 \tabularnewline
42 & 7.9 & 7.72277777777778 & 0.177222222222222 \tabularnewline
43 & 8 & 7.44277777777778 & 0.557222222222222 \tabularnewline
44 & 7.7 & 7.18277777777778 & 0.517222222222222 \tabularnewline
45 & 7.2 & 7.08277777777778 & 0.117222222222222 \tabularnewline
46 & 7.5 & 7.66277777777778 & -0.162777777777778 \tabularnewline
47 & 7.3 & 7.74277777777778 & -0.442777777777778 \tabularnewline
48 & 7 & 7.68277777777778 & -0.682777777777778 \tabularnewline
49 & 7 & 7.16111111111111 & -0.161111111111109 \tabularnewline
50 & 7 & 7.04111111111111 & -0.0411111111111112 \tabularnewline
51 & 7.2 & 7.16111111111111 & 0.0388888888888886 \tabularnewline
52 & 7.3 & 7.34111111111111 & -0.0411111111111115 \tabularnewline
53 & 7.1 & 7.30111111111111 & -0.201111111111111 \tabularnewline
54 & 6.8 & 7.10111111111111 & -0.301111111111112 \tabularnewline
55 & 6.6 & 6.82111111111111 & -0.221111111111112 \tabularnewline
56 & 6.2 & 6.56111111111111 & -0.361111111111111 \tabularnewline
57 & 6.2 & 6.46111111111111 & -0.261111111111111 \tabularnewline
58 & 6.8 & 7.04111111111111 & -0.241111111111111 \tabularnewline
59 & 6.9 & 7.12111111111111 & -0.221111111111111 \tabularnewline
60 & 6.8 & 7.06111111111111 & -0.261111111111112 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25258&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.4[/C][C]8.88666666666668[/C][C]-0.486666666666676[/C][/ROW]
[ROW][C]2[/C][C]8.4[/C][C]8.76666666666667[/C][C]-0.366666666666666[/C][/ROW]
[ROW][C]3[/C][C]8.6[/C][C]8.88666666666667[/C][C]-0.286666666666667[/C][/ROW]
[ROW][C]4[/C][C]8.9[/C][C]9.06666666666667[/C][C]-0.166666666666666[/C][/ROW]
[ROW][C]5[/C][C]8.8[/C][C]9.02666666666667[/C][C]-0.226666666666665[/C][/ROW]
[ROW][C]6[/C][C]8.3[/C][C]8.82666666666667[/C][C]-0.526666666666666[/C][/ROW]
[ROW][C]7[/C][C]7.5[/C][C]8.54666666666667[/C][C]-1.04666666666667[/C][/ROW]
[ROW][C]8[/C][C]7.2[/C][C]8.28666666666667[/C][C]-1.08666666666667[/C][/ROW]
[ROW][C]9[/C][C]7.5[/C][C]8.18666666666667[/C][C]-0.686666666666666[/C][/ROW]
[ROW][C]10[/C][C]8.8[/C][C]8.76666666666667[/C][C]0.0333333333333344[/C][/ROW]
[ROW][C]11[/C][C]9.3[/C][C]8.84666666666667[/C][C]0.453333333333334[/C][/ROW]
[ROW][C]12[/C][C]9.3[/C][C]8.78666666666667[/C][C]0.513333333333334[/C][/ROW]
[ROW][C]13[/C][C]8.7[/C][C]8.265[/C][C]0.435000000000002[/C][/ROW]
[ROW][C]14[/C][C]8.2[/C][C]8.145[/C][C]0.0549999999999991[/C][/ROW]
[ROW][C]15[/C][C]8.3[/C][C]8.265[/C][C]0.0350000000000007[/C][/ROW]
[ROW][C]16[/C][C]8.5[/C][C]8.445[/C][C]0.0550000000000002[/C][/ROW]
[ROW][C]17[/C][C]8.6[/C][C]8.405[/C][C]0.195000000000000[/C][/ROW]
[ROW][C]18[/C][C]8.6[/C][C]8.205[/C][C]0.395[/C][/ROW]
[ROW][C]19[/C][C]8.2[/C][C]7.925[/C][C]0.275000000000000[/C][/ROW]
[ROW][C]20[/C][C]8.1[/C][C]7.665[/C][C]0.434999999999999[/C][/ROW]
[ROW][C]21[/C][C]8[/C][C]7.565[/C][C]0.435[/C][/ROW]
[ROW][C]22[/C][C]8.6[/C][C]8.145[/C][C]0.455[/C][/ROW]
[ROW][C]23[/C][C]8.7[/C][C]8.225[/C][C]0.475[/C][/ROW]
[ROW][C]24[/C][C]8.8[/C][C]8.165[/C][C]0.635[/C][/ROW]
[ROW][C]25[/C][C]8.5[/C][C]8.40444444444444[/C][C]0.095555555555558[/C][/ROW]
[ROW][C]26[/C][C]8.4[/C][C]8.28444444444444[/C][C]0.115555555555556[/C][/ROW]
[ROW][C]27[/C][C]8.5[/C][C]8.40444444444445[/C][C]0.0955555555555552[/C][/ROW]
[ROW][C]28[/C][C]8.7[/C][C]8.58444444444444[/C][C]0.115555555555555[/C][/ROW]
[ROW][C]29[/C][C]8.7[/C][C]8.54444444444444[/C][C]0.155555555555555[/C][/ROW]
[ROW][C]30[/C][C]8.6[/C][C]8.34444444444444[/C][C]0.255555555555555[/C][/ROW]
[ROW][C]31[/C][C]8.5[/C][C]8.06444444444444[/C][C]0.435555555555556[/C][/ROW]
[ROW][C]32[/C][C]8.3[/C][C]7.80444444444444[/C][C]0.495555555555556[/C][/ROW]
[ROW][C]33[/C][C]8.1[/C][C]7.70444444444444[/C][C]0.395555555555555[/C][/ROW]
[ROW][C]34[/C][C]8.2[/C][C]8.28444444444444[/C][C]-0.084444444444445[/C][/ROW]
[ROW][C]35[/C][C]8.1[/C][C]8.36444444444444[/C][C]-0.264444444444445[/C][/ROW]
[ROW][C]36[/C][C]8.1[/C][C]8.30444444444444[/C][C]-0.204444444444445[/C][/ROW]
[ROW][C]37[/C][C]7.9[/C][C]7.78277777777778[/C][C]0.117222222222225[/C][/ROW]
[ROW][C]38[/C][C]7.9[/C][C]7.66277777777778[/C][C]0.237222222222223[/C][/ROW]
[ROW][C]39[/C][C]7.9[/C][C]7.78277777777778[/C][C]0.117222222222222[/C][/ROW]
[ROW][C]40[/C][C]8[/C][C]7.96277777777778[/C][C]0.0372222222222221[/C][/ROW]
[ROW][C]41[/C][C]8[/C][C]7.92277777777778[/C][C]0.077222222222222[/C][/ROW]
[ROW][C]42[/C][C]7.9[/C][C]7.72277777777778[/C][C]0.177222222222222[/C][/ROW]
[ROW][C]43[/C][C]8[/C][C]7.44277777777778[/C][C]0.557222222222222[/C][/ROW]
[ROW][C]44[/C][C]7.7[/C][C]7.18277777777778[/C][C]0.517222222222222[/C][/ROW]
[ROW][C]45[/C][C]7.2[/C][C]7.08277777777778[/C][C]0.117222222222222[/C][/ROW]
[ROW][C]46[/C][C]7.5[/C][C]7.66277777777778[/C][C]-0.162777777777778[/C][/ROW]
[ROW][C]47[/C][C]7.3[/C][C]7.74277777777778[/C][C]-0.442777777777778[/C][/ROW]
[ROW][C]48[/C][C]7[/C][C]7.68277777777778[/C][C]-0.682777777777778[/C][/ROW]
[ROW][C]49[/C][C]7[/C][C]7.16111111111111[/C][C]-0.161111111111109[/C][/ROW]
[ROW][C]50[/C][C]7[/C][C]7.04111111111111[/C][C]-0.0411111111111112[/C][/ROW]
[ROW][C]51[/C][C]7.2[/C][C]7.16111111111111[/C][C]0.0388888888888886[/C][/ROW]
[ROW][C]52[/C][C]7.3[/C][C]7.34111111111111[/C][C]-0.0411111111111115[/C][/ROW]
[ROW][C]53[/C][C]7.1[/C][C]7.30111111111111[/C][C]-0.201111111111111[/C][/ROW]
[ROW][C]54[/C][C]6.8[/C][C]7.10111111111111[/C][C]-0.301111111111112[/C][/ROW]
[ROW][C]55[/C][C]6.6[/C][C]6.82111111111111[/C][C]-0.221111111111112[/C][/ROW]
[ROW][C]56[/C][C]6.2[/C][C]6.56111111111111[/C][C]-0.361111111111111[/C][/ROW]
[ROW][C]57[/C][C]6.2[/C][C]6.46111111111111[/C][C]-0.261111111111111[/C][/ROW]
[ROW][C]58[/C][C]6.8[/C][C]7.04111111111111[/C][C]-0.241111111111111[/C][/ROW]
[ROW][C]59[/C][C]6.9[/C][C]7.12111111111111[/C][C]-0.221111111111111[/C][/ROW]
[ROW][C]60[/C][C]6.8[/C][C]7.06111111111111[/C][C]-0.261111111111112[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25258&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25258&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.48.88666666666668-0.486666666666676
28.48.76666666666667-0.366666666666666
38.68.88666666666667-0.286666666666667
48.99.06666666666667-0.166666666666666
58.89.02666666666667-0.226666666666665
68.38.82666666666667-0.526666666666666
77.58.54666666666667-1.04666666666667
87.28.28666666666667-1.08666666666667
97.58.18666666666667-0.686666666666666
108.88.766666666666670.0333333333333344
119.38.846666666666670.453333333333334
129.38.786666666666670.513333333333334
138.78.2650.435000000000002
148.28.1450.0549999999999991
158.38.2650.0350000000000007
168.58.4450.0550000000000002
178.68.4050.195000000000000
188.68.2050.395
198.27.9250.275000000000000
208.17.6650.434999999999999
2187.5650.435
228.68.1450.455
238.78.2250.475
248.88.1650.635
258.58.404444444444440.095555555555558
268.48.284444444444440.115555555555556
278.58.404444444444450.0955555555555552
288.78.584444444444440.115555555555555
298.78.544444444444440.155555555555555
308.68.344444444444440.255555555555555
318.58.064444444444440.435555555555556
328.37.804444444444440.495555555555556
338.17.704444444444440.395555555555555
348.28.28444444444444-0.084444444444445
358.18.36444444444444-0.264444444444445
368.18.30444444444444-0.204444444444445
377.97.782777777777780.117222222222225
387.97.662777777777780.237222222222223
397.97.782777777777780.117222222222222
4087.962777777777780.0372222222222221
4187.922777777777780.077222222222222
427.97.722777777777780.177222222222222
4387.442777777777780.557222222222222
447.77.182777777777780.517222222222222
457.27.082777777777780.117222222222222
467.57.66277777777778-0.162777777777778
477.37.74277777777778-0.442777777777778
4877.68277777777778-0.682777777777778
4977.16111111111111-0.161111111111109
5077.04111111111111-0.0411111111111112
517.27.161111111111110.0388888888888886
527.37.34111111111111-0.0411111111111115
537.17.30111111111111-0.201111111111111
546.87.10111111111111-0.301111111111112
556.66.82111111111111-0.221111111111112
566.26.56111111111111-0.361111111111111
576.26.46111111111111-0.261111111111111
586.87.04111111111111-0.241111111111111
596.97.12111111111111-0.221111111111111
606.87.06111111111111-0.261111111111112







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.5632416742847620.8735166514304770.436758325715238
180.6219690982308350.756061803538330.378030901769165
190.9020164264454730.1959671471090550.0979835735545273
200.9806815281955730.03863694360885330.0193184718044267
210.9821091702600430.03578165947991510.0178908297399575
220.9785257188990540.0429485622018920.021474281100946
230.987409907880420.02518018423915960.0125900921195798
240.9861180415286160.02776391694276850.0138819584713843
250.9749599889447550.05008002211048970.0250400110552449
260.9632571097407560.07348578051848870.0367428902592443
270.9482955433922640.1034089132154720.0517044566077358
280.9218967315711880.1562065368576240.0781032684288119
290.8795005368170360.2409989263659270.120499463182964
300.8234169473944980.3531661052110050.176583052605502
310.8288727050104070.3422545899791860.171127294989593
320.8131485212807230.3737029574385540.186851478719277
330.7550017770736130.4899964458527740.244998222926387
340.7765713799117840.4468572401764310.223428620088215
350.8584377747251180.2831244505497630.141562225274882
360.872162006623050.2556759867538990.127837993376949
370.831849656224140.3363006875517180.168150343775859
380.7546224262710130.4907551474579750.245377573728987
390.6738618902189970.6522762195620050.326138109781003
400.5874525285528610.8250949428942780.412547471447139
410.4674169547275440.9348339094550880.532583045272456
420.3467205306595260.6934410613190510.653279469340474
430.3254127131719070.6508254263438140.674587286828093

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.563241674284762 & 0.873516651430477 & 0.436758325715238 \tabularnewline
18 & 0.621969098230835 & 0.75606180353833 & 0.378030901769165 \tabularnewline
19 & 0.902016426445473 & 0.195967147109055 & 0.0979835735545273 \tabularnewline
20 & 0.980681528195573 & 0.0386369436088533 & 0.0193184718044267 \tabularnewline
21 & 0.982109170260043 & 0.0357816594799151 & 0.0178908297399575 \tabularnewline
22 & 0.978525718899054 & 0.042948562201892 & 0.021474281100946 \tabularnewline
23 & 0.98740990788042 & 0.0251801842391596 & 0.0125900921195798 \tabularnewline
24 & 0.986118041528616 & 0.0277639169427685 & 0.0138819584713843 \tabularnewline
25 & 0.974959988944755 & 0.0500800221104897 & 0.0250400110552449 \tabularnewline
26 & 0.963257109740756 & 0.0734857805184887 & 0.0367428902592443 \tabularnewline
27 & 0.948295543392264 & 0.103408913215472 & 0.0517044566077358 \tabularnewline
28 & 0.921896731571188 & 0.156206536857624 & 0.0781032684288119 \tabularnewline
29 & 0.879500536817036 & 0.240998926365927 & 0.120499463182964 \tabularnewline
30 & 0.823416947394498 & 0.353166105211005 & 0.176583052605502 \tabularnewline
31 & 0.828872705010407 & 0.342254589979186 & 0.171127294989593 \tabularnewline
32 & 0.813148521280723 & 0.373702957438554 & 0.186851478719277 \tabularnewline
33 & 0.755001777073613 & 0.489996445852774 & 0.244998222926387 \tabularnewline
34 & 0.776571379911784 & 0.446857240176431 & 0.223428620088215 \tabularnewline
35 & 0.858437774725118 & 0.283124450549763 & 0.141562225274882 \tabularnewline
36 & 0.87216200662305 & 0.255675986753899 & 0.127837993376949 \tabularnewline
37 & 0.83184965622414 & 0.336300687551718 & 0.168150343775859 \tabularnewline
38 & 0.754622426271013 & 0.490755147457975 & 0.245377573728987 \tabularnewline
39 & 0.673861890218997 & 0.652276219562005 & 0.326138109781003 \tabularnewline
40 & 0.587452528552861 & 0.825094942894278 & 0.412547471447139 \tabularnewline
41 & 0.467416954727544 & 0.934833909455088 & 0.532583045272456 \tabularnewline
42 & 0.346720530659526 & 0.693441061319051 & 0.653279469340474 \tabularnewline
43 & 0.325412713171907 & 0.650825426343814 & 0.674587286828093 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25258&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.563241674284762[/C][C]0.873516651430477[/C][C]0.436758325715238[/C][/ROW]
[ROW][C]18[/C][C]0.621969098230835[/C][C]0.75606180353833[/C][C]0.378030901769165[/C][/ROW]
[ROW][C]19[/C][C]0.902016426445473[/C][C]0.195967147109055[/C][C]0.0979835735545273[/C][/ROW]
[ROW][C]20[/C][C]0.980681528195573[/C][C]0.0386369436088533[/C][C]0.0193184718044267[/C][/ROW]
[ROW][C]21[/C][C]0.982109170260043[/C][C]0.0357816594799151[/C][C]0.0178908297399575[/C][/ROW]
[ROW][C]22[/C][C]0.978525718899054[/C][C]0.042948562201892[/C][C]0.021474281100946[/C][/ROW]
[ROW][C]23[/C][C]0.98740990788042[/C][C]0.0251801842391596[/C][C]0.0125900921195798[/C][/ROW]
[ROW][C]24[/C][C]0.986118041528616[/C][C]0.0277639169427685[/C][C]0.0138819584713843[/C][/ROW]
[ROW][C]25[/C][C]0.974959988944755[/C][C]0.0500800221104897[/C][C]0.0250400110552449[/C][/ROW]
[ROW][C]26[/C][C]0.963257109740756[/C][C]0.0734857805184887[/C][C]0.0367428902592443[/C][/ROW]
[ROW][C]27[/C][C]0.948295543392264[/C][C]0.103408913215472[/C][C]0.0517044566077358[/C][/ROW]
[ROW][C]28[/C][C]0.921896731571188[/C][C]0.156206536857624[/C][C]0.0781032684288119[/C][/ROW]
[ROW][C]29[/C][C]0.879500536817036[/C][C]0.240998926365927[/C][C]0.120499463182964[/C][/ROW]
[ROW][C]30[/C][C]0.823416947394498[/C][C]0.353166105211005[/C][C]0.176583052605502[/C][/ROW]
[ROW][C]31[/C][C]0.828872705010407[/C][C]0.342254589979186[/C][C]0.171127294989593[/C][/ROW]
[ROW][C]32[/C][C]0.813148521280723[/C][C]0.373702957438554[/C][C]0.186851478719277[/C][/ROW]
[ROW][C]33[/C][C]0.755001777073613[/C][C]0.489996445852774[/C][C]0.244998222926387[/C][/ROW]
[ROW][C]34[/C][C]0.776571379911784[/C][C]0.446857240176431[/C][C]0.223428620088215[/C][/ROW]
[ROW][C]35[/C][C]0.858437774725118[/C][C]0.283124450549763[/C][C]0.141562225274882[/C][/ROW]
[ROW][C]36[/C][C]0.87216200662305[/C][C]0.255675986753899[/C][C]0.127837993376949[/C][/ROW]
[ROW][C]37[/C][C]0.83184965622414[/C][C]0.336300687551718[/C][C]0.168150343775859[/C][/ROW]
[ROW][C]38[/C][C]0.754622426271013[/C][C]0.490755147457975[/C][C]0.245377573728987[/C][/ROW]
[ROW][C]39[/C][C]0.673861890218997[/C][C]0.652276219562005[/C][C]0.326138109781003[/C][/ROW]
[ROW][C]40[/C][C]0.587452528552861[/C][C]0.825094942894278[/C][C]0.412547471447139[/C][/ROW]
[ROW][C]41[/C][C]0.467416954727544[/C][C]0.934833909455088[/C][C]0.532583045272456[/C][/ROW]
[ROW][C]42[/C][C]0.346720530659526[/C][C]0.693441061319051[/C][C]0.653279469340474[/C][/ROW]
[ROW][C]43[/C][C]0.325412713171907[/C][C]0.650825426343814[/C][C]0.674587286828093[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25258&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25258&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.5632416742847620.8735166514304770.436758325715238
180.6219690982308350.756061803538330.378030901769165
190.9020164264454730.1959671471090550.0979835735545273
200.9806815281955730.03863694360885330.0193184718044267
210.9821091702600430.03578165947991510.0178908297399575
220.9785257188990540.0429485622018920.021474281100946
230.987409907880420.02518018423915960.0125900921195798
240.9861180415286160.02776391694276850.0138819584713843
250.9749599889447550.05008002211048970.0250400110552449
260.9632571097407560.07348578051848870.0367428902592443
270.9482955433922640.1034089132154720.0517044566077358
280.9218967315711880.1562065368576240.0781032684288119
290.8795005368170360.2409989263659270.120499463182964
300.8234169473944980.3531661052110050.176583052605502
310.8288727050104070.3422545899791860.171127294989593
320.8131485212807230.3737029574385540.186851478719277
330.7550017770736130.4899964458527740.244998222926387
340.7765713799117840.4468572401764310.223428620088215
350.8584377747251180.2831244505497630.141562225274882
360.872162006623050.2556759867538990.127837993376949
370.831849656224140.3363006875517180.168150343775859
380.7546224262710130.4907551474579750.245377573728987
390.6738618902189970.6522762195620050.326138109781003
400.5874525285528610.8250949428942780.412547471447139
410.4674169547275440.9348339094550880.532583045272456
420.3467205306595260.6934410613190510.653279469340474
430.3254127131719070.6508254263438140.674587286828093







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level50.185185185185185NOK
10% type I error level70.259259259259259NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25258&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 level50.185185185185185NOK
10% type I error level70.259259259259259NOK



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