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 computationFri, 27 Nov 2009 12:23:38 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/27/t1259349921nn3ogsg9ksge4ff.htm/, Retrieved Mon, 29 Apr 2024 17:46:47 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=61168, Retrieved Mon, 29 Apr 2024 17:46:47 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact117
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [WS 7.1] [2009-11-27 18:28:39] [4a2be4899cba879e4eea9daa25281df8]
-   PD        [Multiple Regression] [WS 7.3] [2009-11-27 19:23:38] [71c065898bd1c08eef04509b4bcee039] [Current]
Feedback Forum

Post a new message
Dataseries X:
100.00	100.00
94.97	106.73
107.50	104.81
124.27	96.15
107.06	88.46
79.71	88.46
163.41	91.35
144.83	92.31
166.82	91.35
154.26	87.50
132.60	85.58
157.51	86.54
104.02	97.12
106.03	99.04
113.23	98.08
117.64	92.31
113.34	88.46
66.62	89.42
185.99	90.38
174.57	90.38
208.19	88.46
163.81	86.54
162.46	86.54
148.16	86.54
113.41	94.23
105.63	96.15
111.79	94.23
132.36	89.42
110.75	86.54
67.37	86.54
178.29	87.50
156.38	87.50
189.71	87.50
152.80	88.46
150.80	84.62
160.40	79.81
127.25	80.77
108.47	77.88
117.09	74.04
147.25	75.96
116.19	75.96
75.83	76.92
181.94	75.96
179.12	73.08
183.15	68.27
197.90	65.38
155.42	62.50
162.54	66.35
125.90	78.85
105.50	83.65
121.11	79.81
137.51	75.96
97.20	72.12
69.74	75.00
152.58	79.81
146.59	80.77
161.16	78.85
152.84	74.04
121.95	69.23
140.12	70.19




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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 249.743765932925 -1.05055721843048X[t] -31.0307064944671M1[t] -38.0107916100911M2[t] -30.2152583601200M3[t] -16.6075935557811M4[t] -42.9485044503155M5[t] -78.6002454534487M6[t] + 24.2010437160465M7[t] + 12.2490607972814M8[t] + 32.1316138906316M9[t] + 12.4128437972922M10[t] -9.69543105311223M11[t] -0.393724067173589t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  249.743765932925 -1.05055721843048X[t] -31.0307064944671M1[t] -38.0107916100911M2[t] -30.2152583601200M3[t] -16.6075935557811M4[t] -42.9485044503155M5[t] -78.6002454534487M6[t] +  24.2010437160465M7[t] +  12.2490607972814M8[t] +  32.1316138906316M9[t] +  12.4128437972922M10[t] -9.69543105311223M11[t] -0.393724067173589t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61168&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  249.743765932925 -1.05055721843048X[t] -31.0307064944671M1[t] -38.0107916100911M2[t] -30.2152583601200M3[t] -16.6075935557811M4[t] -42.9485044503155M5[t] -78.6002454534487M6[t] +  24.2010437160465M7[t] +  12.2490607972814M8[t] +  32.1316138906316M9[t] +  12.4128437972922M10[t] -9.69543105311223M11[t] -0.393724067173589t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61168&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 249.743765932925 -1.05055721843048X[t] -31.0307064944671M1[t] -38.0107916100911M2[t] -30.2152583601200M3[t] -16.6075935557811M4[t] -42.9485044503155M5[t] -78.6002454534487M6[t] + 24.2010437160465M7[t] + 12.2490607972814M8[t] + 32.1316138906316M9[t] + 12.4128437972922M10[t] -9.69543105311223M11[t] -0.393724067173589t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)249.74376593292532.8970487.591700
X-1.050557218430480.345681-3.03910.0039050.001953
M1-31.03070649446718.026298-3.86610.0003450.000173
M2-38.01079161009118.400072-4.52514.2e-052.1e-05
M3-30.21525836012008.108226-3.72650.000530.000265
M4-16.60759355578117.725342-2.14980.0368670.018434
M5-42.94850445031557.565939-5.67661e-060
M6-78.60024545344877.604837-10.335600
M724.20104371604657.7295483.1310.0030250.001513
M812.24906079728147.7435951.58180.120540.06027
M932.13161389063167.6368664.20740.0001185.9e-05
M1012.41284379729227.5472141.64470.1068510.053426
M11-9.695431053112237.527508-1.2880.2041880.102094
t-0.3937240671735890.174624-2.25470.0289560.014478

