Free Statistics

of Irreproducible Research!

Author's title

Multiple Lineair Regression q1 Totaal niet-werkende werkzoekende mannen Vla...

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationWed, 17 Dec 2008 11:14:41 -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/Dec/17/t1229537748epkzjyz9b0sx6s6.htm/, Retrieved Sun, 19 May 2024 07:21:08 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=34470, Retrieved Sun, 19 May 2024 07:21:08 +0000
QR Codes:

Original text written by user:Endogenous time series: 1 Seasonal effects: ja Linear trend: ja
IsPrivate?No (this computation is public)
User-defined keywordsMultiple Lineair Regression q1 Totaal niet-werkende werkzoekende mannen Vlaams gewest
Estimated Impact180
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Multiple Lineair ...] [2008-12-16 21:44:16] [b635de6fc42b001d22cbe6e730fec936]
-   P     [Multiple Regression] [Multiple Lineair ...] [2008-12-17 18:14:41] [f4b2017b314c03698059f43b95818e67] [Current]
-   P       [Multiple Regression] [Multiple Lineair ...] [2008-12-21 18:55:53] [b635de6fc42b001d22cbe6e730fec936]
Feedback Forum

Post a new message
Dataseries X:
106099	0
103235	0
98857	0
101107	0
102700	0
101477	0
99639	0
96622	0
94697	0
95093	0
112885	0
121162	0
113624	0
111632	0
106707	0
108827	0
108413	0
106249	0
104861	0
102382	0
100320	0
100228	0
117089	0
121523	0
114948	0
112831	0
107605	0
108928	1
101993	1
102850	1
99925	1
101536	1
99450	1
98305	1
110159	1
109483	1
106810	1
96279	1
91982	1
90276	1
90999	1
86622	1
83117	1
80367	1
77550	1
77443	1
92844	1
92175	1
84822	1
81632	1
78872	1
81485	1
80651	1
78192	1
76844	1
76335	1
71415	1
73899	1
86822	1
86371	1
83469	1
82662	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time7 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 & 7 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=34470&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]7 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=34470&T=0

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







Multiple Linear Regression - Estimated Regression Equation
werkl.man[t] = + 125874.128571429 -47.9761904761994Wetswijziging[t] -7255.39523809523M1[t] -10291.6023809524M2[t] -14273.4309523809M3[t] -12396.5428571429M4[t] -13022.65M5[t] -14348.5571428571M6[t] -16002.0642857143M7[t] -16883.5714285714M8[t] -19098.2785714286M9[t] -18243.7857142857M10[t] -2730.29285714285M11[t] -547.292857142857t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
werkl.man[t] =  +  125874.128571429 -47.9761904761994Wetswijziging[t] -7255.39523809523M1[t] -10291.6023809524M2[t] -14273.4309523809M3[t] -12396.5428571429M4[t] -13022.65M5[t] -14348.5571428571M6[t] -16002.0642857143M7[t] -16883.5714285714M8[t] -19098.2785714286M9[t] -18243.7857142857M10[t] -2730.29285714285M11[t] -547.292857142857t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34470&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]werkl.man[t] =  +  125874.128571429 -47.9761904761994Wetswijziging[t] -7255.39523809523M1[t] -10291.6023809524M2[t] -14273.4309523809M3[t] -12396.5428571429M4[t] -13022.65M5[t] -14348.5571428571M6[t] -16002.0642857143M7[t] -16883.5714285714M8[t] -19098.2785714286M9[t] -18243.7857142857M10[t] -2730.29285714285M11[t] -547.292857142857t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34470&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34470&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
werkl.man[t] = + 125874.128571429 -47.9761904761994Wetswijziging[t] -7255.39523809523M1[t] -10291.6023809524M2[t] -14273.4309523809M3[t] -12396.5428571429M4[t] -13022.65M5[t] -14348.5571428571M6[t] -16002.0642857143M7[t] -16883.5714285714M8[t] -19098.2785714286M9[t] -18243.7857142857M10[t] -2730.29285714285M11[t] -547.292857142857t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)125874.1285714293908.94123532.201600
Wetswijziging-47.97619047619943784.816076-0.01270.9899390.494969
M1-7255.395238095234436.645512-1.63530.1085210.05426
M2-10291.60238095244433.206154-2.32150.0245530.012276
M3-14273.43095238094649.576332-3.06980.0035190.00176
M4-12396.54285714294700.973235-2.6370.0112360.005618
M5-13022.654683.305743-2.78070.0077270.003864
M6-14348.55714285714667.939827-3.07390.003480.00174
M7-16002.06428571434654.898281-3.43770.0012220.000611
M8-16883.57142857144644.200685-3.63540.0006750.000338
M9-19098.27857142864635.863266-4.11970.0001497.4e-05
M10-18243.78571428574629.898774-3.94040.0002630.000132
M11-2730.292857142854626.316388-0.59020.5578480.278924
t-547.292857142857105.13378-5.20574e-062e-06

