Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationSun, 20 Dec 2009 03:57:13 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Dec/20/t12613067278prnpeifnrl3fyd.htm/, Retrieved Sat, 27 Apr 2024 09:21:05 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=69830, Retrieved Sat, 27 Apr 2024 09:21:05 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact116
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [Model 3] [2009-12-20 10:57:13] [e458b4e05bf28a297f8af8d9f96e59d6] [Current]
Feedback Forum

Post a new message
Dataseries X:
100.0	100.0
95.3	100.6
90.7	114.2
88.4	91.5
86.0	94.7
86.0	110.6
95.3	71.3
95.3	104.1
88.4	112.3
86.0	110.2
81.4	112.9
83.7	95.1
95.3	103.1
88.4	101.9
86.0	100.4
83.7	106.9
76.7	100.7
79.1	114.3
86.0	73.3
86.0	105.9
79.1	113.9
76.7	112.1
69.8	117.5
69.8	97.5
76.7	112.3
69.8	106.9
67.4	120.9
65.1	92.7
58.1	110.9
60.5	116.5
65.1	77.1
62.8	113.1
55.8	115.9
51.2	123.5
48.8	123.6
48.8	101.5
53.5	121.0
48.8	112.2
46.5	126.0
44.2	101.8
39.5	117.9
41.9	122.2
48.8	82.7
46.5	120.5
41.9	120.3
39.5	134.2
37.2	128.2
37.2	100.5
41.9	126.0
39.5	122.9
39.5	106.1
34.9	130.4
34.9	121.3
34.9	126.1
41.9	88.7
41.9	118.7
39.5	129.3
39.5	136.2
41.9	123.0
46.5	103.5




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Werkloosheid[t] = + 122.578682792808 -0.282440508201765Productie[t] + 8.53269735149619M1[t] + 3.43605920340464M2[t] + 3.43543322256755M3[t] -0.79249080882931M4[t] -2.72395608114270M5[t] + 2.24731688263167M6[t] -0.883745028590917M7[t] + 8.78854064022755M8[t] + 5.9237896997247M9[t] + 5.98224706118411M10[t] + 3.63537681441102M11[t] -1.03449887127078t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Werkloosheid[t] =  +  122.578682792808 -0.282440508201765Productie[t] +  8.53269735149619M1[t] +  3.43605920340464M2[t] +  3.43543322256755M3[t] -0.79249080882931M4[t] -2.72395608114270M5[t] +  2.24731688263167M6[t] -0.883745028590917M7[t] +  8.78854064022755M8[t] +  5.9237896997247M9[t] +  5.98224706118411M10[t] +  3.63537681441102M11[t] -1.03449887127078t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69830&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Werkloosheid[t] =  +  122.578682792808 -0.282440508201765Productie[t] +  8.53269735149619M1[t] +  3.43605920340464M2[t] +  3.43543322256755M3[t] -0.79249080882931M4[t] -2.72395608114270M5[t] +  2.24731688263167M6[t] -0.883745028590917M7[t] +  8.78854064022755M8[t] +  5.9237896997247M9[t] +  5.98224706118411M10[t] +  3.63537681441102M11[t] -1.03449887127078t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69830&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69830&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
Werkloosheid[t] = + 122.578682792808 -0.282440508201765Productie[t] + 8.53269735149619M1[t] + 3.43605920340464M2[t] + 3.43543322256755M3[t] -0.79249080882931M4[t] -2.72395608114270M5[t] + 2.24731688263167M6[t] -0.883745028590917M7[t] + 8.78854064022755M8[t] + 5.9237896997247M9[t] + 5.98224706118411M10[t] + 3.63537681441102M11[t] -1.03449887127078t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)122.57868279280812.400939.884600
Productie-0.2824405082017650.141067-2.00220.0511830.025591
M18.532697351496194.3324841.96950.0549390.027469
M23.436059203404644.0402410.85050.3994750.199738
M33.435433222567554.3438560.79090.4330780.216539
M4-0.792490808829313.756521-0.2110.8338470.416924
M5-2.723956081142703.966113-0.68680.4956520.247826
M62.247316882631674.6088810.48760.6281450.314073
M7-0.8837450285909174.461179-0.19810.8438420.421921
M88.788540640227554.1016212.14270.0374620.018731
M95.92378969972474.5339971.30650.1978680.098934
M105.982247061184114.9518281.20810.2331880.116594
M113.635376814411024.7039970.77280.4435780.221789
t-1.034498871270780.070302-14.715100

