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 07:08:50 -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/t1261318377hf19wsodvd4mn3b.htm/, Retrieved Sat, 27 Apr 2024 07:38:15 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=69894, Retrieved Sat, 27 Apr 2024 07:38:15 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact130
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [] [2009-12-20 14:08:50] [7ed3c7cd7b86afd1930511b5492d29ea] [Current]
- R  D    [Multiple Regression] [Paper: multi regr...] [2010-12-22 19:07:11] [29e492448d11757ae0fad5ef6e7f8e86]
Feedback Forum

Post a new message
Dataseries X:
120,9	611	0	0
119,6	594	0	0
125,9	595	0	0
116,1	591	0	0
107,5	589	0	0
116,7	584	0	0
112,5	573	0	0
113	567	0	0
126,4	569	0	0
114,1	621	0	0
112,5	629	0	0
112,4	628	0	0
113,1	612	0	0
116,3	595	0	0
111,7	597	0	0
118,8	593	0	0
116,5	590	0	0
125,1	580	0	0
113,1	574	0	0
119,6	573	0	0
114,4	573	0	0
114	620	0	0
117,8	626	0	0
117	620	0	0
120,9	588	0	0
115	566	0	0
117,3	557	0	0
119,4	561	0	0
114,9	549	0	0
125,8	532	0	0
117,6	526	0	0
117,6	511	0	0
114,9	499	0	0
121,9	555	0	0
117	565	0	1
106,4	542	0	1
110,5	527	0	1
113,6	510	0	1
114,2	514	0	1
125,4	517	0	1
124,6	508	0	1
120,2	493	0	1
120,8	490	0	1
111,4	469	0	1
124,1	478	0	1
120,2	528	0	1
125,5	534	0	1
116	518	1	0
117	506	1	0
105,7	502	1	0
102	516	1	0
106,4	528	1	0
96,9	533	1	0
107,6	536	1	0
98,8	537	1	0
101,1	524	1	0
105,7	536	1	0
104,6	587	1	0
103,2	597	1	0
101,6	581	1	0




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 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 & 3 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69894&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]3 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=69894&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69894&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 time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
ChemischeIndustrie[t] = + 176.025891938060 -0.0971364760405873Werkloosheid[t] -13.0379049225199Dummy[t] -4.05345478350426Dummy2[t] + 1.34206810010027M1[t] -2.50509520992201M2[t] -2.00322924642182M3[t] + 1.29920942187024M4[t] -4.16002535649746M5[t] + 2.07391207534814M6[t] -4.84303188385203M7[t] -5.86222199450384M8[t] -0.999783326211778M9[t] + 1.92234266806906M10[t] + 3.83886385409737M11[t] -0.0887384210027683t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
ChemischeIndustrie[t] =  +  176.025891938060 -0.0971364760405873Werkloosheid[t] -13.0379049225199Dummy[t] -4.05345478350426Dummy2[t] +  1.34206810010027M1[t] -2.50509520992201M2[t] -2.00322924642182M3[t] +  1.29920942187024M4[t] -4.16002535649746M5[t] +  2.07391207534814M6[t] -4.84303188385203M7[t] -5.86222199450384M8[t] -0.999783326211778M9[t] +  1.92234266806906M10[t] +  3.83886385409737M11[t] -0.0887384210027683t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69894&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]ChemischeIndustrie[t] =  +  176.025891938060 -0.0971364760405873Werkloosheid[t] -13.0379049225199Dummy[t] -4.05345478350426Dummy2[t] +  1.34206810010027M1[t] -2.50509520992201M2[t] -2.00322924642182M3[t] +  1.29920942187024M4[t] -4.16002535649746M5[t] +  2.07391207534814M6[t] -4.84303188385203M7[t] -5.86222199450384M8[t] -0.999783326211778M9[t] +  1.92234266806906M10[t] +  3.83886385409737M11[t] -0.0887384210027683t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69894&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69894&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
ChemischeIndustrie[t] = + 176.025891938060 -0.0971364760405873Werkloosheid[t] -13.0379049225199Dummy[t] -4.05345478350426Dummy2[t] + 1.34206810010027M1[t] -2.50509520992201M2[t] -2.00322924642182M3[t] + 1.29920942187024M4[t] -4.16002535649746M5[t] + 2.07391207534814M6[t] -4.84303188385203M7[t] -5.86222199450384M8[t] -0.999783326211778M9[t] + 1.92234266806906M10[t] + 3.83886385409737M11[t] -0.0887384210027683t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)176.02589193806024.3980667.214700
Werkloosheid-0.09713647604058730.037984-2.55730.0140730.007037
Dummy-13.03790492251993.654226-3.56790.0008830.000442
Dummy2-4.053454783504262.961919-1.36850.1780960.089048
M11.342068100100273.3294810.40310.6888370.344418
M2-2.505095209922013.503696-0.7150.4783940.239197
M3-2.003229246421823.438544-0.58260.5631490.281575
M41.299209421870243.3839120.38390.7028740.351437
M5-4.160025356497463.418004-1.21710.2300570.115029
M62.073912075348143.5284340.58780.5596910.279845
M7-4.843031883852033.589542-1.34920.1841730.092087
M8-5.862221994503843.776293-1.55240.1277370.063868
M9-0.9997833262117783.709066-0.26960.7887660.394383
M101.922342668069063.219840.5970.5535470.276773
M113.838863854097373.2851441.16860.2488760.124438
t-0.08873842100276830.107547-0.82510.413760.20688