\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) & 249.743765932925 & 32.897048 & 7.5917 & 0 & 0 \tabularnewline
X & -1.05055721843048 & 0.345681 & -3.0391 & 0.003905 & 0.001953 \tabularnewline
M1 & -31.0307064944671 & 8.026298 & -3.8661 & 0.000345 & 0.000173 \tabularnewline
M2 & -38.0107916100911 & 8.400072 & -4.5251 & 4.2e-05 & 2.1e-05 \tabularnewline
M3 & -30.2152583601200 & 8.108226 & -3.7265 & 0.00053 & 0.000265 \tabularnewline
M4 & -16.6075935557811 & 7.725342 & -2.1498 & 0.036867 & 0.018434 \tabularnewline
M5 & -42.9485044503155 & 7.565939 & -5.6766 & 1e-06 & 0 \tabularnewline
M6 & -78.6002454534487 & 7.604837 & -10.3356 & 0 & 0 \tabularnewline
M7 & 24.2010437160465 & 7.729548 & 3.131 & 0.003025 & 0.001513 \tabularnewline
M8 & 12.2490607972814 & 7.743595 & 1.5818 & 0.12054 & 0.06027 \tabularnewline
M9 & 32.1316138906316 & 7.636866 & 4.2074 & 0.000118 & 5.9e-05 \tabularnewline
M10 & 12.4128437972922 & 7.547214 & 1.6447 & 0.106851 & 0.053426 \tabularnewline
M11 & -9.69543105311223 & 7.527508 & -1.288 & 0.204188 & 0.102094 \tabularnewline
t & -0.393724067173589 & 0.174624 & -2.2547 & 0.028956 & 0.014478 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61168&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]249.743765932925[/C][C]32.897048[/C][C]7.5917[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-1.05055721843048[/C][C]0.345681[/C][C]-3.0391[/C][C]0.003905[/C][C]0.001953[/C][/ROW]
[ROW][C]M1[/C][C]-31.0307064944671[/C][C]8.026298[/C][C]-3.8661[/C][C]0.000345[/C][C]0.000173[/C][/ROW]
[ROW][C]M2[/C][C]-38.0107916100911[/C][C]8.400072[/C][C]-4.5251[/C][C]4.2e-05[/C][C]2.1e-05[/C][/ROW]
[ROW][C]M3[/C][C]-30.2152583601200[/C][C]8.108226[/C][C]-3.7265[/C][C]0.00053[/C][C]0.000265[/C][/ROW]
[ROW][C]M4[/C][C]-16.6075935557811[/C][C]7.725342[/C][C]-2.1498[/C][C]0.036867[/C][C]0.018434[/C][/ROW]
[ROW][C]M5[/C][C]-42.9485044503155[/C][C]7.565939[/C][C]-5.6766[/C][C]1e-06[/C][C]0[/C][/ROW]
[ROW][C]M6[/C][C]-78.6002454534487[/C][C]7.604837[/C][C]-10.3356[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M7[/C][C]24.2010437160465[/C][C]7.729548[/C][C]3.131[/C][C]0.003025[/C][C]0.001513[/C][/ROW]
[ROW][C]M8[/C][C]12.2490607972814[/C][C]7.743595[/C][C]1.5818[/C][C]0.12054[/C][C]0.06027[/C][/ROW]
[ROW][C]M9[/C][C]32.1316138906316[/C][C]7.636866[/C][C]4.2074[/C][C]0.000118[/C][C]5.9e-05[/C][/ROW]
[ROW][C]M10[/C][C]12.4128437972922[/C][C]7.547214[/C][C]1.6447[/C][C]0.106851[/C][C]0.053426[/C][/ROW]
[ROW][C]M11[/C][C]-9.69543105311223[/C][C]7.527508[/C][C]-1.288[/C][C]0.204188[/C][C]0.102094[/C][/ROW]
[ROW][C]t[/C][C]-0.393724067173589[/C][C]0.174624[/C][C]-2.2547[/C][C]0.028956[/C][C]0.014478[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61168&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61168&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)249.74376593292532.8970487.591700
X-1.050557218430480.345681-3.03910.0039050.001953
M1-31.03070649446718.026298-3.86610.0003450.000173
M2-38.01079161009118.400072-4.52514.2e-052.1e-05
M3-30.21525836012008.108226-3.72650.000530.000265
M4-16.60759355578117.725342-2.14980.0368670.018434
M5-42.94850445031557.565939-5.67661e-060
M6-78.60024545344877.604837-10.335600
M724.20104371604657.7295483.1310.0030250.001513
M812.24906079728147.7435951.58180.120540.06027
M932.13161389063167.6368664.20740.0001185.9e-05
M1012.41284379729227.5472141.64470.1068510.053426
M11-9.695431053112237.527508-1.2880.2041880.102094
t-0.3937240671735890.174624-2.25470.0289560.014478







Multiple Linear Regression - Regression Statistics
Multiple R0.95098585591368
R-squared0.904374098147874
Adjusted R-squared0.877349386754882
F-TEST (value)33.4647088361652
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation11.8962863267016
Sum Squared Residuals6509.99490487596

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.95098585591368 \tabularnewline
R-squared & 0.904374098147874 \tabularnewline
Adjusted R-squared & 0.877349386754882 \tabularnewline
F-TEST (value) & 33.4647088361652 \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 & 11.8962863267016 \tabularnewline
Sum Squared Residuals & 6509.99490487596 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61168&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.95098585591368[/C][/ROW]
[ROW][C]R-squared[/C][C]0.904374098147874[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.877349386754882[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]33.4647088361652[/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]11.8962863267016[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]6509.99490487596[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61168&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61168&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.95098585591368
R-squared0.904374098147874
Adjusted R-squared0.877349386754882
F-TEST (value)33.4647088361652
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation11.8962863267016
Sum Squared Residuals6509.99490487596







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1100113.263613528237-13.2636135282369
294.9798.8195542654022-3.84955426540225
3107.5108.238433307586-0.738433307586283
4124.27130.550199556360-6.28019955635957
5107.06111.894349604382-4.83434960438187
679.7175.84888453407513.86111546592492
7163.41175.220339275133-11.8103392751326
8144.83161.866097359501-17.0360973595007
9166.82182.363461315371-15.5434613153706
10154.26166.295612445815-12.0356124458149
11132.6145.810683387623-13.2106833876234
12157.51154.1038554438693.40614455613121
13104.02111.564529511234-7.54452951123358
14106.03102.1736504690503.85634953095046
15113.23110.5839945815402.64600541845966
16117.64129.859650469050-12.2196504690495
17113.34107.1696607982996.17033920170123
1866.6270.1156607982988-3.49566079829877
19185.99171.51469097092714.4753090290729
20174.57159.16898398498815.4010160150115
21208.19180.67488287055227.5151171294484
22163.81162.5794585694251.23054143057496
23162.46140.07745965184722.3825403481529
24148.16149.379166637786-1.21916663778571
25113.41109.8759510664153.53404893358541
26105.63100.4850720242315.14492797576945
27111.79109.9039510664151.88604893358541
28132.36128.1710720242314.18892797576947
29110.75104.4620418516026.2879581483978
3067.3768.4165767812954-1.04657678129545
31178.29169.8156069539248.47439304607619
32156.38157.469899967985-1.08989996798516
33189.71176.95872899416212.7512710058382
34152.8155.837699903955-3.03769990395546
35150.8137.36984070515013.4301592948495
36160.4151.7247279117408.67527208826026
37127.25119.2917624204067.95823757959424
38108.47114.954063598872-6.4840635988723
39117.09126.390012500443-9.30001250044287
40147.25137.5868833782229.66311662177829
41116.19110.8522484165145.3377515834864
4275.8373.79824841651362.03175158348638
43181.94177.2143484485284.72565155147154
44179.12167.89424625167011.2257537483304
45183.15192.436255498497-9.28625549849678
46197.9175.35987169924822.5401283007522
47155.42155.883477570750-0.463477570749624
48162.54161.1405392657311.39946073426907
49125.9116.5841434737099.3158565262908
50105.5104.1676596424451.33234035755463
51121.11115.6036085440165.50639145598406
52137.51132.8621945721394.64780542786135
5397.2110.161699329204-12.9616993292035
5469.7471.090629469817-1.35062946981707
55152.58168.445014351488-15.8650143514880
56146.59155.090772435856-8.50077243585612
57161.16176.596671321419-15.4366713214193
58152.84161.537357381557-8.6973573815568
59121.95144.088538684629-22.1385386846294
60140.12152.381710740875-12.2617107408748

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 100 & 113.263613528237 & -13.2636135282369 \tabularnewline
2 & 94.97 & 98.8195542654022 & -3.84955426540225 \tabularnewline
3 & 107.5 & 108.238433307586 & -0.738433307586283 \tabularnewline
4 & 124.27 & 130.550199556360 & -6.28019955635957 \tabularnewline
5 & 107.06 & 111.894349604382 & -4.83434960438187 \tabularnewline
6 & 79.71 & 75.8488845340751 & 3.86111546592492 \tabularnewline
7 & 163.41 & 175.220339275133 & -11.8103392751326 \tabularnewline
8 & 144.83 & 161.866097359501 & -17.0360973595007 \tabularnewline
9 & 166.82 & 182.363461315371 & -15.5434613153706 \tabularnewline
10 & 154.26 & 166.295612445815 & -12.0356124458149 \tabularnewline
11 & 132.6 & 145.810683387623 & -13.2106833876234 \tabularnewline
12 & 157.51 & 154.103855443869 & 3.40614455613121 \tabularnewline
13 & 104.02 & 111.564529511234 & -7.54452951123358 \tabularnewline
14 & 106.03 & 102.173650469050 & 3.85634953095046 \tabularnewline
15 & 113.23 & 110.583994581540 & 2.64600541845966 \tabularnewline
16 & 117.64 & 129.859650469050 & -12.2196504690495 \tabularnewline
17 & 113.34 & 107.169660798299 & 6.17033920170123 \tabularnewline
18 & 66.62 & 70.1156607982988 & -3.49566079829877 \tabularnewline
19 & 185.99 & 171.514690970927 & 14.4753090290729 \tabularnewline
20 & 174.57 & 159.168983984988 & 15.4010160150115 \tabularnewline
21 & 208.19 & 180.674882870552 & 27.5151171294484 \tabularnewline
22 & 163.81 & 162.579458569425 & 1.23054143057496 \tabularnewline
23 & 162.46 & 140.077459651847 & 22.3825403481529 \tabularnewline
24 & 148.16 & 149.379166637786 & -1.21916663778571 \tabularnewline
25 & 113.41 & 109.875951066415 & 3.53404893358541 \tabularnewline
26 & 105.63 & 100.485072024231 & 5.14492797576945 \tabularnewline
27 & 111.79 & 109.903951066415 & 1.88604893358541 \tabularnewline
28 & 132.36 & 128.171072024231 & 4.18892797576947 \tabularnewline
29 & 110.75 & 104.462041851602 & 6.2879581483978 \tabularnewline
30 & 67.37 & 68.4165767812954 & -1.04657678129545 \tabularnewline
31 & 178.29 & 169.815606953924 & 8.47439304607619 \tabularnewline
32 & 156.38 & 157.469899967985 & -1.08989996798516 \tabularnewline
33 & 189.71 & 176.958728994162 & 12.7512710058382 \tabularnewline
34 & 152.8 & 155.837699903955 & -3.03769990395546 \tabularnewline
35 & 150.8 & 137.369840705150 & 13.4301592948495 \tabularnewline
36 & 160.4 & 151.724727911740 & 8.67527208826026 \tabularnewline
37 & 127.25 & 119.291762420406 & 7.95823757959424 \tabularnewline
38 & 108.47 & 114.954063598872 & -6.4840635988723 \tabularnewline
39 & 117.09 & 126.390012500443 & -9.30001250044287 \tabularnewline
40 & 147.25 & 137.586883378222 & 9.66311662177829 \tabularnewline
41 & 116.19 & 110.852248416514 & 5.3377515834864 \tabularnewline
42 & 75.83 & 73.7982484165136 & 2.03175158348638 \tabularnewline
43 & 181.94 & 177.214348448528 & 4.72565155147154 \tabularnewline
44 & 179.12 & 167.894246251670 & 11.2257537483304 \tabularnewline
45 & 183.15 & 192.436255498497 & -9.28625549849678 \tabularnewline
46 & 197.9 & 175.359871699248 & 22.5401283007522 \tabularnewline
47 & 155.42 & 155.883477570750 & -0.463477570749624 \tabularnewline
48 & 162.54 & 161.140539265731 & 1.39946073426907 \tabularnewline
49 & 125.9 & 116.584143473709 & 9.3158565262908 \tabularnewline
50 & 105.5 & 104.167659642445 & 1.33234035755463 \tabularnewline
51 & 121.11 & 115.603608544016 & 5.50639145598406 \tabularnewline
52 & 137.51 & 132.862194572139 & 4.64780542786135 \tabularnewline
53 & 97.2 & 110.161699329204 & -12.9616993292035 \tabularnewline
54 & 69.74 & 71.090629469817 & -1.35062946981707 \tabularnewline
55 & 152.58 & 168.445014351488 & -15.8650143514880 \tabularnewline
56 & 146.59 & 155.090772435856 & -8.50077243585612 \tabularnewline
57 & 161.16 & 176.596671321419 & -15.4366713214193 \tabularnewline
58 & 152.84 & 161.537357381557 & -8.6973573815568 \tabularnewline
59 & 121.95 & 144.088538684629 & -22.1385386846294 \tabularnewline
60 & 140.12 & 152.381710740875 & -12.2617107408748 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61168&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]113.263613528237[/C][C]-13.2636135282369[/C][/ROW]
[ROW][C]2[/C][C]94.97[/C][C]98.8195542654022[/C][C]-3.84955426540225[/C][/ROW]
[ROW][C]3[/C][C]107.5[/C][C]108.238433307586[/C][C]-0.738433307586283[/C][/ROW]
[ROW][C]4[/C][C]124.27[/C][C]130.550199556360[/C][C]-6.28019955635957[/C][/ROW]
[ROW][C]5[/C][C]107.06[/C][C]111.894349604382[/C][C]-4.83434960438187[/C][/ROW]
[ROW][C]6[/C][C]79.71[/C][C]75.8488845340751[/C][C]3.86111546592492[/C][/ROW]
[ROW][C]7[/C][C]163.41[/C][C]175.220339275133[/C][C]-11.8103392751326[/C][/ROW]
[ROW][C]8[/C][C]144.83[/C][C]161.866097359501[/C][C]-17.0360973595007[/C][/ROW]
[ROW][C]9[/C][C]166.82[/C][C]182.363461315371[/C][C]-15.5434613153706[/C][/ROW]
[ROW][C]10[/C][C]154.26[/C][C]166.295612445815[/C][C]-12.0356124458149[/C][/ROW]
[ROW][C]11[/C][C]132.6[/C][C]145.810683387623[/C][C]-13.2106833876234[/C][/ROW]
[ROW][C]12[/C][C]157.51[/C][C]154.103855443869[/C][C]3.40614455613121[/C][/ROW]
[ROW][C]13[/C][C]104.02[/C][C]111.564529511234[/C][C]-7.54452951123358[/C][/ROW]
[ROW][C]14[/C][C]106.03[/C][C]102.173650469050[/C][C]3.85634953095046[/C][/ROW]
[ROW][C]15[/C][C]113.23[/C][C]110.583994581540[/C][C]2.64600541845966[/C][/ROW]
[ROW][C]16[/C][C]117.64[/C][C]129.859650469050[/C][C]-12.2196504690495[/C][/ROW]
[ROW][C]17[/C][C]113.34[/C][C]107.169660798299[/C][C]6.17033920170123[/C][/ROW]
[ROW][C]18[/C][C]66.62[/C][C]70.1156607982988[/C][C]-3.49566079829877[/C][/ROW]
[ROW][C]19[/C][C]185.99[/C][C]171.514690970927[/C][C]14.4753090290729[/C][/ROW]
[ROW][C]20[/C][C]174.57[/C][C]159.168983984988[/C][C]15.4010160150115[/C][/ROW]
[ROW][C]21[/C][C]208.19[/C][C]180.674882870552[/C][C]27.5151171294484[/C][/ROW]
[ROW][C]22[/C][C]163.81[/C][C]162.579458569425[/C][C]1.23054143057496[/C][/ROW]
[ROW][C]23[/C][C]162.46[/C][C]140.077459651847[/C][C]22.3825403481529[/C][/ROW]
[ROW][C]24[/C][C]148.16[/C][C]149.379166637786[/C][C]-1.21916663778571[/C][/ROW]
[ROW][C]25[/C][C]113.41[/C][C]109.875951066415[/C][C]3.53404893358541[/C][/ROW]
[ROW][C]26[/C][C]105.63[/C][C]100.485072024231[/C][C]5.14492797576945[/C][/ROW]
[ROW][C]27[/C][C]111.79[/C][C]109.903951066415[/C][C]1.88604893358541[/C][/ROW]
[ROW][C]28[/C][C]132.36[/C][C]128.171072024231[/C][C]4.18892797576947[/C][/ROW]
[ROW][C]29[/C][C]110.75[/C][C]104.462041851602[/C][C]6.2879581483978[/C][/ROW]
[ROW][C]30[/C][C]67.37[/C][C]68.4165767812954[/C][C]-1.04657678129545[/C][/ROW]
[ROW][C]31[/C][C]178.29[/C][C]169.815606953924[/C][C]8.47439304607619[/C][/ROW]
[ROW][C]32[/C][C]156.38[/C][C]157.469899967985[/C][C]-1.08989996798516[/C][/ROW]
[ROW][C]33[/C][C]189.71[/C][C]176.958728994162[/C][C]12.7512710058382[/C][/ROW]
[ROW][C]34[/C][C]152.8[/C][C]155.837699903955[/C][C]-3.03769990395546[/C][/ROW]
[ROW][C]35[/C][C]150.8[/C][C]137.369840705150[/C][C]13.4301592948495[/C][/ROW]
[ROW][C]36[/C][C]160.4[/C][C]151.724727911740[/C][C]8.67527208826026[/C][/ROW]
[ROW][C]37[/C][C]127.25[/C][C]119.291762420406[/C][C]7.95823757959424[/C][/ROW]
[ROW][C]38[/C][C]108.47[/C][C]114.954063598872[/C][C]-6.4840635988723[/C][/ROW]
[ROW][C]39[/C][C]117.09[/C][C]126.390012500443[/C][C]-9.30001250044287[/C][/ROW]
[ROW][C]40[/C][C]147.25[/C][C]137.586883378222[/C][C]9.66311662177829[/C][/ROW]
[ROW][C]41[/C][C]116.19[/C][C]110.852248416514[/C][C]5.3377515834864[/C][/ROW]
[ROW][C]42[/C][C]75.83[/C][C]73.7982484165136[/C][C]2.03175158348638[/C][/ROW]
[ROW][C]43[/C][C]181.94[/C][C]177.214348448528[/C][C]4.72565155147154[/C][/ROW]
[ROW][C]44[/C][C]179.12[/C][C]167.894246251670[/C][C]11.2257537483304[/C][/ROW]
[ROW][C]45[/C][C]183.15[/C][C]192.436255498497[/C][C]-9.28625549849678[/C][/ROW]
[ROW][C]46[/C][C]197.9[/C][C]175.359871699248[/C][C]22.5401283007522[/C][/ROW]
[ROW][C]47[/C][C]155.42[/C][C]155.883477570750[/C][C]-0.463477570749624[/C][/ROW]
[ROW][C]48[/C][C]162.54[/C][C]161.140539265731[/C][C]1.39946073426907[/C][/ROW]
[ROW][C]49[/C][C]125.9[/C][C]116.584143473709[/C][C]9.3158565262908[/C][/ROW]
[ROW][C]50[/C][C]105.5[/C][C]104.167659642445[/C][C]1.33234035755463[/C][/ROW]
[ROW][C]51[/C][C]121.11[/C][C]115.603608544016[/C][C]5.50639145598406[/C][/ROW]
[ROW][C]52[/C][C]137.51[/C][C]132.862194572139[/C][C]4.64780542786135[/C][/ROW]
[ROW][C]53[/C][C]97.2[/C][C]110.161699329204[/C][C]-12.9616993292035[/C][/ROW]
[ROW][C]54[/C][C]69.74[/C][C]71.090629469817[/C][C]-1.35062946981707[/C][/ROW]
[ROW][C]55[/C][C]152.58[/C][C]168.445014351488[/C][C]-15.8650143514880[/C][/ROW]
[ROW][C]56[/C][C]146.59[/C][C]155.090772435856[/C][C]-8.50077243585612[/C][/ROW]
[ROW][C]57[/C][C]161.16[/C][C]176.596671321419[/C][C]-15.4366713214193[/C][/ROW]
[ROW][C]58[/C][C]152.84[/C][C]161.537357381557[/C][C]-8.6973573815568[/C][/ROW]
[ROW][C]59[/C][C]121.95[/C][C]144.088538684629[/C][C]-22.1385386846294[/C][/ROW]
[ROW][C]60[/C][C]140.12[/C][C]152.381710740875[/C][C]-12.2617107408748[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61168&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61168&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
1100113.263613528237-13.2636135282369
294.9798.8195542654022-3.84955426540225
3107.5108.238433307586-0.738433307586283
4124.27130.550199556360-6.28019955635957
5107.06111.894349604382-4.83434960438187
679.7175.84888453407513.86111546592492
7163.41175.220339275133-11.8103392751326
8144.83161.866097359501-17.0360973595007
9166.82182.363461315371-15.5434613153706
10154.26166.295612445815-12.0356124458149
11132.6145.810683387623-13.2106833876234
12157.51154.1038554438693.40614455613121
13104.02111.564529511234-7.54452951123358
14106.03102.1736504690503.85634953095046
15113.23110.5839945815402.64600541845966
16117.64129.859650469050-12.2196504690495
17113.34107.1696607982996.17033920170123
1866.6270.1156607982988-3.49566079829877
19185.99171.51469097092714.4753090290729
20174.57159.16898398498815.4010160150115
21208.19180.67488287055227.5151171294484
22163.81162.5794585694251.23054143057496
23162.46140.07745965184722.3825403481529
24148.16149.379166637786-1.21916663778571
25113.41109.8759510664153.53404893358541
26105.63100.4850720242315.14492797576945
27111.79109.9039510664151.88604893358541
28132.36128.1710720242314.18892797576947
29110.75104.4620418516026.2879581483978
3067.3768.4165767812954-1.04657678129545
31178.29169.8156069539248.47439304607619
32156.38157.469899967985-1.08989996798516
33189.71176.95872899416212.7512710058382
34152.8155.837699903955-3.03769990395546
35150.8137.36984070515013.4301592948495
36160.4151.7247279117408.67527208826026
37127.25119.2917624204067.95823757959424
38108.47114.954063598872-6.4840635988723
39117.09126.390012500443-9.30001250044287
40147.25137.5868833782229.66311662177829
41116.19110.8522484165145.3377515834864
4275.8373.79824841651362.03175158348638
43181.94177.2143484485284.72565155147154
44179.12167.89424625167011.2257537483304
45183.15192.436255498497-9.28625549849678
46197.9175.35987169924822.5401283007522
47155.42155.883477570750-0.463477570749624
48162.54161.1405392657311.39946073426907
49125.9116.5841434737099.3158565262908
50105.5104.1676596424451.33234035755463
51121.11115.6036085440165.50639145598406
52137.51132.8621945721394.64780542786135
5397.2110.161699329204-12.9616993292035
5469.7471.090629469817-1.35062946981707
55152.58168.445014351488-15.8650143514880
56146.59155.090772435856-8.50077243585612
57161.16176.596671321419-15.4366713214193
58152.84161.537357381557-8.6973573815568
59121.95144.088538684629-22.1385386846294
60140.12152.381710740875-12.2617107408748







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.1507184251742480.3014368503484970.849281574825752
180.1530248598321220.3060497196642430.846975140167878
190.4251494837493930.8502989674987870.574850516250607
200.6182495883593080.7635008232813840.381750411640692
210.8684916434809130.2630167130381750.131508356519087
220.8265690076588130.3468619846823730.173430992341187
230.8533639596235090.2932720807529830.146636040376491
240.8744500918251560.2510998163496890.125549908174844
250.8398843541692930.3202312916614140.160115645830707
260.7875315576902690.4249368846194620.212468442309731
270.7324032908384850.535193418323030.267596709161515
280.6765431824209770.6469136351580460.323456817579023
290.6195159482097320.7609681035805360.380484051790268
300.6295096189213760.7409807621572490.370490381078624
310.5383716763795240.9232566472409530.461628323620476
320.5356808953027630.9286382093944740.464319104697237
330.5080378182451710.9839243635096570.491962181754829
340.634464223631520.731071552736960.36553577636848
350.5787465282616720.8425069434766560.421253471738328
360.4817637710343910.9635275420687830.518236228965609
370.4051058556348040.8102117112696090.594894144365196
380.4869284446465570.9738568892931140.513071555353443
390.8585472902197970.2829054195604070.141452709780203
400.8309625834853790.3380748330292430.169037416514621
410.7718751838658420.4562496322683150.228124816134158
420.7409244805303470.5181510389393060.259075519469653
430.5736013011424750.852797397715050.426398698857525

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.150718425174248 & 0.301436850348497 & 0.849281574825752 \tabularnewline
18 & 0.153024859832122 & 0.306049719664243 & 0.846975140167878 \tabularnewline
19 & 0.425149483749393 & 0.850298967498787 & 0.574850516250607 \tabularnewline
20 & 0.618249588359308 & 0.763500823281384 & 0.381750411640692 \tabularnewline
21 & 0.868491643480913 & 0.263016713038175 & 0.131508356519087 \tabularnewline
22 & 0.826569007658813 & 0.346861984682373 & 0.173430992341187 \tabularnewline
23 & 0.853363959623509 & 0.293272080752983 & 0.146636040376491 \tabularnewline
24 & 0.874450091825156 & 0.251099816349689 & 0.125549908174844 \tabularnewline
25 & 0.839884354169293 & 0.320231291661414 & 0.160115645830707 \tabularnewline
26 & 0.787531557690269 & 0.424936884619462 & 0.212468442309731 \tabularnewline
27 & 0.732403290838485 & 0.53519341832303 & 0.267596709161515 \tabularnewline
28 & 0.676543182420977 & 0.646913635158046 & 0.323456817579023 \tabularnewline
29 & 0.619515948209732 & 0.760968103580536 & 0.380484051790268 \tabularnewline
30 & 0.629509618921376 & 0.740980762157249 & 0.370490381078624 \tabularnewline
31 & 0.538371676379524 & 0.923256647240953 & 0.461628323620476 \tabularnewline
32 & 0.535680895302763 & 0.928638209394474 & 0.464319104697237 \tabularnewline
33 & 0.508037818245171 & 0.983924363509657 & 0.491962181754829 \tabularnewline
34 & 0.63446422363152 & 0.73107155273696 & 0.36553577636848 \tabularnewline
35 & 0.578746528261672 & 0.842506943476656 & 0.421253471738328 \tabularnewline
36 & 0.481763771034391 & 0.963527542068783 & 0.518236228965609 \tabularnewline
37 & 0.405105855634804 & 0.810211711269609 & 0.594894144365196 \tabularnewline
38 & 0.486928444646557 & 0.973856889293114 & 0.513071555353443 \tabularnewline
39 & 0.858547290219797 & 0.282905419560407 & 0.141452709780203 \tabularnewline
40 & 0.830962583485379 & 0.338074833029243 & 0.169037416514621 \tabularnewline
41 & 0.771875183865842 & 0.456249632268315 & 0.228124816134158 \tabularnewline
42 & 0.740924480530347 & 0.518151038939306 & 0.259075519469653 \tabularnewline
43 & 0.573601301142475 & 0.85279739771505 & 0.426398698857525 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=61168&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.150718425174248[/C][C]0.301436850348497[/C][C]0.849281574825752[/C][/ROW]
[ROW][C]18[/C][C]0.153024859832122[/C][C]0.306049719664243[/C][C]0.846975140167878[/C][/ROW]
[ROW][C]19[/C][C]0.425149483749393[/C][C]0.850298967498787[/C][C]0.574850516250607[/C][/ROW]
[ROW][C]20[/C][C]0.618249588359308[/C][C]0.763500823281384[/C][C]0.381750411640692[/C][/ROW]
[ROW][C]21[/C][C]0.868491643480913[/C][C]0.263016713038175[/C][C]0.131508356519087[/C][/ROW]
[ROW][C]22[/C][C]0.826569007658813[/C][C]0.346861984682373[/C][C]0.173430992341187[/C][/ROW]
[ROW][C]23[/C][C]0.853363959623509[/C][C]0.293272080752983[/C][C]0.146636040376491[/C][/ROW]
[ROW][C]24[/C][C]0.874450091825156[/C][C]0.251099816349689[/C][C]0.125549908174844[/C][/ROW]
[ROW][C]25[/C][C]0.839884354169293[/C][C]0.320231291661414[/C][C]0.160115645830707[/C][/ROW]
[ROW][C]26[/C][C]0.787531557690269[/C][C]0.424936884619462[/C][C]0.212468442309731[/C][/ROW]
[ROW][C]27[/C][C]0.732403290838485[/C][C]0.53519341832303[/C][C]0.267596709161515[/C][/ROW]
[ROW][C]28[/C][C]0.676543182420977[/C][C]0.646913635158046[/C][C]0.323456817579023[/C][/ROW]
[ROW][C]29[/C][C]0.619515948209732[/C][C]0.760968103580536[/C][C]0.380484051790268[/C][/ROW]
[ROW][C]30[/C][C]0.629509618921376[/C][C]0.740980762157249[/C][C]0.370490381078624[/C][/ROW]
[ROW][C]31[/C][C]0.538371676379524[/C][C]0.923256647240953[/C][C]0.461628323620476[/C][/ROW]
[ROW][C]32[/C][C]0.535680895302763[/C][C]0.928638209394474[/C][C]0.464319104697237[/C][/ROW]
[ROW][C]33[/C][C]0.508037818245171[/C][C]0.983924363509657[/C][C]0.491962181754829[/C][/ROW]
[ROW][C]34[/C][C]0.63446422363152[/C][C]0.73107155273696[/C][C]0.36553577636848[/C][/ROW]
[ROW][C]35[/C][C]0.578746528261672[/C][C]0.842506943476656[/C][C]0.421253471738328[/C][/ROW]
[ROW][C]36[/C][C]0.481763771034391[/C][C]0.963527542068783[/C][C]0.518236228965609[/C][/ROW]
[ROW][C]37[/C][C]0.405105855634804[/C][C]0.810211711269609[/C][C]0.594894144365196[/C][/ROW]
[ROW][C]38[/C][C]0.486928444646557[/C][C]0.973856889293114[/C][C]0.513071555353443[/C][/ROW]
[ROW][C]39[/C][C]0.858547290219797[/C][C]0.282905419560407[/C][C]0.141452709780203[/C][/ROW]
[ROW][C]40[/C][C]0.830962583485379[/C][C]0.338074833029243[/C][C]0.169037416514621[/C][/ROW]
[ROW][C]41[/C][C]0.771875183865842[/C][C]0.456249632268315[/C][C]0.228124816134158[/C][/ROW]
[ROW][C]42[/C][C]0.740924480530347[/C][C]0.518151038939306[/C][C]0.259075519469653[/C][/ROW]
[ROW][C]43[/C][C]0.573601301142475[/C][C]0.85279739771505[/C][C]0.426398698857525[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=61168&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61168&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.1507184251742480.3014368503484970.849281574825752
180.1530248598321220.3060497196642430.846975140167878
190.4251494837493930.8502989674987870.574850516250607
200.6182495883593080.7635008232813840.381750411640692
210.8684916434809130.2630167130381750.131508356519087
220.8265690076588130.3468619846823730.173430992341187
230.8533639596235090.2932720807529830.146636040376491
240.8744500918251560.2510998163496890.125549908174844
250.8398843541692930.3202312916614140.160115645830707
260.7875315576902690.4249368846194620.212468442309731
270.7324032908384850.535193418323030.267596709161515
280.6765431824209770.6469136351580460.323456817579023
290.6195159482097320.7609681035805360.380484051790268
300.6295096189213760.7409807621572490.370490381078624
310.5383716763795240.9232566472409530.461628323620476
320.5356808953027630.9286382093944740.464319104697237
330.5080378182451710.9839243635096570.491962181754829
340.634464223631520.731071552736960.36553577636848
350.5787465282616720.8425069434766560.421253471738328
360.4817637710343910.9635275420687830.518236228965609
370.4051058556348040.8102117112696090.594894144365196
380.4869284446465570.9738568892931140.513071555353443
390.8585472902197970.2829054195604070.141452709780203
400.8309625834853790.3380748330292430.169037416514621
410.7718751838658420.4562496322683150.228124816134158
420.7409244805303470.5181510389393060.259075519469653
430.5736013011424750.852797397715050.426398698857525







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=61168&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=61168&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=61168&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')
}