\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) & 122.578682792808 & 12.40093 & 9.8846 & 0 & 0 \tabularnewline
Productie & -0.282440508201765 & 0.141067 & -2.0022 & 0.051183 & 0.025591 \tabularnewline
M1 & 8.53269735149619 & 4.332484 & 1.9695 & 0.054939 & 0.027469 \tabularnewline
M2 & 3.43605920340464 & 4.040241 & 0.8505 & 0.399475 & 0.199738 \tabularnewline
M3 & 3.43543322256755 & 4.343856 & 0.7909 & 0.433078 & 0.216539 \tabularnewline
M4 & -0.79249080882931 & 3.756521 & -0.211 & 0.833847 & 0.416924 \tabularnewline
M5 & -2.72395608114270 & 3.966113 & -0.6868 & 0.495652 & 0.247826 \tabularnewline
M6 & 2.24731688263167 & 4.608881 & 0.4876 & 0.628145 & 0.314073 \tabularnewline
M7 & -0.883745028590917 & 4.461179 & -0.1981 & 0.843842 & 0.421921 \tabularnewline
M8 & 8.78854064022755 & 4.101621 & 2.1427 & 0.037462 & 0.018731 \tabularnewline
M9 & 5.9237896997247 & 4.533997 & 1.3065 & 0.197868 & 0.098934 \tabularnewline
M10 & 5.98224706118411 & 4.951828 & 1.2081 & 0.233188 & 0.116594 \tabularnewline
M11 & 3.63537681441102 & 4.703997 & 0.7728 & 0.443578 & 0.221789 \tabularnewline
t & -1.03449887127078 & 0.070302 & -14.7151 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69830&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]122.578682792808[/C][C]12.40093[/C][C]9.8846[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Productie[/C][C]-0.282440508201765[/C][C]0.141067[/C][C]-2.0022[/C][C]0.051183[/C][C]0.025591[/C][/ROW]
[ROW][C]M1[/C][C]8.53269735149619[/C][C]4.332484[/C][C]1.9695[/C][C]0.054939[/C][C]0.027469[/C][/ROW]
[ROW][C]M2[/C][C]3.43605920340464[/C][C]4.040241[/C][C]0.8505[/C][C]0.399475[/C][C]0.199738[/C][/ROW]
[ROW][C]M3[/C][C]3.43543322256755[/C][C]4.343856[/C][C]0.7909[/C][C]0.433078[/C][C]0.216539[/C][/ROW]
[ROW][C]M4[/C][C]-0.79249080882931[/C][C]3.756521[/C][C]-0.211[/C][C]0.833847[/C][C]0.416924[/C][/ROW]
[ROW][C]M5[/C][C]-2.72395608114270[/C][C]3.966113[/C][C]-0.6868[/C][C]0.495652[/C][C]0.247826[/C][/ROW]
[ROW][C]M6[/C][C]2.24731688263167[/C][C]4.608881[/C][C]0.4876[/C][C]0.628145[/C][C]0.314073[/C][/ROW]
[ROW][C]M7[/C][C]-0.883745028590917[/C][C]4.461179[/C][C]-0.1981[/C][C]0.843842[/C][C]0.421921[/C][/ROW]
[ROW][C]M8[/C][C]8.78854064022755[/C][C]4.101621[/C][C]2.1427[/C][C]0.037462[/C][C]0.018731[/C][/ROW]
[ROW][C]M9[/C][C]5.9237896997247[/C][C]4.533997[/C][C]1.3065[/C][C]0.197868[/C][C]0.098934[/C][/ROW]
[ROW][C]M10[/C][C]5.98224706118411[/C][C]4.951828[/C][C]1.2081[/C][C]0.233188[/C][C]0.116594[/C][/ROW]
[ROW][C]M11[/C][C]3.63537681441102[/C][C]4.703997[/C][C]0.7728[/C][C]0.443578[/C][C]0.221789[/C][/ROW]
[ROW][C]t[/C][C]-1.03449887127078[/C][C]0.070302[/C][C]-14.7151[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69830&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69830&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)122.57868279280812.400939.884600
Productie-0.2824405082017650.141067-2.00220.0511830.025591
M18.532697351496194.3324841.96950.0549390.027469
M23.436059203404644.0402410.85050.3994750.199738
M33.435433222567554.3438560.79090.4330780.216539
M4-0.792490808829313.756521-0.2110.8338470.416924
M5-2.723956081142703.966113-0.68680.4956520.247826
M62.247316882631674.6088810.48760.6281450.314073
M7-0.8837450285909174.461179-0.19810.8438420.421921
M88.788540640227554.1016212.14270.0374620.018731
M95.92378969972474.5339971.30650.1978680.098934
M105.982247061184114.9518281.20810.2331880.116594
M113.635376814411024.7039970.77280.4435780.221789
t-1.034498871270780.070302-14.715100







Multiple Linear Regression - Regression Statistics
Multiple R0.971426418637605
R-squared0.943669286827083
Adjusted R-squared0.927749737452129
F-TEST (value)59.2773868531544
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.62474753413341
Sum Squared Residuals1455.33810184603

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.971426418637605 \tabularnewline
R-squared & 0.943669286827083 \tabularnewline
Adjusted R-squared & 0.927749737452129 \tabularnewline
F-TEST (value) & 59.2773868531544 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 5.62474753413341 \tabularnewline
Sum Squared Residuals & 1455.33810184603 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69830&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.971426418637605[/C][/ROW]
[ROW][C]R-squared[/C][C]0.943669286827083[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.927749737452129[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]59.2773868531544[/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]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]5.62474753413341[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1455.33810184603[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69830&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69830&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.971426418637605
R-squared0.943669286827083
Adjusted R-squared0.927749737452129
F-TEST (value)59.2773868531544
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.62474753413341
Sum Squared Residuals1455.33810184603







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1100101.832830452856-1.83283045285648
295.395.5322291285732-0.232229128573165
390.790.65591336492140.0440866350786144
488.491.8048899984338-3.40488999843381
58687.935116228604-1.93511622860400
68687.3810862406995-1.38108624069954
795.394.31543743053550.984562569464472
895.393.68917555906541.61082444093464
988.487.47391358003730.926086419962743
108687.0909971374496-1.09099713744960
1181.482.947038647261-1.54703864726096
1283.783.30460400757060.395395992429427
1395.388.54327842218196.75672157781813
1488.482.75107001266175.64892998733833
158682.13960592285643.86039407714355
1683.775.04131971687748.65868028312265
1776.773.82648672414412.87351327585588
1879.173.92206990510375.17793009489627
198681.33656995888274.66343004111732
208680.76679618905295.23320381094713
2179.174.60802231166514.49197768833486
2276.774.1403737166172.55962628338305
2369.869.23382585428360.566174145716451
2469.870.212760332637-0.412760332637047
2576.773.53083929147643.16916070852364
2669.868.92488101640350.87511898359645
2767.463.9355890494713.46441095052902
2865.166.6379884780931-1.53798847809310
2958.158.5316070852368-0.431607085236823
3060.560.8867143318105-0.386714331810541
3165.167.8493095724667-2.74930957246669
3262.866.3192380747509-3.51923807475087
3355.861.6291548400123-5.8291548400123
3451.258.5065654678675-7.30656546786754
3548.855.0969522990035-6.29695229900349
3648.856.6690118445807-7.86901184458068
3753.558.6596204148717-5.15962041487171
3848.855.0139598676849-6.2139598676849
3946.550.0811560023927-3.58115600239269
4044.251.6537933982077-7.45379339820773
4139.544.1405370725752-4.64053707257518
4241.946.8628169798112-4.96281697981119
4348.853.8536562712875-5.0536562712875
4446.551.8151918588085-5.31519185880851
4541.947.9724301486752-6.07243014867524
4639.543.0704655748594-3.57046557485937
4737.241.3837395060261-4.18373950602606
4837.244.5374658975332-7.33746589753315
4941.944.8334314186136-2.93343141861359
5039.539.5778599746767-0.0778599746767222
5139.543.2877356603585-3.78773566035850
5234.931.1620084083883.737991591612
5334.930.76625288943994.13374711056012
5434.933.3473125425751.55268745742499
5541.939.74502676682762.15497323317240
5641.939.90959831832241.99040168167761
5739.533.01647911961016.48352088038994
5839.530.09159810320659.40840189679346
5941.930.438443693425911.4615563065741
6046.531.276157917678615.2238420823214

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 100 & 101.832830452856 & -1.83283045285648 \tabularnewline
2 & 95.3 & 95.5322291285732 & -0.232229128573165 \tabularnewline
3 & 90.7 & 90.6559133649214 & 0.0440866350786144 \tabularnewline
4 & 88.4 & 91.8048899984338 & -3.40488999843381 \tabularnewline
5 & 86 & 87.935116228604 & -1.93511622860400 \tabularnewline
6 & 86 & 87.3810862406995 & -1.38108624069954 \tabularnewline
7 & 95.3 & 94.3154374305355 & 0.984562569464472 \tabularnewline
8 & 95.3 & 93.6891755590654 & 1.61082444093464 \tabularnewline
9 & 88.4 & 87.4739135800373 & 0.926086419962743 \tabularnewline
10 & 86 & 87.0909971374496 & -1.09099713744960 \tabularnewline
11 & 81.4 & 82.947038647261 & -1.54703864726096 \tabularnewline
12 & 83.7 & 83.3046040075706 & 0.395395992429427 \tabularnewline
13 & 95.3 & 88.5432784221819 & 6.75672157781813 \tabularnewline
14 & 88.4 & 82.7510700126617 & 5.64892998733833 \tabularnewline
15 & 86 & 82.1396059228564 & 3.86039407714355 \tabularnewline
16 & 83.7 & 75.0413197168774 & 8.65868028312265 \tabularnewline
17 & 76.7 & 73.8264867241441 & 2.87351327585588 \tabularnewline
18 & 79.1 & 73.9220699051037 & 5.17793009489627 \tabularnewline
19 & 86 & 81.3365699588827 & 4.66343004111732 \tabularnewline
20 & 86 & 80.7667961890529 & 5.23320381094713 \tabularnewline
21 & 79.1 & 74.6080223116651 & 4.49197768833486 \tabularnewline
22 & 76.7 & 74.140373716617 & 2.55962628338305 \tabularnewline
23 & 69.8 & 69.2338258542836 & 0.566174145716451 \tabularnewline
24 & 69.8 & 70.212760332637 & -0.412760332637047 \tabularnewline
25 & 76.7 & 73.5308392914764 & 3.16916070852364 \tabularnewline
26 & 69.8 & 68.9248810164035 & 0.87511898359645 \tabularnewline
27 & 67.4 & 63.935589049471 & 3.46441095052902 \tabularnewline
28 & 65.1 & 66.6379884780931 & -1.53798847809310 \tabularnewline
29 & 58.1 & 58.5316070852368 & -0.431607085236823 \tabularnewline
30 & 60.5 & 60.8867143318105 & -0.386714331810541 \tabularnewline
31 & 65.1 & 67.8493095724667 & -2.74930957246669 \tabularnewline
32 & 62.8 & 66.3192380747509 & -3.51923807475087 \tabularnewline
33 & 55.8 & 61.6291548400123 & -5.8291548400123 \tabularnewline
34 & 51.2 & 58.5065654678675 & -7.30656546786754 \tabularnewline
35 & 48.8 & 55.0969522990035 & -6.29695229900349 \tabularnewline
36 & 48.8 & 56.6690118445807 & -7.86901184458068 \tabularnewline
37 & 53.5 & 58.6596204148717 & -5.15962041487171 \tabularnewline
38 & 48.8 & 55.0139598676849 & -6.2139598676849 \tabularnewline
39 & 46.5 & 50.0811560023927 & -3.58115600239269 \tabularnewline
40 & 44.2 & 51.6537933982077 & -7.45379339820773 \tabularnewline
41 & 39.5 & 44.1405370725752 & -4.64053707257518 \tabularnewline
42 & 41.9 & 46.8628169798112 & -4.96281697981119 \tabularnewline
43 & 48.8 & 53.8536562712875 & -5.0536562712875 \tabularnewline
44 & 46.5 & 51.8151918588085 & -5.31519185880851 \tabularnewline
45 & 41.9 & 47.9724301486752 & -6.07243014867524 \tabularnewline
46 & 39.5 & 43.0704655748594 & -3.57046557485937 \tabularnewline
47 & 37.2 & 41.3837395060261 & -4.18373950602606 \tabularnewline
48 & 37.2 & 44.5374658975332 & -7.33746589753315 \tabularnewline
49 & 41.9 & 44.8334314186136 & -2.93343141861359 \tabularnewline
50 & 39.5 & 39.5778599746767 & -0.0778599746767222 \tabularnewline
51 & 39.5 & 43.2877356603585 & -3.78773566035850 \tabularnewline
52 & 34.9 & 31.162008408388 & 3.737991591612 \tabularnewline
53 & 34.9 & 30.7662528894399 & 4.13374711056012 \tabularnewline
54 & 34.9 & 33.347312542575 & 1.55268745742499 \tabularnewline
55 & 41.9 & 39.7450267668276 & 2.15497323317240 \tabularnewline
56 & 41.9 & 39.9095983183224 & 1.99040168167761 \tabularnewline
57 & 39.5 & 33.0164791196101 & 6.48352088038994 \tabularnewline
58 & 39.5 & 30.0915981032065 & 9.40840189679346 \tabularnewline
59 & 41.9 & 30.4384436934259 & 11.4615563065741 \tabularnewline
60 & 46.5 & 31.2761579176786 & 15.2238420823214 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69830&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]100[/C][C]101.832830452856[/C][C]-1.83283045285648[/C][/ROW]
[ROW][C]2[/C][C]95.3[/C][C]95.5322291285732[/C][C]-0.232229128573165[/C][/ROW]
[ROW][C]3[/C][C]90.7[/C][C]90.6559133649214[/C][C]0.0440866350786144[/C][/ROW]
[ROW][C]4[/C][C]88.4[/C][C]91.8048899984338[/C][C]-3.40488999843381[/C][/ROW]
[ROW][C]5[/C][C]86[/C][C]87.935116228604[/C][C]-1.93511622860400[/C][/ROW]
[ROW][C]6[/C][C]86[/C][C]87.3810862406995[/C][C]-1.38108624069954[/C][/ROW]
[ROW][C]7[/C][C]95.3[/C][C]94.3154374305355[/C][C]0.984562569464472[/C][/ROW]
[ROW][C]8[/C][C]95.3[/C][C]93.6891755590654[/C][C]1.61082444093464[/C][/ROW]
[ROW][C]9[/C][C]88.4[/C][C]87.4739135800373[/C][C]0.926086419962743[/C][/ROW]
[ROW][C]10[/C][C]86[/C][C]87.0909971374496[/C][C]-1.09099713744960[/C][/ROW]
[ROW][C]11[/C][C]81.4[/C][C]82.947038647261[/C][C]-1.54703864726096[/C][/ROW]
[ROW][C]12[/C][C]83.7[/C][C]83.3046040075706[/C][C]0.395395992429427[/C][/ROW]
[ROW][C]13[/C][C]95.3[/C][C]88.5432784221819[/C][C]6.75672157781813[/C][/ROW]
[ROW][C]14[/C][C]88.4[/C][C]82.7510700126617[/C][C]5.64892998733833[/C][/ROW]
[ROW][C]15[/C][C]86[/C][C]82.1396059228564[/C][C]3.86039407714355[/C][/ROW]
[ROW][C]16[/C][C]83.7[/C][C]75.0413197168774[/C][C]8.65868028312265[/C][/ROW]
[ROW][C]17[/C][C]76.7[/C][C]73.8264867241441[/C][C]2.87351327585588[/C][/ROW]
[ROW][C]18[/C][C]79.1[/C][C]73.9220699051037[/C][C]5.17793009489627[/C][/ROW]
[ROW][C]19[/C][C]86[/C][C]81.3365699588827[/C][C]4.66343004111732[/C][/ROW]
[ROW][C]20[/C][C]86[/C][C]80.7667961890529[/C][C]5.23320381094713[/C][/ROW]
[ROW][C]21[/C][C]79.1[/C][C]74.6080223116651[/C][C]4.49197768833486[/C][/ROW]
[ROW][C]22[/C][C]76.7[/C][C]74.140373716617[/C][C]2.55962628338305[/C][/ROW]
[ROW][C]23[/C][C]69.8[/C][C]69.2338258542836[/C][C]0.566174145716451[/C][/ROW]
[ROW][C]24[/C][C]69.8[/C][C]70.212760332637[/C][C]-0.412760332637047[/C][/ROW]
[ROW][C]25[/C][C]76.7[/C][C]73.5308392914764[/C][C]3.16916070852364[/C][/ROW]
[ROW][C]26[/C][C]69.8[/C][C]68.9248810164035[/C][C]0.87511898359645[/C][/ROW]
[ROW][C]27[/C][C]67.4[/C][C]63.935589049471[/C][C]3.46441095052902[/C][/ROW]
[ROW][C]28[/C][C]65.1[/C][C]66.6379884780931[/C][C]-1.53798847809310[/C][/ROW]
[ROW][C]29[/C][C]58.1[/C][C]58.5316070852368[/C][C]-0.431607085236823[/C][/ROW]
[ROW][C]30[/C][C]60.5[/C][C]60.8867143318105[/C][C]-0.386714331810541[/C][/ROW]
[ROW][C]31[/C][C]65.1[/C][C]67.8493095724667[/C][C]-2.74930957246669[/C][/ROW]
[ROW][C]32[/C][C]62.8[/C][C]66.3192380747509[/C][C]-3.51923807475087[/C][/ROW]
[ROW][C]33[/C][C]55.8[/C][C]61.6291548400123[/C][C]-5.8291548400123[/C][/ROW]
[ROW][C]34[/C][C]51.2[/C][C]58.5065654678675[/C][C]-7.30656546786754[/C][/ROW]
[ROW][C]35[/C][C]48.8[/C][C]55.0969522990035[/C][C]-6.29695229900349[/C][/ROW]
[ROW][C]36[/C][C]48.8[/C][C]56.6690118445807[/C][C]-7.86901184458068[/C][/ROW]
[ROW][C]37[/C][C]53.5[/C][C]58.6596204148717[/C][C]-5.15962041487171[/C][/ROW]
[ROW][C]38[/C][C]48.8[/C][C]55.0139598676849[/C][C]-6.2139598676849[/C][/ROW]
[ROW][C]39[/C][C]46.5[/C][C]50.0811560023927[/C][C]-3.58115600239269[/C][/ROW]
[ROW][C]40[/C][C]44.2[/C][C]51.6537933982077[/C][C]-7.45379339820773[/C][/ROW]
[ROW][C]41[/C][C]39.5[/C][C]44.1405370725752[/C][C]-4.64053707257518[/C][/ROW]
[ROW][C]42[/C][C]41.9[/C][C]46.8628169798112[/C][C]-4.96281697981119[/C][/ROW]
[ROW][C]43[/C][C]48.8[/C][C]53.8536562712875[/C][C]-5.0536562712875[/C][/ROW]
[ROW][C]44[/C][C]46.5[/C][C]51.8151918588085[/C][C]-5.31519185880851[/C][/ROW]
[ROW][C]45[/C][C]41.9[/C][C]47.9724301486752[/C][C]-6.07243014867524[/C][/ROW]
[ROW][C]46[/C][C]39.5[/C][C]43.0704655748594[/C][C]-3.57046557485937[/C][/ROW]
[ROW][C]47[/C][C]37.2[/C][C]41.3837395060261[/C][C]-4.18373950602606[/C][/ROW]
[ROW][C]48[/C][C]37.2[/C][C]44.5374658975332[/C][C]-7.33746589753315[/C][/ROW]
[ROW][C]49[/C][C]41.9[/C][C]44.8334314186136[/C][C]-2.93343141861359[/C][/ROW]
[ROW][C]50[/C][C]39.5[/C][C]39.5778599746767[/C][C]-0.0778599746767222[/C][/ROW]
[ROW][C]51[/C][C]39.5[/C][C]43.2877356603585[/C][C]-3.78773566035850[/C][/ROW]
[ROW][C]52[/C][C]34.9[/C][C]31.162008408388[/C][C]3.737991591612[/C][/ROW]
[ROW][C]53[/C][C]34.9[/C][C]30.7662528894399[/C][C]4.13374711056012[/C][/ROW]
[ROW][C]54[/C][C]34.9[/C][C]33.347312542575[/C][C]1.55268745742499[/C][/ROW]
[ROW][C]55[/C][C]41.9[/C][C]39.7450267668276[/C][C]2.15497323317240[/C][/ROW]
[ROW][C]56[/C][C]41.9[/C][C]39.9095983183224[/C][C]1.99040168167761[/C][/ROW]
[ROW][C]57[/C][C]39.5[/C][C]33.0164791196101[/C][C]6.48352088038994[/C][/ROW]
[ROW][C]58[/C][C]39.5[/C][C]30.0915981032065[/C][C]9.40840189679346[/C][/ROW]
[ROW][C]59[/C][C]41.9[/C][C]30.4384436934259[/C][C]11.4615563065741[/C][/ROW]
[ROW][C]60[/C][C]46.5[/C][C]31.2761579176786[/C][C]15.2238420823214[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69830&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69830&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
1100101.832830452856-1.83283045285648
295.395.5322291285732-0.232229128573165
390.790.65591336492140.0440866350786144
488.491.8048899984338-3.40488999843381
58687.935116228604-1.93511622860400
68687.3810862406995-1.38108624069954
795.394.31543743053550.984562569464472
895.393.68917555906541.61082444093464
988.487.47391358003730.926086419962743
108687.0909971374496-1.09099713744960
1181.482.947038647261-1.54703864726096
1283.783.30460400757060.395395992429427
1395.388.54327842218196.75672157781813
1488.482.75107001266175.64892998733833
158682.13960592285643.86039407714355
1683.775.04131971687748.65868028312265
1776.773.82648672414412.87351327585588
1879.173.92206990510375.17793009489627
198681.33656995888274.66343004111732
208680.76679618905295.23320381094713
2179.174.60802231166514.49197768833486
2276.774.1403737166172.55962628338305
2369.869.23382585428360.566174145716451
2469.870.212760332637-0.412760332637047
2576.773.53083929147643.16916070852364
2669.868.92488101640350.87511898359645
2767.463.9355890494713.46441095052902
2865.166.6379884780931-1.53798847809310
2958.158.5316070852368-0.431607085236823
3060.560.8867143318105-0.386714331810541
3165.167.8493095724667-2.74930957246669
3262.866.3192380747509-3.51923807475087
3355.861.6291548400123-5.8291548400123
3451.258.5065654678675-7.30656546786754
3548.855.0969522990035-6.29695229900349
3648.856.6690118445807-7.86901184458068
3753.558.6596204148717-5.15962041487171
3848.855.0139598676849-6.2139598676849
3946.550.0811560023927-3.58115600239269
4044.251.6537933982077-7.45379339820773
4139.544.1405370725752-4.64053707257518
4241.946.8628169798112-4.96281697981119
4348.853.8536562712875-5.0536562712875
4446.551.8151918588085-5.31519185880851
4541.947.9724301486752-6.07243014867524
4639.543.0704655748594-3.57046557485937
4737.241.3837395060261-4.18373950602606
4837.244.5374658975332-7.33746589753315
4941.944.8334314186136-2.93343141861359
5039.539.5778599746767-0.0778599746767222
5139.543.2877356603585-3.78773566035850
5234.931.1620084083883.737991591612
5334.930.76625288943994.13374711056012
5434.933.3473125425751.55268745742499
5541.939.74502676682762.15497323317240
5641.939.90959831832241.99040168167761
5739.533.01647911961016.48352088038994
5839.530.09159810320659.40840189679346
5941.930.438443693425911.4615563065741
6046.531.276157917678615.2238420823214







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.02259397556677500.04518795113354990.977406024433225
180.005289273550104810.01057854710020960.994710726449895
190.002951889556026260.005903779112052510.997048110443974
200.001483562961124360.002967125922248720.998516437038876
210.0007068303077423830.001413660615484770.999293169692258
220.0002917446939912660.0005834893879825320.99970825530601
230.0002887593392902640.0005775186785805280.99971124066071
240.0007101365534111080.001420273106822220.999289863446589
250.004758370538170520.009516741076341040.99524162946183
260.01475257362111440.02950514724222890.985247426378886
270.02446749434286430.04893498868572860.975532505657136
280.04030101670889860.08060203341779720.959698983291101
290.05270628575760430.1054125715152090.947293714242396
300.0865498091163710.1730996182327420.913450190883629
310.1764874147910290.3529748295820590.82351258520897
320.3636471452066180.7272942904132360.636352854793382
330.4934834563287860.9869669126575710.506516543671214
340.533123022772940.933753954454120.46687697722706
350.4874780688192390.9749561376384780.512521931180761
360.4403277681636930.8806555363273860.559672231836307
370.4934635319204190.9869270638408370.506536468079581
380.4752264044303850.950452808860770.524773595569615
390.5862432213668370.8275135572663260.413756778633163
400.4919712502040120.9839425004080230.508028749795988
410.3810449289589240.7620898579178470.618955071041076
420.342195013012040.684390026024080.65780498698796
430.3228347676896650.645669535379330.677165232310335

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0225939755667750 & 0.0451879511335499 & 0.977406024433225 \tabularnewline
18 & 0.00528927355010481 & 0.0105785471002096 & 0.994710726449895 \tabularnewline
19 & 0.00295188955602626 & 0.00590377911205251 & 0.997048110443974 \tabularnewline
20 & 0.00148356296112436 & 0.00296712592224872 & 0.998516437038876 \tabularnewline
21 & 0.000706830307742383 & 0.00141366061548477 & 0.999293169692258 \tabularnewline
22 & 0.000291744693991266 & 0.000583489387982532 & 0.99970825530601 \tabularnewline
23 & 0.000288759339290264 & 0.000577518678580528 & 0.99971124066071 \tabularnewline
24 & 0.000710136553411108 & 0.00142027310682222 & 0.999289863446589 \tabularnewline
25 & 0.00475837053817052 & 0.00951674107634104 & 0.99524162946183 \tabularnewline
26 & 0.0147525736211144 & 0.0295051472422289 & 0.985247426378886 \tabularnewline
27 & 0.0244674943428643 & 0.0489349886857286 & 0.975532505657136 \tabularnewline
28 & 0.0403010167088986 & 0.0806020334177972 & 0.959698983291101 \tabularnewline
29 & 0.0527062857576043 & 0.105412571515209 & 0.947293714242396 \tabularnewline
30 & 0.086549809116371 & 0.173099618232742 & 0.913450190883629 \tabularnewline
31 & 0.176487414791029 & 0.352974829582059 & 0.82351258520897 \tabularnewline
32 & 0.363647145206618 & 0.727294290413236 & 0.636352854793382 \tabularnewline
33 & 0.493483456328786 & 0.986966912657571 & 0.506516543671214 \tabularnewline
34 & 0.53312302277294 & 0.93375395445412 & 0.46687697722706 \tabularnewline
35 & 0.487478068819239 & 0.974956137638478 & 0.512521931180761 \tabularnewline
36 & 0.440327768163693 & 0.880655536327386 & 0.559672231836307 \tabularnewline
37 & 0.493463531920419 & 0.986927063840837 & 0.506536468079581 \tabularnewline
38 & 0.475226404430385 & 0.95045280886077 & 0.524773595569615 \tabularnewline
39 & 0.586243221366837 & 0.827513557266326 & 0.413756778633163 \tabularnewline
40 & 0.491971250204012 & 0.983942500408023 & 0.508028749795988 \tabularnewline
41 & 0.381044928958924 & 0.762089857917847 & 0.618955071041076 \tabularnewline
42 & 0.34219501301204 & 0.68439002602408 & 0.65780498698796 \tabularnewline
43 & 0.322834767689665 & 0.64566953537933 & 0.677165232310335 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69830&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.0225939755667750[/C][C]0.0451879511335499[/C][C]0.977406024433225[/C][/ROW]
[ROW][C]18[/C][C]0.00528927355010481[/C][C]0.0105785471002096[/C][C]0.994710726449895[/C][/ROW]
[ROW][C]19[/C][C]0.00295188955602626[/C][C]0.00590377911205251[/C][C]0.997048110443974[/C][/ROW]
[ROW][C]20[/C][C]0.00148356296112436[/C][C]0.00296712592224872[/C][C]0.998516437038876[/C][/ROW]
[ROW][C]21[/C][C]0.000706830307742383[/C][C]0.00141366061548477[/C][C]0.999293169692258[/C][/ROW]
[ROW][C]22[/C][C]0.000291744693991266[/C][C]0.000583489387982532[/C][C]0.99970825530601[/C][/ROW]
[ROW][C]23[/C][C]0.000288759339290264[/C][C]0.000577518678580528[/C][C]0.99971124066071[/C][/ROW]
[ROW][C]24[/C][C]0.000710136553411108[/C][C]0.00142027310682222[/C][C]0.999289863446589[/C][/ROW]
[ROW][C]25[/C][C]0.00475837053817052[/C][C]0.00951674107634104[/C][C]0.99524162946183[/C][/ROW]
[ROW][C]26[/C][C]0.0147525736211144[/C][C]0.0295051472422289[/C][C]0.985247426378886[/C][/ROW]
[ROW][C]27[/C][C]0.0244674943428643[/C][C]0.0489349886857286[/C][C]0.975532505657136[/C][/ROW]
[ROW][C]28[/C][C]0.0403010167088986[/C][C]0.0806020334177972[/C][C]0.959698983291101[/C][/ROW]
[ROW][C]29[/C][C]0.0527062857576043[/C][C]0.105412571515209[/C][C]0.947293714242396[/C][/ROW]
[ROW][C]30[/C][C]0.086549809116371[/C][C]0.173099618232742[/C][C]0.913450190883629[/C][/ROW]
[ROW][C]31[/C][C]0.176487414791029[/C][C]0.352974829582059[/C][C]0.82351258520897[/C][/ROW]
[ROW][C]32[/C][C]0.363647145206618[/C][C]0.727294290413236[/C][C]0.636352854793382[/C][/ROW]
[ROW][C]33[/C][C]0.493483456328786[/C][C]0.986966912657571[/C][C]0.506516543671214[/C][/ROW]
[ROW][C]34[/C][C]0.53312302277294[/C][C]0.93375395445412[/C][C]0.46687697722706[/C][/ROW]
[ROW][C]35[/C][C]0.487478068819239[/C][C]0.974956137638478[/C][C]0.512521931180761[/C][/ROW]
[ROW][C]36[/C][C]0.440327768163693[/C][C]0.880655536327386[/C][C]0.559672231836307[/C][/ROW]
[ROW][C]37[/C][C]0.493463531920419[/C][C]0.986927063840837[/C][C]0.506536468079581[/C][/ROW]
[ROW][C]38[/C][C]0.475226404430385[/C][C]0.95045280886077[/C][C]0.524773595569615[/C][/ROW]
[ROW][C]39[/C][C]0.586243221366837[/C][C]0.827513557266326[/C][C]0.413756778633163[/C][/ROW]
[ROW][C]40[/C][C]0.491971250204012[/C][C]0.983942500408023[/C][C]0.508028749795988[/C][/ROW]
[ROW][C]41[/C][C]0.381044928958924[/C][C]0.762089857917847[/C][C]0.618955071041076[/C][/ROW]
[ROW][C]42[/C][C]0.34219501301204[/C][C]0.68439002602408[/C][C]0.65780498698796[/C][/ROW]
[ROW][C]43[/C][C]0.322834767689665[/C][C]0.64566953537933[/C][C]0.677165232310335[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69830&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69830&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.02259397556677500.04518795113354990.977406024433225
180.005289273550104810.01057854710020960.994710726449895
190.002951889556026260.005903779112052510.997048110443974
200.001483562961124360.002967125922248720.998516437038876
210.0007068303077423830.001413660615484770.999293169692258
220.0002917446939912660.0005834893879825320.99970825530601
230.0002887593392902640.0005775186785805280.99971124066071
240.0007101365534111080.001420273106822220.999289863446589
250.004758370538170520.009516741076341040.99524162946183
260.01475257362111440.02950514724222890.985247426378886
270.02446749434286430.04893498868572860.975532505657136
280.04030101670889860.08060203341779720.959698983291101
290.05270628575760430.1054125715152090.947293714242396
300.0865498091163710.1730996182327420.913450190883629
310.1764874147910290.3529748295820590.82351258520897
320.3636471452066180.7272942904132360.636352854793382
330.4934834563287860.9869669126575710.506516543671214
340.533123022772940.933753954454120.46687697722706
350.4874780688192390.9749561376384780.512521931180761
360.4403277681636930.8806555363273860.559672231836307
370.4934635319204190.9869270638408370.506536468079581
380.4752264044303850.950452808860770.524773595569615
390.5862432213668370.8275135572663260.413756778633163
400.4919712502040120.9839425004080230.508028749795988
410.3810449289589240.7620898579178470.618955071041076
420.342195013012040.684390026024080.65780498698796
430.3228347676896650.645669535379330.677165232310335







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level70.259259259259259NOK
5% type I error level110.407407407407407NOK
10% type I error level120.444444444444444NOK

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

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



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