\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) & 176.025891938060 & 24.398066 & 7.2147 & 0 & 0 \tabularnewline
Werkloosheid & -0.0971364760405873 & 0.037984 & -2.5573 & 0.014073 & 0.007037 \tabularnewline
Dummy & -13.0379049225199 & 3.654226 & -3.5679 & 0.000883 & 0.000442 \tabularnewline
Dummy2 & -4.05345478350426 & 2.961919 & -1.3685 & 0.178096 & 0.089048 \tabularnewline
M1 & 1.34206810010027 & 3.329481 & 0.4031 & 0.688837 & 0.344418 \tabularnewline
M2 & -2.50509520992201 & 3.503696 & -0.715 & 0.478394 & 0.239197 \tabularnewline
M3 & -2.00322924642182 & 3.438544 & -0.5826 & 0.563149 & 0.281575 \tabularnewline
M4 & 1.29920942187024 & 3.383912 & 0.3839 & 0.702874 & 0.351437 \tabularnewline
M5 & -4.16002535649746 & 3.418004 & -1.2171 & 0.230057 & 0.115029 \tabularnewline
M6 & 2.07391207534814 & 3.528434 & 0.5878 & 0.559691 & 0.279845 \tabularnewline
M7 & -4.84303188385203 & 3.589542 & -1.3492 & 0.184173 & 0.092087 \tabularnewline
M8 & -5.86222199450384 & 3.776293 & -1.5524 & 0.127737 & 0.063868 \tabularnewline
M9 & -0.999783326211778 & 3.709066 & -0.2696 & 0.788766 & 0.394383 \tabularnewline
M10 & 1.92234266806906 & 3.21984 & 0.597 & 0.553547 & 0.276773 \tabularnewline
M11 & 3.83886385409737 & 3.285144 & 1.1686 & 0.248876 & 0.124438 \tabularnewline
t & -0.0887384210027683 & 0.107547 & -0.8251 & 0.41376 & 0.20688 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69894&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]176.025891938060[/C][C]24.398066[/C][C]7.2147[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Werkloosheid[/C][C]-0.0971364760405873[/C][C]0.037984[/C][C]-2.5573[/C][C]0.014073[/C][C]0.007037[/C][/ROW]
[ROW][C]Dummy[/C][C]-13.0379049225199[/C][C]3.654226[/C][C]-3.5679[/C][C]0.000883[/C][C]0.000442[/C][/ROW]
[ROW][C]Dummy2[/C][C]-4.05345478350426[/C][C]2.961919[/C][C]-1.3685[/C][C]0.178096[/C][C]0.089048[/C][/ROW]
[ROW][C]M1[/C][C]1.34206810010027[/C][C]3.329481[/C][C]0.4031[/C][C]0.688837[/C][C]0.344418[/C][/ROW]
[ROW][C]M2[/C][C]-2.50509520992201[/C][C]3.503696[/C][C]-0.715[/C][C]0.478394[/C][C]0.239197[/C][/ROW]
[ROW][C]M3[/C][C]-2.00322924642182[/C][C]3.438544[/C][C]-0.5826[/C][C]0.563149[/C][C]0.281575[/C][/ROW]
[ROW][C]M4[/C][C]1.29920942187024[/C][C]3.383912[/C][C]0.3839[/C][C]0.702874[/C][C]0.351437[/C][/ROW]
[ROW][C]M5[/C][C]-4.16002535649746[/C][C]3.418004[/C][C]-1.2171[/C][C]0.230057[/C][C]0.115029[/C][/ROW]
[ROW][C]M6[/C][C]2.07391207534814[/C][C]3.528434[/C][C]0.5878[/C][C]0.559691[/C][C]0.279845[/C][/ROW]
[ROW][C]M7[/C][C]-4.84303188385203[/C][C]3.589542[/C][C]-1.3492[/C][C]0.184173[/C][C]0.092087[/C][/ROW]
[ROW][C]M8[/C][C]-5.86222199450384[/C][C]3.776293[/C][C]-1.5524[/C][C]0.127737[/C][C]0.063868[/C][/ROW]
[ROW][C]M9[/C][C]-0.999783326211778[/C][C]3.709066[/C][C]-0.2696[/C][C]0.788766[/C][C]0.394383[/C][/ROW]
[ROW][C]M10[/C][C]1.92234266806906[/C][C]3.21984[/C][C]0.597[/C][C]0.553547[/C][C]0.276773[/C][/ROW]
[ROW][C]M11[/C][C]3.83886385409737[/C][C]3.285144[/C][C]1.1686[/C][C]0.248876[/C][C]0.124438[/C][/ROW]
[ROW][C]t[/C][C]-0.0887384210027683[/C][C]0.107547[/C][C]-0.8251[/C][C]0.41376[/C][C]0.20688[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69894&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69894&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)176.02589193806024.3980667.214700
Werkloosheid-0.09713647604058730.037984-2.55730.0140730.007037
Dummy-13.03790492251993.654226-3.56790.0008830.000442
Dummy2-4.053454783504262.961919-1.36850.1780960.089048
M11.342068100100273.3294810.40310.6888370.344418
M2-2.505095209922013.503696-0.7150.4783940.239197
M3-2.003229246421823.438544-0.58260.5631490.281575
M41.299209421870243.3839120.38390.7028740.351437
M5-4.160025356497463.418004-1.21710.2300570.115029
M62.073912075348143.5284340.58780.5596910.279845
M7-4.843031883852033.589542-1.34920.1841730.092087
M8-5.862221994503843.776293-1.55240.1277370.063868
M9-0.9997833262117783.709066-0.26960.7887660.394383
M101.922342668069063.219840.5970.5535470.276773
M113.838863854097373.2851441.16860.2488760.124438
t-0.08873842100276830.107547-0.82510.413760.20688







Multiple Linear Regression - Regression Statistics
Multiple R0.800909028923958
R-squared0.641455272611917
Adjusted R-squared0.519224115547798
F-TEST (value)5.24788677469057
F-TEST (DF numerator)15
F-TEST (DF denominator)44
p-value8.11206960560362e-06
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.00485304078557
Sum Squared Residuals1102.13637423387

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.800909028923958 \tabularnewline
R-squared & 0.641455272611917 \tabularnewline
Adjusted R-squared & 0.519224115547798 \tabularnewline
F-TEST (value) & 5.24788677469057 \tabularnewline
F-TEST (DF numerator) & 15 \tabularnewline
F-TEST (DF denominator) & 44 \tabularnewline
p-value & 8.11206960560362e-06 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 5.00485304078557 \tabularnewline
Sum Squared Residuals & 1102.13637423387 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69894&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.800909028923958[/C][/ROW]
[ROW][C]R-squared[/C][C]0.641455272611917[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.519224115547798[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]5.24788677469057[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]15[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]44[/C][/ROW]
[ROW][C]p-value[/C][C]8.11206960560362e-06[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]5.00485304078557[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1102.13637423387[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69894&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69894&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.800909028923958
R-squared0.641455272611917
Adjusted R-squared0.519224115547798
F-TEST (value)5.24788677469057
F-TEST (DF numerator)15
F-TEST (DF denominator)44
p-value8.11206960560362e-06
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5.00485304078557
Sum Squared Residuals1102.13637423387







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1120.9117.9288347563592.97116524364149
2119.6115.6442531180233.95574688197655
3125.9115.9602441844809.93975581551975
4116.1119.562490335932-3.4624903359319
5107.5114.208790088643-6.70879008864261
6116.7120.839671479688-4.13967147968837
7112.5114.902490335932-2.40249033593189
8113114.377380660521-1.37738066052084
9126.4118.9568079557297.44319204427103
10114.1116.739098774896-2.63909877489649
11112.5117.789789731597-5.28978973159734
12112.4113.959323932538-1.55932393253778
13113.1116.766837228285-3.66683722828469
14116.3114.4822555899501.81774441005038
15111.7114.701110180366-3.00111018036586
16118.8118.3033563318170.496643668182495
17116.5113.0467925605693.45320743943121
18125.1120.1633563318174.9366436681825
19113.1113.740492807858-0.640492807858089
20119.6112.7297007522446.8702992477559
21114.4117.503400999533-3.10340099953339
22114115.771374198904-1.77137419890386
23117.8117.0163381076860.783661892314115
24117113.6715546888293.32844531117074
25120.9118.0332516012262.86674839877445
26115116.234352343093-1.23435234309343
27117.3117.521708169956-0.221708169956131
28119.4120.346862513083-0.946862513083068
29114.9115.964527026200-1.06452702619964
30125.8123.7610461297322.03895387026753
31117.6117.3381826057730.261817394226945
32117.6117.687301214727-0.0873012147272914
33114.9123.626639174504-8.72663917450362
34121.9121.0203840895090.879615910491202
35117117.823347310624-0.823347310624221
36106.4116.129883984458-9.72988398445757
37110.5118.840260804164-8.34026080416389
38113.6116.555679165829-2.95567916582884
39114.2116.580260804164-2.38026080416390
40125.4119.5025516233315.89744837666858
41124.6114.8288067083269.77119329167375
42120.2122.431052859778-2.23105285977788
43120.8115.7167799076975.08322009230329
44111.4116.648717372894-5.24871737289446
45124.1120.5481893358183.55181066418152
46120.2118.5247531070671.67524689293283
47125.5119.7697170158495.7302829841508
48116108.4118482183837.58815178161719
49117110.8308156099676.16918439003264
50105.7107.283459783105-1.58345978310466
51102106.336676661034-4.33667666103386
52106.4108.384739195836-1.9847391958361
5396.9102.351083616263-5.45108361626269
54107.6108.204873198984-0.604873198983777
5598.8101.102054342740-2.30205434274025
56101.1101.256899999613-0.156899999613309
57105.7104.8649625344160.83503746558445
58104.6102.7443898296241.85561017037632
59103.2103.600807834243-0.400807834243344
60101.6101.2273891757930.372610824207394

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 120.9 & 117.928834756359 & 2.97116524364149 \tabularnewline
2 & 119.6 & 115.644253118023 & 3.95574688197655 \tabularnewline
3 & 125.9 & 115.960244184480 & 9.93975581551975 \tabularnewline
4 & 116.1 & 119.562490335932 & -3.4624903359319 \tabularnewline
5 & 107.5 & 114.208790088643 & -6.70879008864261 \tabularnewline
6 & 116.7 & 120.839671479688 & -4.13967147968837 \tabularnewline
7 & 112.5 & 114.902490335932 & -2.40249033593189 \tabularnewline
8 & 113 & 114.377380660521 & -1.37738066052084 \tabularnewline
9 & 126.4 & 118.956807955729 & 7.44319204427103 \tabularnewline
10 & 114.1 & 116.739098774896 & -2.63909877489649 \tabularnewline
11 & 112.5 & 117.789789731597 & -5.28978973159734 \tabularnewline
12 & 112.4 & 113.959323932538 & -1.55932393253778 \tabularnewline
13 & 113.1 & 116.766837228285 & -3.66683722828469 \tabularnewline
14 & 116.3 & 114.482255589950 & 1.81774441005038 \tabularnewline
15 & 111.7 & 114.701110180366 & -3.00111018036586 \tabularnewline
16 & 118.8 & 118.303356331817 & 0.496643668182495 \tabularnewline
17 & 116.5 & 113.046792560569 & 3.45320743943121 \tabularnewline
18 & 125.1 & 120.163356331817 & 4.9366436681825 \tabularnewline
19 & 113.1 & 113.740492807858 & -0.640492807858089 \tabularnewline
20 & 119.6 & 112.729700752244 & 6.8702992477559 \tabularnewline
21 & 114.4 & 117.503400999533 & -3.10340099953339 \tabularnewline
22 & 114 & 115.771374198904 & -1.77137419890386 \tabularnewline
23 & 117.8 & 117.016338107686 & 0.783661892314115 \tabularnewline
24 & 117 & 113.671554688829 & 3.32844531117074 \tabularnewline
25 & 120.9 & 118.033251601226 & 2.86674839877445 \tabularnewline
26 & 115 & 116.234352343093 & -1.23435234309343 \tabularnewline
27 & 117.3 & 117.521708169956 & -0.221708169956131 \tabularnewline
28 & 119.4 & 120.346862513083 & -0.946862513083068 \tabularnewline
29 & 114.9 & 115.964527026200 & -1.06452702619964 \tabularnewline
30 & 125.8 & 123.761046129732 & 2.03895387026753 \tabularnewline
31 & 117.6 & 117.338182605773 & 0.261817394226945 \tabularnewline
32 & 117.6 & 117.687301214727 & -0.0873012147272914 \tabularnewline
33 & 114.9 & 123.626639174504 & -8.72663917450362 \tabularnewline
34 & 121.9 & 121.020384089509 & 0.879615910491202 \tabularnewline
35 & 117 & 117.823347310624 & -0.823347310624221 \tabularnewline
36 & 106.4 & 116.129883984458 & -9.72988398445757 \tabularnewline
37 & 110.5 & 118.840260804164 & -8.34026080416389 \tabularnewline
38 & 113.6 & 116.555679165829 & -2.95567916582884 \tabularnewline
39 & 114.2 & 116.580260804164 & -2.38026080416390 \tabularnewline
40 & 125.4 & 119.502551623331 & 5.89744837666858 \tabularnewline
41 & 124.6 & 114.828806708326 & 9.77119329167375 \tabularnewline
42 & 120.2 & 122.431052859778 & -2.23105285977788 \tabularnewline
43 & 120.8 & 115.716779907697 & 5.08322009230329 \tabularnewline
44 & 111.4 & 116.648717372894 & -5.24871737289446 \tabularnewline
45 & 124.1 & 120.548189335818 & 3.55181066418152 \tabularnewline
46 & 120.2 & 118.524753107067 & 1.67524689293283 \tabularnewline
47 & 125.5 & 119.769717015849 & 5.7302829841508 \tabularnewline
48 & 116 & 108.411848218383 & 7.58815178161719 \tabularnewline
49 & 117 & 110.830815609967 & 6.16918439003264 \tabularnewline
50 & 105.7 & 107.283459783105 & -1.58345978310466 \tabularnewline
51 & 102 & 106.336676661034 & -4.33667666103386 \tabularnewline
52 & 106.4 & 108.384739195836 & -1.9847391958361 \tabularnewline
53 & 96.9 & 102.351083616263 & -5.45108361626269 \tabularnewline
54 & 107.6 & 108.204873198984 & -0.604873198983777 \tabularnewline
55 & 98.8 & 101.102054342740 & -2.30205434274025 \tabularnewline
56 & 101.1 & 101.256899999613 & -0.156899999613309 \tabularnewline
57 & 105.7 & 104.864962534416 & 0.83503746558445 \tabularnewline
58 & 104.6 & 102.744389829624 & 1.85561017037632 \tabularnewline
59 & 103.2 & 103.600807834243 & -0.400807834243344 \tabularnewline
60 & 101.6 & 101.227389175793 & 0.372610824207394 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69894&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]120.9[/C][C]117.928834756359[/C][C]2.97116524364149[/C][/ROW]
[ROW][C]2[/C][C]119.6[/C][C]115.644253118023[/C][C]3.95574688197655[/C][/ROW]
[ROW][C]3[/C][C]125.9[/C][C]115.960244184480[/C][C]9.93975581551975[/C][/ROW]
[ROW][C]4[/C][C]116.1[/C][C]119.562490335932[/C][C]-3.4624903359319[/C][/ROW]
[ROW][C]5[/C][C]107.5[/C][C]114.208790088643[/C][C]-6.70879008864261[/C][/ROW]
[ROW][C]6[/C][C]116.7[/C][C]120.839671479688[/C][C]-4.13967147968837[/C][/ROW]
[ROW][C]7[/C][C]112.5[/C][C]114.902490335932[/C][C]-2.40249033593189[/C][/ROW]
[ROW][C]8[/C][C]113[/C][C]114.377380660521[/C][C]-1.37738066052084[/C][/ROW]
[ROW][C]9[/C][C]126.4[/C][C]118.956807955729[/C][C]7.44319204427103[/C][/ROW]
[ROW][C]10[/C][C]114.1[/C][C]116.739098774896[/C][C]-2.63909877489649[/C][/ROW]
[ROW][C]11[/C][C]112.5[/C][C]117.789789731597[/C][C]-5.28978973159734[/C][/ROW]
[ROW][C]12[/C][C]112.4[/C][C]113.959323932538[/C][C]-1.55932393253778[/C][/ROW]
[ROW][C]13[/C][C]113.1[/C][C]116.766837228285[/C][C]-3.66683722828469[/C][/ROW]
[ROW][C]14[/C][C]116.3[/C][C]114.482255589950[/C][C]1.81774441005038[/C][/ROW]
[ROW][C]15[/C][C]111.7[/C][C]114.701110180366[/C][C]-3.00111018036586[/C][/ROW]
[ROW][C]16[/C][C]118.8[/C][C]118.303356331817[/C][C]0.496643668182495[/C][/ROW]
[ROW][C]17[/C][C]116.5[/C][C]113.046792560569[/C][C]3.45320743943121[/C][/ROW]
[ROW][C]18[/C][C]125.1[/C][C]120.163356331817[/C][C]4.9366436681825[/C][/ROW]
[ROW][C]19[/C][C]113.1[/C][C]113.740492807858[/C][C]-0.640492807858089[/C][/ROW]
[ROW][C]20[/C][C]119.6[/C][C]112.729700752244[/C][C]6.8702992477559[/C][/ROW]
[ROW][C]21[/C][C]114.4[/C][C]117.503400999533[/C][C]-3.10340099953339[/C][/ROW]
[ROW][C]22[/C][C]114[/C][C]115.771374198904[/C][C]-1.77137419890386[/C][/ROW]
[ROW][C]23[/C][C]117.8[/C][C]117.016338107686[/C][C]0.783661892314115[/C][/ROW]
[ROW][C]24[/C][C]117[/C][C]113.671554688829[/C][C]3.32844531117074[/C][/ROW]
[ROW][C]25[/C][C]120.9[/C][C]118.033251601226[/C][C]2.86674839877445[/C][/ROW]
[ROW][C]26[/C][C]115[/C][C]116.234352343093[/C][C]-1.23435234309343[/C][/ROW]
[ROW][C]27[/C][C]117.3[/C][C]117.521708169956[/C][C]-0.221708169956131[/C][/ROW]
[ROW][C]28[/C][C]119.4[/C][C]120.346862513083[/C][C]-0.946862513083068[/C][/ROW]
[ROW][C]29[/C][C]114.9[/C][C]115.964527026200[/C][C]-1.06452702619964[/C][/ROW]
[ROW][C]30[/C][C]125.8[/C][C]123.761046129732[/C][C]2.03895387026753[/C][/ROW]
[ROW][C]31[/C][C]117.6[/C][C]117.338182605773[/C][C]0.261817394226945[/C][/ROW]
[ROW][C]32[/C][C]117.6[/C][C]117.687301214727[/C][C]-0.0873012147272914[/C][/ROW]
[ROW][C]33[/C][C]114.9[/C][C]123.626639174504[/C][C]-8.72663917450362[/C][/ROW]
[ROW][C]34[/C][C]121.9[/C][C]121.020384089509[/C][C]0.879615910491202[/C][/ROW]
[ROW][C]35[/C][C]117[/C][C]117.823347310624[/C][C]-0.823347310624221[/C][/ROW]
[ROW][C]36[/C][C]106.4[/C][C]116.129883984458[/C][C]-9.72988398445757[/C][/ROW]
[ROW][C]37[/C][C]110.5[/C][C]118.840260804164[/C][C]-8.34026080416389[/C][/ROW]
[ROW][C]38[/C][C]113.6[/C][C]116.555679165829[/C][C]-2.95567916582884[/C][/ROW]
[ROW][C]39[/C][C]114.2[/C][C]116.580260804164[/C][C]-2.38026080416390[/C][/ROW]
[ROW][C]40[/C][C]125.4[/C][C]119.502551623331[/C][C]5.89744837666858[/C][/ROW]
[ROW][C]41[/C][C]124.6[/C][C]114.828806708326[/C][C]9.77119329167375[/C][/ROW]
[ROW][C]42[/C][C]120.2[/C][C]122.431052859778[/C][C]-2.23105285977788[/C][/ROW]
[ROW][C]43[/C][C]120.8[/C][C]115.716779907697[/C][C]5.08322009230329[/C][/ROW]
[ROW][C]44[/C][C]111.4[/C][C]116.648717372894[/C][C]-5.24871737289446[/C][/ROW]
[ROW][C]45[/C][C]124.1[/C][C]120.548189335818[/C][C]3.55181066418152[/C][/ROW]
[ROW][C]46[/C][C]120.2[/C][C]118.524753107067[/C][C]1.67524689293283[/C][/ROW]
[ROW][C]47[/C][C]125.5[/C][C]119.769717015849[/C][C]5.7302829841508[/C][/ROW]
[ROW][C]48[/C][C]116[/C][C]108.411848218383[/C][C]7.58815178161719[/C][/ROW]
[ROW][C]49[/C][C]117[/C][C]110.830815609967[/C][C]6.16918439003264[/C][/ROW]
[ROW][C]50[/C][C]105.7[/C][C]107.283459783105[/C][C]-1.58345978310466[/C][/ROW]
[ROW][C]51[/C][C]102[/C][C]106.336676661034[/C][C]-4.33667666103386[/C][/ROW]
[ROW][C]52[/C][C]106.4[/C][C]108.384739195836[/C][C]-1.9847391958361[/C][/ROW]
[ROW][C]53[/C][C]96.9[/C][C]102.351083616263[/C][C]-5.45108361626269[/C][/ROW]
[ROW][C]54[/C][C]107.6[/C][C]108.204873198984[/C][C]-0.604873198983777[/C][/ROW]
[ROW][C]55[/C][C]98.8[/C][C]101.102054342740[/C][C]-2.30205434274025[/C][/ROW]
[ROW][C]56[/C][C]101.1[/C][C]101.256899999613[/C][C]-0.156899999613309[/C][/ROW]
[ROW][C]57[/C][C]105.7[/C][C]104.864962534416[/C][C]0.83503746558445[/C][/ROW]
[ROW][C]58[/C][C]104.6[/C][C]102.744389829624[/C][C]1.85561017037632[/C][/ROW]
[ROW][C]59[/C][C]103.2[/C][C]103.600807834243[/C][C]-0.400807834243344[/C][/ROW]
[ROW][C]60[/C][C]101.6[/C][C]101.227389175793[/C][C]0.372610824207394[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69894&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69894&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
1120.9117.9288347563592.97116524364149
2119.6115.6442531180233.95574688197655
3125.9115.9602441844809.93975581551975
4116.1119.562490335932-3.4624903359319
5107.5114.208790088643-6.70879008864261
6116.7120.839671479688-4.13967147968837
7112.5114.902490335932-2.40249033593189
8113114.377380660521-1.37738066052084
9126.4118.9568079557297.44319204427103
10114.1116.739098774896-2.63909877489649
11112.5117.789789731597-5.28978973159734
12112.4113.959323932538-1.55932393253778
13113.1116.766837228285-3.66683722828469
14116.3114.4822555899501.81774441005038
15111.7114.701110180366-3.00111018036586
16118.8118.3033563318170.496643668182495
17116.5113.0467925605693.45320743943121
18125.1120.1633563318174.9366436681825
19113.1113.740492807858-0.640492807858089
20119.6112.7297007522446.8702992477559
21114.4117.503400999533-3.10340099953339
22114115.771374198904-1.77137419890386
23117.8117.0163381076860.783661892314115
24117113.6715546888293.32844531117074
25120.9118.0332516012262.86674839877445
26115116.234352343093-1.23435234309343
27117.3117.521708169956-0.221708169956131
28119.4120.346862513083-0.946862513083068
29114.9115.964527026200-1.06452702619964
30125.8123.7610461297322.03895387026753
31117.6117.3381826057730.261817394226945
32117.6117.687301214727-0.0873012147272914
33114.9123.626639174504-8.72663917450362
34121.9121.0203840895090.879615910491202
35117117.823347310624-0.823347310624221
36106.4116.129883984458-9.72988398445757
37110.5118.840260804164-8.34026080416389
38113.6116.555679165829-2.95567916582884
39114.2116.580260804164-2.38026080416390
40125.4119.5025516233315.89744837666858
41124.6114.8288067083269.77119329167375
42120.2122.431052859778-2.23105285977788
43120.8115.7167799076975.08322009230329
44111.4116.648717372894-5.24871737289446
45124.1120.5481893358183.55181066418152
46120.2118.5247531070671.67524689293283
47125.5119.7697170158495.7302829841508
48116108.4118482183837.58815178161719
49117110.8308156099676.16918439003264
50105.7107.283459783105-1.58345978310466
51102106.336676661034-4.33667666103386
52106.4108.384739195836-1.9847391958361
5396.9102.351083616263-5.45108361626269
54107.6108.204873198984-0.604873198983777
5598.8101.102054342740-2.30205434274025
56101.1101.256899999613-0.156899999613309
57105.7104.8649625344160.83503746558445
58104.6102.7443898296241.85561017037632
59103.2103.600807834243-0.400807834243344
60101.6101.2273891757930.372610824207394







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.8449090267018140.3101819465963730.155090973298186
200.9141745805426750.171650838914650.085825419457325
210.9050578747531160.1898842504937680.0949421252468842
220.8369126120739630.3261747758520730.163087387926037
230.7517715175856830.4964569648286330.248228482414317
240.6860072388153830.6279855223692340.313992761184617
250.6670465043739550.6659069912520910.332953495626045
260.6508750553032910.6982498893934170.349124944696709
270.6004530184433760.7990939631132490.399546981556624
280.4948082412412120.9896164824824230.505191758758788
290.3887592903195350.777518580639070.611240709680465
300.3359078253273880.6718156506547770.664092174672612
310.2519588014533410.5039176029066820.748041198546659
320.2451466794199430.4902933588398870.754853320580057
330.2842548908683300.5685097817366610.71574510913167
340.2273468372078150.4546936744156290.772653162792185
350.1606628757600860.3213257515201720.839337124239914
360.2384707840972870.4769415681945740.761529215902713
370.4713150220693390.9426300441386790.528684977930661
380.4636136963338290.9272273926676580.536386303666171
390.4716154956984940.9432309913969880.528384504301506
400.465517508652530.931035017305060.53448249134747
410.5776250262303280.8447499475393430.422374973769672

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
19 & 0.844909026701814 & 0.310181946596373 & 0.155090973298186 \tabularnewline
20 & 0.914174580542675 & 0.17165083891465 & 0.085825419457325 \tabularnewline
21 & 0.905057874753116 & 0.189884250493768 & 0.0949421252468842 \tabularnewline
22 & 0.836912612073963 & 0.326174775852073 & 0.163087387926037 \tabularnewline
23 & 0.751771517585683 & 0.496456964828633 & 0.248228482414317 \tabularnewline
24 & 0.686007238815383 & 0.627985522369234 & 0.313992761184617 \tabularnewline
25 & 0.667046504373955 & 0.665906991252091 & 0.332953495626045 \tabularnewline
26 & 0.650875055303291 & 0.698249889393417 & 0.349124944696709 \tabularnewline
27 & 0.600453018443376 & 0.799093963113249 & 0.399546981556624 \tabularnewline
28 & 0.494808241241212 & 0.989616482482423 & 0.505191758758788 \tabularnewline
29 & 0.388759290319535 & 0.77751858063907 & 0.611240709680465 \tabularnewline
30 & 0.335907825327388 & 0.671815650654777 & 0.664092174672612 \tabularnewline
31 & 0.251958801453341 & 0.503917602906682 & 0.748041198546659 \tabularnewline
32 & 0.245146679419943 & 0.490293358839887 & 0.754853320580057 \tabularnewline
33 & 0.284254890868330 & 0.568509781736661 & 0.71574510913167 \tabularnewline
34 & 0.227346837207815 & 0.454693674415629 & 0.772653162792185 \tabularnewline
35 & 0.160662875760086 & 0.321325751520172 & 0.839337124239914 \tabularnewline
36 & 0.238470784097287 & 0.476941568194574 & 0.761529215902713 \tabularnewline
37 & 0.471315022069339 & 0.942630044138679 & 0.528684977930661 \tabularnewline
38 & 0.463613696333829 & 0.927227392667658 & 0.536386303666171 \tabularnewline
39 & 0.471615495698494 & 0.943230991396988 & 0.528384504301506 \tabularnewline
40 & 0.46551750865253 & 0.93103501730506 & 0.53448249134747 \tabularnewline
41 & 0.577625026230328 & 0.844749947539343 & 0.422374973769672 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69894&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]19[/C][C]0.844909026701814[/C][C]0.310181946596373[/C][C]0.155090973298186[/C][/ROW]
[ROW][C]20[/C][C]0.914174580542675[/C][C]0.17165083891465[/C][C]0.085825419457325[/C][/ROW]
[ROW][C]21[/C][C]0.905057874753116[/C][C]0.189884250493768[/C][C]0.0949421252468842[/C][/ROW]
[ROW][C]22[/C][C]0.836912612073963[/C][C]0.326174775852073[/C][C]0.163087387926037[/C][/ROW]
[ROW][C]23[/C][C]0.751771517585683[/C][C]0.496456964828633[/C][C]0.248228482414317[/C][/ROW]
[ROW][C]24[/C][C]0.686007238815383[/C][C]0.627985522369234[/C][C]0.313992761184617[/C][/ROW]
[ROW][C]25[/C][C]0.667046504373955[/C][C]0.665906991252091[/C][C]0.332953495626045[/C][/ROW]
[ROW][C]26[/C][C]0.650875055303291[/C][C]0.698249889393417[/C][C]0.349124944696709[/C][/ROW]
[ROW][C]27[/C][C]0.600453018443376[/C][C]0.799093963113249[/C][C]0.399546981556624[/C][/ROW]
[ROW][C]28[/C][C]0.494808241241212[/C][C]0.989616482482423[/C][C]0.505191758758788[/C][/ROW]
[ROW][C]29[/C][C]0.388759290319535[/C][C]0.77751858063907[/C][C]0.611240709680465[/C][/ROW]
[ROW][C]30[/C][C]0.335907825327388[/C][C]0.671815650654777[/C][C]0.664092174672612[/C][/ROW]
[ROW][C]31[/C][C]0.251958801453341[/C][C]0.503917602906682[/C][C]0.748041198546659[/C][/ROW]
[ROW][C]32[/C][C]0.245146679419943[/C][C]0.490293358839887[/C][C]0.754853320580057[/C][/ROW]
[ROW][C]33[/C][C]0.284254890868330[/C][C]0.568509781736661[/C][C]0.71574510913167[/C][/ROW]
[ROW][C]34[/C][C]0.227346837207815[/C][C]0.454693674415629[/C][C]0.772653162792185[/C][/ROW]
[ROW][C]35[/C][C]0.160662875760086[/C][C]0.321325751520172[/C][C]0.839337124239914[/C][/ROW]
[ROW][C]36[/C][C]0.238470784097287[/C][C]0.476941568194574[/C][C]0.761529215902713[/C][/ROW]
[ROW][C]37[/C][C]0.471315022069339[/C][C]0.942630044138679[/C][C]0.528684977930661[/C][/ROW]
[ROW][C]38[/C][C]0.463613696333829[/C][C]0.927227392667658[/C][C]0.536386303666171[/C][/ROW]
[ROW][C]39[/C][C]0.471615495698494[/C][C]0.943230991396988[/C][C]0.528384504301506[/C][/ROW]
[ROW][C]40[/C][C]0.46551750865253[/C][C]0.93103501730506[/C][C]0.53448249134747[/C][/ROW]
[ROW][C]41[/C][C]0.577625026230328[/C][C]0.844749947539343[/C][C]0.422374973769672[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69894&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69894&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
190.8449090267018140.3101819465963730.155090973298186
200.9141745805426750.171650838914650.085825419457325
210.9050578747531160.1898842504937680.0949421252468842
220.8369126120739630.3261747758520730.163087387926037
230.7517715175856830.4964569648286330.248228482414317
240.6860072388153830.6279855223692340.313992761184617
250.6670465043739550.6659069912520910.332953495626045
260.6508750553032910.6982498893934170.349124944696709
270.6004530184433760.7990939631132490.399546981556624
280.4948082412412120.9896164824824230.505191758758788
290.3887592903195350.777518580639070.611240709680465
300.3359078253273880.6718156506547770.664092174672612
310.2519588014533410.5039176029066820.748041198546659
320.2451466794199430.4902933588398870.754853320580057
330.2842548908683300.5685097817366610.71574510913167
340.2273468372078150.4546936744156290.772653162792185
350.1606628757600860.3213257515201720.839337124239914
360.2384707840972870.4769415681945740.761529215902713
370.4713150220693390.9426300441386790.528684977930661
380.4636136963338290.9272273926676580.536386303666171
390.4716154956984940.9432309913969880.528384504301506
400.465517508652530.931035017305060.53448249134747
410.5776250262303280.8447499475393430.422374973769672







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

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

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

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

As an alternative you can also use a QR Code:  

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

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



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