\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) & 125874.128571429 & 3908.941235 & 32.2016 & 0 & 0 \tabularnewline
Wetswijziging & -47.9761904761994 & 3784.816076 & -0.0127 & 0.989939 & 0.494969 \tabularnewline
M1 & -7255.39523809523 & 4436.645512 & -1.6353 & 0.108521 & 0.05426 \tabularnewline
M2 & -10291.6023809524 & 4433.206154 & -2.3215 & 0.024553 & 0.012276 \tabularnewline
M3 & -14273.4309523809 & 4649.576332 & -3.0698 & 0.003519 & 0.00176 \tabularnewline
M4 & -12396.5428571429 & 4700.973235 & -2.637 & 0.011236 & 0.005618 \tabularnewline
M5 & -13022.65 & 4683.305743 & -2.7807 & 0.007727 & 0.003864 \tabularnewline
M6 & -14348.5571428571 & 4667.939827 & -3.0739 & 0.00348 & 0.00174 \tabularnewline
M7 & -16002.0642857143 & 4654.898281 & -3.4377 & 0.001222 & 0.000611 \tabularnewline
M8 & -16883.5714285714 & 4644.200685 & -3.6354 & 0.000675 & 0.000338 \tabularnewline
M9 & -19098.2785714286 & 4635.863266 & -4.1197 & 0.000149 & 7.4e-05 \tabularnewline
M10 & -18243.7857142857 & 4629.898774 & -3.9404 & 0.000263 & 0.000132 \tabularnewline
M11 & -2730.29285714285 & 4626.316388 & -0.5902 & 0.557848 & 0.278924 \tabularnewline
t & -547.292857142857 & 105.13378 & -5.2057 & 4e-06 & 2e-06 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34470&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]125874.128571429[/C][C]3908.941235[/C][C]32.2016[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Wetswijziging[/C][C]-47.9761904761994[/C][C]3784.816076[/C][C]-0.0127[/C][C]0.989939[/C][C]0.494969[/C][/ROW]
[ROW][C]M1[/C][C]-7255.39523809523[/C][C]4436.645512[/C][C]-1.6353[/C][C]0.108521[/C][C]0.05426[/C][/ROW]
[ROW][C]M2[/C][C]-10291.6023809524[/C][C]4433.206154[/C][C]-2.3215[/C][C]0.024553[/C][C]0.012276[/C][/ROW]
[ROW][C]M3[/C][C]-14273.4309523809[/C][C]4649.576332[/C][C]-3.0698[/C][C]0.003519[/C][C]0.00176[/C][/ROW]
[ROW][C]M4[/C][C]-12396.5428571429[/C][C]4700.973235[/C][C]-2.637[/C][C]0.011236[/C][C]0.005618[/C][/ROW]
[ROW][C]M5[/C][C]-13022.65[/C][C]4683.305743[/C][C]-2.7807[/C][C]0.007727[/C][C]0.003864[/C][/ROW]
[ROW][C]M6[/C][C]-14348.5571428571[/C][C]4667.939827[/C][C]-3.0739[/C][C]0.00348[/C][C]0.00174[/C][/ROW]
[ROW][C]M7[/C][C]-16002.0642857143[/C][C]4654.898281[/C][C]-3.4377[/C][C]0.001222[/C][C]0.000611[/C][/ROW]
[ROW][C]M8[/C][C]-16883.5714285714[/C][C]4644.200685[/C][C]-3.6354[/C][C]0.000675[/C][C]0.000338[/C][/ROW]
[ROW][C]M9[/C][C]-19098.2785714286[/C][C]4635.863266[/C][C]-4.1197[/C][C]0.000149[/C][C]7.4e-05[/C][/ROW]
[ROW][C]M10[/C][C]-18243.7857142857[/C][C]4629.898774[/C][C]-3.9404[/C][C]0.000263[/C][C]0.000132[/C][/ROW]
[ROW][C]M11[/C][C]-2730.29285714285[/C][C]4626.316388[/C][C]-0.5902[/C][C]0.557848[/C][C]0.278924[/C][/ROW]
[ROW][C]t[/C][C]-547.292857142857[/C][C]105.13378[/C][C]-5.2057[/C][C]4e-06[/C][C]2e-06[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34470&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34470&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)125874.1285714293908.94123532.201600
Wetswijziging-47.97619047619943784.816076-0.01270.9899390.494969
M1-7255.395238095234436.645512-1.63530.1085210.05426
M2-10291.60238095244433.206154-2.32150.0245530.012276
M3-14273.43095238094649.576332-3.06980.0035190.00176
M4-12396.54285714294700.973235-2.6370.0112360.005618
M5-13022.654683.305743-2.78070.0077270.003864
M6-14348.55714285714667.939827-3.07390.003480.00174
M7-16002.06428571434654.898281-3.43770.0012220.000611
M8-16883.57142857144644.200685-3.63540.0006750.000338
M9-19098.27857142864635.863266-4.11970.0001497.4e-05
M10-18243.78571428574629.898774-3.94040.0002630.000132
M11-2730.292857142854626.316388-0.59020.5578480.278924
t-547.292857142857105.13378-5.20574e-062e-06







Multiple Linear Regression - Regression Statistics
Multiple R0.864100298708356
R-squared0.74666932622787
Adjusted R-squared0.678058935414585
F-TEST (value)10.8827441059159
F-TEST (DF numerator)13
F-TEST (DF denominator)48
p-value2.85225731921912e-10
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation7312.95942346978
Sum Squared Residuals2567010025.40714

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.864100298708356 \tabularnewline
R-squared & 0.74666932622787 \tabularnewline
Adjusted R-squared & 0.678058935414585 \tabularnewline
F-TEST (value) & 10.8827441059159 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 48 \tabularnewline
p-value & 2.85225731921912e-10 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 7312.95942346978 \tabularnewline
Sum Squared Residuals & 2567010025.40714 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34470&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.864100298708356[/C][/ROW]
[ROW][C]R-squared[/C][C]0.74666932622787[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.678058935414585[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]10.8827441059159[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]48[/C][/ROW]
[ROW][C]p-value[/C][C]2.85225731921912e-10[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]7312.95942346978[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]2567010025.40714[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34470&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34470&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.864100298708356
R-squared0.74666932622787
Adjusted R-squared0.678058935414585
F-TEST (value)10.8827441059159
F-TEST (DF numerator)13
F-TEST (DF denominator)48
p-value2.85225731921912e-10
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation7312.95942346978
Sum Squared Residuals2567010025.40714







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1106099118071.440476191-11972.4404761905
2103235114487.940476190-11252.9404761905
398857109958.819047619-11101.8190476191
4101107111288.414285714-10181.4142857143
5102700110115.014285714-7415.0142857143
6101477108241.814285714-6764.81428571428
799639106041.014285714-6402.01428571429
896622104612.214285714-7990.21428571429
994697101850.214285714-7153.21428571429
1095093102157.414285714-7064.41428571428
11112885117123.614285714-4238.61428571429
12121162119306.6142857141855.38571428572
13113624111503.9261904762120.07380952381
14111632107920.4261904763711.57380952381
15106707103391.3047619053315.69523809524
16108827104720.94106.1
17108413103547.54865.5
18106249101674.34574.7
1910486199473.55387.5
2010238298044.74337.3
2110032095282.75037.3
2210022895589.94638.1
23117089110556.16532.9
24121523112739.18783.9
25114948104936.41190476210011.5880952381
26112831101352.91190476211478.0880952381
2710760596823.790476190510781.2095238095
2810892898105.409523809510822.5904761905
2910199396932.00952380955060.99047619048
3010285095058.80952380957791.19047619048
319992592858.00952380957066.99047619048
3210153691429.209523809510106.7904761905
339945088667.209523809510782.7904761905
349830588974.40952380959330.59047619047
35110159103940.6095238106218.39047619048
36109483106123.6095238103359.39047619048
3710681098320.92142857148489.07857142858
389627994737.42142857141541.57857142857
399198290208.31773.70000000000
409027691537.8952380952-1261.89523809524
419099990364.4952380952634.504761904763
428662288491.2952380952-1869.29523809524
438311786290.4952380952-3173.49523809524
448036784861.6952380952-4494.69523809524
457755082099.6952380952-4549.69523809524
467744382406.8952380952-4963.89523809524
479284497373.0952380952-4529.09523809524
489217599556.0952380952-7381.09523809523
498482291753.4071428571-6931.40714285714
508163288169.9071428571-6537.90714285714
517887283640.7857142857-4768.78571428571
528148584970.380952381-3485.38095238096
538065183796.980952381-3145.98095238095
547819281923.780952381-3731.78095238096
557684479722.980952381-2878.98095238095
567633578294.180952381-1959.18095238095
577141575532.180952381-4117.18095238096
587389975839.380952381-1940.38095238096
598682290805.580952381-3983.58095238096
608637192988.580952381-6617.58095238095
618346985185.8928571429-1716.89285714285
628266281602.39285714291059.60714285714

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 106099 & 118071.440476191 & -11972.4404761905 \tabularnewline
2 & 103235 & 114487.940476190 & -11252.9404761905 \tabularnewline
3 & 98857 & 109958.819047619 & -11101.8190476191 \tabularnewline
4 & 101107 & 111288.414285714 & -10181.4142857143 \tabularnewline
5 & 102700 & 110115.014285714 & -7415.0142857143 \tabularnewline
6 & 101477 & 108241.814285714 & -6764.81428571428 \tabularnewline
7 & 99639 & 106041.014285714 & -6402.01428571429 \tabularnewline
8 & 96622 & 104612.214285714 & -7990.21428571429 \tabularnewline
9 & 94697 & 101850.214285714 & -7153.21428571429 \tabularnewline
10 & 95093 & 102157.414285714 & -7064.41428571428 \tabularnewline
11 & 112885 & 117123.614285714 & -4238.61428571429 \tabularnewline
12 & 121162 & 119306.614285714 & 1855.38571428572 \tabularnewline
13 & 113624 & 111503.926190476 & 2120.07380952381 \tabularnewline
14 & 111632 & 107920.426190476 & 3711.57380952381 \tabularnewline
15 & 106707 & 103391.304761905 & 3315.69523809524 \tabularnewline
16 & 108827 & 104720.9 & 4106.1 \tabularnewline
17 & 108413 & 103547.5 & 4865.5 \tabularnewline
18 & 106249 & 101674.3 & 4574.7 \tabularnewline
19 & 104861 & 99473.5 & 5387.5 \tabularnewline
20 & 102382 & 98044.7 & 4337.3 \tabularnewline
21 & 100320 & 95282.7 & 5037.3 \tabularnewline
22 & 100228 & 95589.9 & 4638.1 \tabularnewline
23 & 117089 & 110556.1 & 6532.9 \tabularnewline
24 & 121523 & 112739.1 & 8783.9 \tabularnewline
25 & 114948 & 104936.411904762 & 10011.5880952381 \tabularnewline
26 & 112831 & 101352.911904762 & 11478.0880952381 \tabularnewline
27 & 107605 & 96823.7904761905 & 10781.2095238095 \tabularnewline
28 & 108928 & 98105.4095238095 & 10822.5904761905 \tabularnewline
29 & 101993 & 96932.0095238095 & 5060.99047619048 \tabularnewline
30 & 102850 & 95058.8095238095 & 7791.19047619048 \tabularnewline
31 & 99925 & 92858.0095238095 & 7066.99047619048 \tabularnewline
32 & 101536 & 91429.2095238095 & 10106.7904761905 \tabularnewline
33 & 99450 & 88667.2095238095 & 10782.7904761905 \tabularnewline
34 & 98305 & 88974.4095238095 & 9330.59047619047 \tabularnewline
35 & 110159 & 103940.609523810 & 6218.39047619048 \tabularnewline
36 & 109483 & 106123.609523810 & 3359.39047619048 \tabularnewline
37 & 106810 & 98320.9214285714 & 8489.07857142858 \tabularnewline
38 & 96279 & 94737.4214285714 & 1541.57857142857 \tabularnewline
39 & 91982 & 90208.3 & 1773.70000000000 \tabularnewline
40 & 90276 & 91537.8952380952 & -1261.89523809524 \tabularnewline
41 & 90999 & 90364.4952380952 & 634.504761904763 \tabularnewline
42 & 86622 & 88491.2952380952 & -1869.29523809524 \tabularnewline
43 & 83117 & 86290.4952380952 & -3173.49523809524 \tabularnewline
44 & 80367 & 84861.6952380952 & -4494.69523809524 \tabularnewline
45 & 77550 & 82099.6952380952 & -4549.69523809524 \tabularnewline
46 & 77443 & 82406.8952380952 & -4963.89523809524 \tabularnewline
47 & 92844 & 97373.0952380952 & -4529.09523809524 \tabularnewline
48 & 92175 & 99556.0952380952 & -7381.09523809523 \tabularnewline
49 & 84822 & 91753.4071428571 & -6931.40714285714 \tabularnewline
50 & 81632 & 88169.9071428571 & -6537.90714285714 \tabularnewline
51 & 78872 & 83640.7857142857 & -4768.78571428571 \tabularnewline
52 & 81485 & 84970.380952381 & -3485.38095238096 \tabularnewline
53 & 80651 & 83796.980952381 & -3145.98095238095 \tabularnewline
54 & 78192 & 81923.780952381 & -3731.78095238096 \tabularnewline
55 & 76844 & 79722.980952381 & -2878.98095238095 \tabularnewline
56 & 76335 & 78294.180952381 & -1959.18095238095 \tabularnewline
57 & 71415 & 75532.180952381 & -4117.18095238096 \tabularnewline
58 & 73899 & 75839.380952381 & -1940.38095238096 \tabularnewline
59 & 86822 & 90805.580952381 & -3983.58095238096 \tabularnewline
60 & 86371 & 92988.580952381 & -6617.58095238095 \tabularnewline
61 & 83469 & 85185.8928571429 & -1716.89285714285 \tabularnewline
62 & 82662 & 81602.3928571429 & 1059.60714285714 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34470&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]106099[/C][C]118071.440476191[/C][C]-11972.4404761905[/C][/ROW]
[ROW][C]2[/C][C]103235[/C][C]114487.940476190[/C][C]-11252.9404761905[/C][/ROW]
[ROW][C]3[/C][C]98857[/C][C]109958.819047619[/C][C]-11101.8190476191[/C][/ROW]
[ROW][C]4[/C][C]101107[/C][C]111288.414285714[/C][C]-10181.4142857143[/C][/ROW]
[ROW][C]5[/C][C]102700[/C][C]110115.014285714[/C][C]-7415.0142857143[/C][/ROW]
[ROW][C]6[/C][C]101477[/C][C]108241.814285714[/C][C]-6764.81428571428[/C][/ROW]
[ROW][C]7[/C][C]99639[/C][C]106041.014285714[/C][C]-6402.01428571429[/C][/ROW]
[ROW][C]8[/C][C]96622[/C][C]104612.214285714[/C][C]-7990.21428571429[/C][/ROW]
[ROW][C]9[/C][C]94697[/C][C]101850.214285714[/C][C]-7153.21428571429[/C][/ROW]
[ROW][C]10[/C][C]95093[/C][C]102157.414285714[/C][C]-7064.41428571428[/C][/ROW]
[ROW][C]11[/C][C]112885[/C][C]117123.614285714[/C][C]-4238.61428571429[/C][/ROW]
[ROW][C]12[/C][C]121162[/C][C]119306.614285714[/C][C]1855.38571428572[/C][/ROW]
[ROW][C]13[/C][C]113624[/C][C]111503.926190476[/C][C]2120.07380952381[/C][/ROW]
[ROW][C]14[/C][C]111632[/C][C]107920.426190476[/C][C]3711.57380952381[/C][/ROW]
[ROW][C]15[/C][C]106707[/C][C]103391.304761905[/C][C]3315.69523809524[/C][/ROW]
[ROW][C]16[/C][C]108827[/C][C]104720.9[/C][C]4106.1[/C][/ROW]
[ROW][C]17[/C][C]108413[/C][C]103547.5[/C][C]4865.5[/C][/ROW]
[ROW][C]18[/C][C]106249[/C][C]101674.3[/C][C]4574.7[/C][/ROW]
[ROW][C]19[/C][C]104861[/C][C]99473.5[/C][C]5387.5[/C][/ROW]
[ROW][C]20[/C][C]102382[/C][C]98044.7[/C][C]4337.3[/C][/ROW]
[ROW][C]21[/C][C]100320[/C][C]95282.7[/C][C]5037.3[/C][/ROW]
[ROW][C]22[/C][C]100228[/C][C]95589.9[/C][C]4638.1[/C][/ROW]
[ROW][C]23[/C][C]117089[/C][C]110556.1[/C][C]6532.9[/C][/ROW]
[ROW][C]24[/C][C]121523[/C][C]112739.1[/C][C]8783.9[/C][/ROW]
[ROW][C]25[/C][C]114948[/C][C]104936.411904762[/C][C]10011.5880952381[/C][/ROW]
[ROW][C]26[/C][C]112831[/C][C]101352.911904762[/C][C]11478.0880952381[/C][/ROW]
[ROW][C]27[/C][C]107605[/C][C]96823.7904761905[/C][C]10781.2095238095[/C][/ROW]
[ROW][C]28[/C][C]108928[/C][C]98105.4095238095[/C][C]10822.5904761905[/C][/ROW]
[ROW][C]29[/C][C]101993[/C][C]96932.0095238095[/C][C]5060.99047619048[/C][/ROW]
[ROW][C]30[/C][C]102850[/C][C]95058.8095238095[/C][C]7791.19047619048[/C][/ROW]
[ROW][C]31[/C][C]99925[/C][C]92858.0095238095[/C][C]7066.99047619048[/C][/ROW]
[ROW][C]32[/C][C]101536[/C][C]91429.2095238095[/C][C]10106.7904761905[/C][/ROW]
[ROW][C]33[/C][C]99450[/C][C]88667.2095238095[/C][C]10782.7904761905[/C][/ROW]
[ROW][C]34[/C][C]98305[/C][C]88974.4095238095[/C][C]9330.59047619047[/C][/ROW]
[ROW][C]35[/C][C]110159[/C][C]103940.609523810[/C][C]6218.39047619048[/C][/ROW]
[ROW][C]36[/C][C]109483[/C][C]106123.609523810[/C][C]3359.39047619048[/C][/ROW]
[ROW][C]37[/C][C]106810[/C][C]98320.9214285714[/C][C]8489.07857142858[/C][/ROW]
[ROW][C]38[/C][C]96279[/C][C]94737.4214285714[/C][C]1541.57857142857[/C][/ROW]
[ROW][C]39[/C][C]91982[/C][C]90208.3[/C][C]1773.70000000000[/C][/ROW]
[ROW][C]40[/C][C]90276[/C][C]91537.8952380952[/C][C]-1261.89523809524[/C][/ROW]
[ROW][C]41[/C][C]90999[/C][C]90364.4952380952[/C][C]634.504761904763[/C][/ROW]
[ROW][C]42[/C][C]86622[/C][C]88491.2952380952[/C][C]-1869.29523809524[/C][/ROW]
[ROW][C]43[/C][C]83117[/C][C]86290.4952380952[/C][C]-3173.49523809524[/C][/ROW]
[ROW][C]44[/C][C]80367[/C][C]84861.6952380952[/C][C]-4494.69523809524[/C][/ROW]
[ROW][C]45[/C][C]77550[/C][C]82099.6952380952[/C][C]-4549.69523809524[/C][/ROW]
[ROW][C]46[/C][C]77443[/C][C]82406.8952380952[/C][C]-4963.89523809524[/C][/ROW]
[ROW][C]47[/C][C]92844[/C][C]97373.0952380952[/C][C]-4529.09523809524[/C][/ROW]
[ROW][C]48[/C][C]92175[/C][C]99556.0952380952[/C][C]-7381.09523809523[/C][/ROW]
[ROW][C]49[/C][C]84822[/C][C]91753.4071428571[/C][C]-6931.40714285714[/C][/ROW]
[ROW][C]50[/C][C]81632[/C][C]88169.9071428571[/C][C]-6537.90714285714[/C][/ROW]
[ROW][C]51[/C][C]78872[/C][C]83640.7857142857[/C][C]-4768.78571428571[/C][/ROW]
[ROW][C]52[/C][C]81485[/C][C]84970.380952381[/C][C]-3485.38095238096[/C][/ROW]
[ROW][C]53[/C][C]80651[/C][C]83796.980952381[/C][C]-3145.98095238095[/C][/ROW]
[ROW][C]54[/C][C]78192[/C][C]81923.780952381[/C][C]-3731.78095238096[/C][/ROW]
[ROW][C]55[/C][C]76844[/C][C]79722.980952381[/C][C]-2878.98095238095[/C][/ROW]
[ROW][C]56[/C][C]76335[/C][C]78294.180952381[/C][C]-1959.18095238095[/C][/ROW]
[ROW][C]57[/C][C]71415[/C][C]75532.180952381[/C][C]-4117.18095238096[/C][/ROW]
[ROW][C]58[/C][C]73899[/C][C]75839.380952381[/C][C]-1940.38095238096[/C][/ROW]
[ROW][C]59[/C][C]86822[/C][C]90805.580952381[/C][C]-3983.58095238096[/C][/ROW]
[ROW][C]60[/C][C]86371[/C][C]92988.580952381[/C][C]-6617.58095238095[/C][/ROW]
[ROW][C]61[/C][C]83469[/C][C]85185.8928571429[/C][C]-1716.89285714285[/C][/ROW]
[ROW][C]62[/C][C]82662[/C][C]81602.3928571429[/C][C]1059.60714285714[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34470&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34470&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
1106099118071.440476191-11972.4404761905
2103235114487.940476190-11252.9404761905
398857109958.819047619-11101.8190476191
4101107111288.414285714-10181.4142857143
5102700110115.014285714-7415.0142857143
6101477108241.814285714-6764.81428571428
799639106041.014285714-6402.01428571429
896622104612.214285714-7990.21428571429
994697101850.214285714-7153.21428571429
1095093102157.414285714-7064.41428571428
11112885117123.614285714-4238.61428571429
12121162119306.6142857141855.38571428572
13113624111503.9261904762120.07380952381
14111632107920.4261904763711.57380952381
15106707103391.3047619053315.69523809524
16108827104720.94106.1
17108413103547.54865.5
18106249101674.34574.7
1910486199473.55387.5
2010238298044.74337.3
2110032095282.75037.3
2210022895589.94638.1
23117089110556.16532.9
24121523112739.18783.9
25114948104936.41190476210011.5880952381
26112831101352.91190476211478.0880952381
2710760596823.790476190510781.2095238095
2810892898105.409523809510822.5904761905
2910199396932.00952380955060.99047619048
3010285095058.80952380957791.19047619048
319992592858.00952380957066.99047619048
3210153691429.209523809510106.7904761905
339945088667.209523809510782.7904761905
349830588974.40952380959330.59047619047
35110159103940.6095238106218.39047619048
36109483106123.6095238103359.39047619048
3710681098320.92142857148489.07857142858
389627994737.42142857141541.57857142857
399198290208.31773.70000000000
409027691537.8952380952-1261.89523809524
419099990364.4952380952634.504761904763
428662288491.2952380952-1869.29523809524
438311786290.4952380952-3173.49523809524
448036784861.6952380952-4494.69523809524
457755082099.6952380952-4549.69523809524
467744382406.8952380952-4963.89523809524
479284497373.0952380952-4529.09523809524
489217599556.0952380952-7381.09523809523
498482291753.4071428571-6931.40714285714
508163288169.9071428571-6537.90714285714
517887283640.7857142857-4768.78571428571
528148584970.380952381-3485.38095238096
538065183796.980952381-3145.98095238095
547819281923.780952381-3731.78095238096
557684479722.980952381-2878.98095238095
567633578294.180952381-1959.18095238095
577141575532.180952381-4117.18095238096
587389975839.380952381-1940.38095238096
598682290805.580952381-3983.58095238096
608637192988.580952381-6617.58095238095
618346985185.8928571429-1716.89285714285
628266281602.39285714291059.60714285714







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.01080407072932610.02160814145865230.989195929270674
180.009879756723016950.01975951344603390.990120243276983
190.003960325645704810.007920651291409620.996039674354295
200.001234021090720590.002468042181441180.99876597890928
210.0003851933113537340.0007703866227074690.999614806688646
220.0001675225456733460.0003350450913466920.999832477454327
230.0001137670273401730.0002275340546803450.99988623297266
240.001610089712716150.00322017942543230.998389910287284
250.001622172622477270.003244345244954550.998377827377523
260.0009638223141986360.001927644628397270.999036177685801
270.000596104150384080.001192208300768160.999403895849616
280.0002832708639024280.0005665417278048550.999716729136098
290.0009824950765878960.001964990153175790.999017504923412
300.0004580949660534430.0009161899321068850.999541905033947
310.0002420101438576870.0004840202877153740.999757989856142
320.0002380931433949670.0004761862867899340.999761906856605
330.0003944183503489030.0007888367006978060.999605581649651
340.0004533278149115150.000906655629823030.999546672185089
350.001561128799042060.003122257598084120.998438871200958
360.06458324473443340.1291664894688670.935416755265567
370.3972775889414270.7945551778828530.602722411058573
380.7369047389871320.5261905220257360.263095261012868
390.9180764054818590.1638471890362820.081923594518141
400.9672448592504530.06551028149909480.0327551407495474
410.9852909083751930.02941818324961410.0147090916248071
420.9901479014824880.01970419703502310.00985209851751154
430.9855490638280030.02890187234399490.0144509361719974
440.9671776696429250.06564466071415010.0328223303570751
450.9372773614220270.1254452771559460.062722638577973

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0108040707293261 & 0.0216081414586523 & 0.989195929270674 \tabularnewline
18 & 0.00987975672301695 & 0.0197595134460339 & 0.990120243276983 \tabularnewline
19 & 0.00396032564570481 & 0.00792065129140962 & 0.996039674354295 \tabularnewline
20 & 0.00123402109072059 & 0.00246804218144118 & 0.99876597890928 \tabularnewline
21 & 0.000385193311353734 & 0.000770386622707469 & 0.999614806688646 \tabularnewline
22 & 0.000167522545673346 & 0.000335045091346692 & 0.999832477454327 \tabularnewline
23 & 0.000113767027340173 & 0.000227534054680345 & 0.99988623297266 \tabularnewline
24 & 0.00161008971271615 & 0.0032201794254323 & 0.998389910287284 \tabularnewline
25 & 0.00162217262247727 & 0.00324434524495455 & 0.998377827377523 \tabularnewline
26 & 0.000963822314198636 & 0.00192764462839727 & 0.999036177685801 \tabularnewline
27 & 0.00059610415038408 & 0.00119220830076816 & 0.999403895849616 \tabularnewline
28 & 0.000283270863902428 & 0.000566541727804855 & 0.999716729136098 \tabularnewline
29 & 0.000982495076587896 & 0.00196499015317579 & 0.999017504923412 \tabularnewline
30 & 0.000458094966053443 & 0.000916189932106885 & 0.999541905033947 \tabularnewline
31 & 0.000242010143857687 & 0.000484020287715374 & 0.999757989856142 \tabularnewline
32 & 0.000238093143394967 & 0.000476186286789934 & 0.999761906856605 \tabularnewline
33 & 0.000394418350348903 & 0.000788836700697806 & 0.999605581649651 \tabularnewline
34 & 0.000453327814911515 & 0.00090665562982303 & 0.999546672185089 \tabularnewline
35 & 0.00156112879904206 & 0.00312225759808412 & 0.998438871200958 \tabularnewline
36 & 0.0645832447344334 & 0.129166489468867 & 0.935416755265567 \tabularnewline
37 & 0.397277588941427 & 0.794555177882853 & 0.602722411058573 \tabularnewline
38 & 0.736904738987132 & 0.526190522025736 & 0.263095261012868 \tabularnewline
39 & 0.918076405481859 & 0.163847189036282 & 0.081923594518141 \tabularnewline
40 & 0.967244859250453 & 0.0655102814990948 & 0.0327551407495474 \tabularnewline
41 & 0.985290908375193 & 0.0294181832496141 & 0.0147090916248071 \tabularnewline
42 & 0.990147901482488 & 0.0197041970350231 & 0.00985209851751154 \tabularnewline
43 & 0.985549063828003 & 0.0289018723439949 & 0.0144509361719974 \tabularnewline
44 & 0.967177669642925 & 0.0656446607141501 & 0.0328223303570751 \tabularnewline
45 & 0.937277361422027 & 0.125445277155946 & 0.062722638577973 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34470&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.0108040707293261[/C][C]0.0216081414586523[/C][C]0.989195929270674[/C][/ROW]
[ROW][C]18[/C][C]0.00987975672301695[/C][C]0.0197595134460339[/C][C]0.990120243276983[/C][/ROW]
[ROW][C]19[/C][C]0.00396032564570481[/C][C]0.00792065129140962[/C][C]0.996039674354295[/C][/ROW]
[ROW][C]20[/C][C]0.00123402109072059[/C][C]0.00246804218144118[/C][C]0.99876597890928[/C][/ROW]
[ROW][C]21[/C][C]0.000385193311353734[/C][C]0.000770386622707469[/C][C]0.999614806688646[/C][/ROW]
[ROW][C]22[/C][C]0.000167522545673346[/C][C]0.000335045091346692[/C][C]0.999832477454327[/C][/ROW]
[ROW][C]23[/C][C]0.000113767027340173[/C][C]0.000227534054680345[/C][C]0.99988623297266[/C][/ROW]
[ROW][C]24[/C][C]0.00161008971271615[/C][C]0.0032201794254323[/C][C]0.998389910287284[/C][/ROW]
[ROW][C]25[/C][C]0.00162217262247727[/C][C]0.00324434524495455[/C][C]0.998377827377523[/C][/ROW]
[ROW][C]26[/C][C]0.000963822314198636[/C][C]0.00192764462839727[/C][C]0.999036177685801[/C][/ROW]
[ROW][C]27[/C][C]0.00059610415038408[/C][C]0.00119220830076816[/C][C]0.999403895849616[/C][/ROW]
[ROW][C]28[/C][C]0.000283270863902428[/C][C]0.000566541727804855[/C][C]0.999716729136098[/C][/ROW]
[ROW][C]29[/C][C]0.000982495076587896[/C][C]0.00196499015317579[/C][C]0.999017504923412[/C][/ROW]
[ROW][C]30[/C][C]0.000458094966053443[/C][C]0.000916189932106885[/C][C]0.999541905033947[/C][/ROW]
[ROW][C]31[/C][C]0.000242010143857687[/C][C]0.000484020287715374[/C][C]0.999757989856142[/C][/ROW]
[ROW][C]32[/C][C]0.000238093143394967[/C][C]0.000476186286789934[/C][C]0.999761906856605[/C][/ROW]
[ROW][C]33[/C][C]0.000394418350348903[/C][C]0.000788836700697806[/C][C]0.999605581649651[/C][/ROW]
[ROW][C]34[/C][C]0.000453327814911515[/C][C]0.00090665562982303[/C][C]0.999546672185089[/C][/ROW]
[ROW][C]35[/C][C]0.00156112879904206[/C][C]0.00312225759808412[/C][C]0.998438871200958[/C][/ROW]
[ROW][C]36[/C][C]0.0645832447344334[/C][C]0.129166489468867[/C][C]0.935416755265567[/C][/ROW]
[ROW][C]37[/C][C]0.397277588941427[/C][C]0.794555177882853[/C][C]0.602722411058573[/C][/ROW]
[ROW][C]38[/C][C]0.736904738987132[/C][C]0.526190522025736[/C][C]0.263095261012868[/C][/ROW]
[ROW][C]39[/C][C]0.918076405481859[/C][C]0.163847189036282[/C][C]0.081923594518141[/C][/ROW]
[ROW][C]40[/C][C]0.967244859250453[/C][C]0.0655102814990948[/C][C]0.0327551407495474[/C][/ROW]
[ROW][C]41[/C][C]0.985290908375193[/C][C]0.0294181832496141[/C][C]0.0147090916248071[/C][/ROW]
[ROW][C]42[/C][C]0.990147901482488[/C][C]0.0197041970350231[/C][C]0.00985209851751154[/C][/ROW]
[ROW][C]43[/C][C]0.985549063828003[/C][C]0.0289018723439949[/C][C]0.0144509361719974[/C][/ROW]
[ROW][C]44[/C][C]0.967177669642925[/C][C]0.0656446607141501[/C][C]0.0328223303570751[/C][/ROW]
[ROW][C]45[/C][C]0.937277361422027[/C][C]0.125445277155946[/C][C]0.062722638577973[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34470&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34470&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.01080407072932610.02160814145865230.989195929270674
180.009879756723016950.01975951344603390.990120243276983
190.003960325645704810.007920651291409620.996039674354295
200.001234021090720590.002468042181441180.99876597890928
210.0003851933113537340.0007703866227074690.999614806688646
220.0001675225456733460.0003350450913466920.999832477454327
230.0001137670273401730.0002275340546803450.99988623297266
240.001610089712716150.00322017942543230.998389910287284
250.001622172622477270.003244345244954550.998377827377523
260.0009638223141986360.001927644628397270.999036177685801
270.000596104150384080.001192208300768160.999403895849616
280.0002832708639024280.0005665417278048550.999716729136098
290.0009824950765878960.001964990153175790.999017504923412
300.0004580949660534430.0009161899321068850.999541905033947
310.0002420101438576870.0004840202877153740.999757989856142
320.0002380931433949670.0004761862867899340.999761906856605
330.0003944183503489030.0007888367006978060.999605581649651
340.0004533278149115150.000906655629823030.999546672185089
350.001561128799042060.003122257598084120.998438871200958
360.06458324473443340.1291664894688670.935416755265567
370.3972775889414270.7945551778828530.602722411058573
380.7369047389871320.5261905220257360.263095261012868
390.9180764054818590.1638471890362820.081923594518141
400.9672448592504530.06551028149909480.0327551407495474
410.9852909083751930.02941818324961410.0147090916248071
420.9901479014824880.01970419703502310.00985209851751154
430.9855490638280030.02890187234399490.0144509361719974
440.9671776696429250.06564466071415010.0328223303570751
450.9372773614220270.1254452771559460.062722638577973







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level170.586206896551724NOK
5% type I error level220.758620689655172NOK
10% type I error level240.827586206896552NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34470&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 level170.586206896551724NOK
5% type I error level220.758620689655172NOK
10% type I error level240.827586206896552NOK



Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ;
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')
}