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 computationTue, 16 Dec 2008 13:25:55 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2008/Dec/16/t1229459251drlt27acpp8qlth.htm/, Retrieved Wed, 15 May 2024 00:58:40 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=34181, Retrieved Wed, 15 May 2024 00:58:40 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact182
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]
F R  D  [Multiple Regression] [Seatbelt law] [2008-11-20 12:42:26] [393f8bd7ec1141df13b2cdc1ba8ed059]
F         [Multiple Regression] [Q1] [2008-11-21 14:19:54] [c5a66f1c8528a963efc2b82a8519f117]
-    D        [Multiple Regression] [Paper Dummy Varia...] [2008-12-16 20:25:55] [0da3c04827d8ef68db874351a2e09488] [Current]
Feedback Forum

Post a new message
Dataseries X:
117.3	0
118.8	0
131.3	0
125.9	0
133.1	0
147	0
145.8	0
164.4	0
149.8	0
137.7	0
151.7	0
156.8	0
180	0
180.4	0
170.4	0
191.6	0
199.5	0
218.2	1
217.5	1
205	1
194	0
199.3	0
219.3	1
211.1	1
215.2	1
240.2	1
242.2	1
240.7	1
255.4	1
253	1
218.2	1
203.7	1
205.6	1
215.6	1
188.5	1
202.9	1
214	1
230.3	1
230	1
241	1
259.6	1
247.8	1
270.3	1
289.7	1
322.7	1
315	1
320.2	1
329.5	1
360.6	1
382.2	1
435.4	1
464	1
468.8	1
403	1
351.6	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24

\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 & 5 seconds \tabularnewline
R Server & 'Sir Ronald Aylmer Fisher' @ 193.190.124.24 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34181&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]5 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Sir Ronald Aylmer Fisher' @ 193.190.124.24[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34181&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34181&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 time5 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 82.647598105548 -34.8087280108254x[t] + 15.2126821154714M1[t] + 22.5548838520523M2[t] + 28.4170855886333M3[t] + 33.5792873252143M4[t] + 38.6014890617952M5[t] + 30.4654364005413M6[t] + 11.7276381371222M7[t] + 13.0961930536761M8[t] + 1.10121278755075M9[t] -5.64158547586829M10[t] + 0.467798263419038M11[t] + 5.61779826341904t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  82.647598105548 -34.8087280108254x[t] +  15.2126821154714M1[t] +  22.5548838520523M2[t] +  28.4170855886333M3[t] +  33.5792873252143M4[t] +  38.6014890617952M5[t] +  30.4654364005413M6[t] +  11.7276381371222M7[t] +  13.0961930536761M8[t] +  1.10121278755075M9[t] -5.64158547586829M10[t] +  0.467798263419038M11[t] +  5.61779826341904t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34181&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  82.647598105548 -34.8087280108254x[t] +  15.2126821154714M1[t] +  22.5548838520523M2[t] +  28.4170855886333M3[t] +  33.5792873252143M4[t] +  38.6014890617952M5[t] +  30.4654364005413M6[t] +  11.7276381371222M7[t] +  13.0961930536761M8[t] +  1.10121278755075M9[t] -5.64158547586829M10[t] +  0.467798263419038M11[t] +  5.61779826341904t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34181&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34181&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] = + 82.647598105548 -34.8087280108254x[t] + 15.2126821154714M1[t] + 22.5548838520523M2[t] + 28.4170855886333M3[t] + 33.5792873252143M4[t] + 38.6014890617952M5[t] + 30.4654364005413M6[t] + 11.7276381371222M7[t] + 13.0961930536761M8[t] + 1.10121278755075M9[t] -5.64158547586829M10[t] + 0.467798263419038M11[t] + 5.61779826341904t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)82.64759810554822.7339913.63540.0007670.000383
x-34.808728010825420.507326-1.69740.0972040.048602
M115.212682115471427.1923950.55940.5789010.28945
M222.554883852052327.1880710.82960.4115760.205788
M328.417085588633327.1971431.04490.3022110.151106
M433.579287325214327.2195991.23360.2243610.112181
M538.601489061795227.2554061.41630.1642440.082122
M630.465436400541327.1500521.12210.2683430.134171
M711.727638137122227.1380750.43210.6678990.333949
M813.096193053676128.6999760.45630.6505730.325286
M91.1012127875507528.8479750.03820.9697350.484868
M10-5.6415854758682928.904267-0.19520.8462150.423107
M110.46779826341903828.6046190.01640.9870310.493516
t5.617798263419040.6035679.307700

\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) & 82.647598105548 & 22.733991 & 3.6354 & 0.000767 & 0.000383 \tabularnewline
x & -34.8087280108254 & 20.507326 & -1.6974 & 0.097204 & 0.048602 \tabularnewline
M1 & 15.2126821154714 & 27.192395 & 0.5594 & 0.578901 & 0.28945 \tabularnewline
M2 & 22.5548838520523 & 27.188071 & 0.8296 & 0.411576 & 0.205788 \tabularnewline
M3 & 28.4170855886333 & 27.197143 & 1.0449 & 0.302211 & 0.151106 \tabularnewline
M4 & 33.5792873252143 & 27.219599 & 1.2336 & 0.224361 & 0.112181 \tabularnewline
M5 & 38.6014890617952 & 27.255406 & 1.4163 & 0.164244 & 0.082122 \tabularnewline
M6 & 30.4654364005413 & 27.150052 & 1.1221 & 0.268343 & 0.134171 \tabularnewline
M7 & 11.7276381371222 & 27.138075 & 0.4321 & 0.667899 & 0.333949 \tabularnewline
M8 & 13.0961930536761 & 28.699976 & 0.4563 & 0.650573 & 0.325286 \tabularnewline
M9 & 1.10121278755075 & 28.847975 & 0.0382 & 0.969735 & 0.484868 \tabularnewline
M10 & -5.64158547586829 & 28.904267 & -0.1952 & 0.846215 & 0.423107 \tabularnewline
M11 & 0.467798263419038 & 28.604619 & 0.0164 & 0.987031 & 0.493516 \tabularnewline
t & 5.61779826341904 & 0.603567 & 9.3077 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34181&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]82.647598105548[/C][C]22.733991[/C][C]3.6354[/C][C]0.000767[/C][C]0.000383[/C][/ROW]
[ROW][C]x[/C][C]-34.8087280108254[/C][C]20.507326[/C][C]-1.6974[/C][C]0.097204[/C][C]0.048602[/C][/ROW]
[ROW][C]M1[/C][C]15.2126821154714[/C][C]27.192395[/C][C]0.5594[/C][C]0.578901[/C][C]0.28945[/C][/ROW]
[ROW][C]M2[/C][C]22.5548838520523[/C][C]27.188071[/C][C]0.8296[/C][C]0.411576[/C][C]0.205788[/C][/ROW]
[ROW][C]M3[/C][C]28.4170855886333[/C][C]27.197143[/C][C]1.0449[/C][C]0.302211[/C][C]0.151106[/C][/ROW]
[ROW][C]M4[/C][C]33.5792873252143[/C][C]27.219599[/C][C]1.2336[/C][C]0.224361[/C][C]0.112181[/C][/ROW]
[ROW][C]M5[/C][C]38.6014890617952[/C][C]27.255406[/C][C]1.4163[/C][C]0.164244[/C][C]0.082122[/C][/ROW]
[ROW][C]M6[/C][C]30.4654364005413[/C][C]27.150052[/C][C]1.1221[/C][C]0.268343[/C][C]0.134171[/C][/ROW]
[ROW][C]M7[/C][C]11.7276381371222[/C][C]27.138075[/C][C]0.4321[/C][C]0.667899[/C][C]0.333949[/C][/ROW]
[ROW][C]M8[/C][C]13.0961930536761[/C][C]28.699976[/C][C]0.4563[/C][C]0.650573[/C][C]0.325286[/C][/ROW]
[ROW][C]M9[/C][C]1.10121278755075[/C][C]28.847975[/C][C]0.0382[/C][C]0.969735[/C][C]0.484868[/C][/ROW]
[ROW][C]M10[/C][C]-5.64158547586829[/C][C]28.904267[/C][C]-0.1952[/C][C]0.846215[/C][C]0.423107[/C][/ROW]
[ROW][C]M11[/C][C]0.467798263419038[/C][C]28.604619[/C][C]0.0164[/C][C]0.987031[/C][C]0.493516[/C][/ROW]
[ROW][C]t[/C][C]5.61779826341904[/C][C]0.603567[/C][C]9.3077[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34181&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34181&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)82.64759810554822.7339913.63540.0007670.000383
x-34.808728010825420.507326-1.69740.0972040.048602
M115.212682115471427.1923950.55940.5789010.28945
M222.554883852052327.1880710.82960.4115760.205788
M328.417085588633327.1971431.04490.3022110.151106
M433.579287325214327.2195991.23360.2243610.112181
M538.601489061795227.2554061.41630.1642440.082122
M630.465436400541327.1500521.12210.2683430.134171
M711.727638137122227.1380750.43210.6678990.333949
M813.096193053676128.6999760.45630.6505730.325286
M91.1012127875507528.8479750.03820.9697350.484868
M10-5.6415854758682928.904267-0.19520.8462150.423107
M110.46779826341903828.6046190.01640.9870310.493516
t5.617798263419040.6035679.307700







Multiple Linear Regression - Regression Statistics
Multiple R0.912024212966634
R-squared0.831788165037409
Adjusted R-squared0.778452705171222
F-TEST (value)15.5954062667552
F-TEST (DF numerator)13
F-TEST (DF denominator)41
p-value6.52644605025898e-12
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation40.4440337782315
Sum Squared Residuals67064.5145984439

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.912024212966634 \tabularnewline
R-squared & 0.831788165037409 \tabularnewline
Adjusted R-squared & 0.778452705171222 \tabularnewline
F-TEST (value) & 15.5954062667552 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 41 \tabularnewline
p-value & 6.52644605025898e-12 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 40.4440337782315 \tabularnewline
Sum Squared Residuals & 67064.5145984439 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34181&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.912024212966634[/C][/ROW]
[ROW][C]R-squared[/C][C]0.831788165037409[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.778452705171222[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]15.5954062667552[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]41[/C][/ROW]
[ROW][C]p-value[/C][C]6.52644605025898e-12[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]40.4440337782315[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]67064.5145984439[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34181&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34181&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.912024212966634
R-squared0.831788165037409
Adjusted R-squared0.778452705171222
F-TEST (value)15.5954062667552
F-TEST (DF numerator)13
F-TEST (DF denominator)41
p-value6.52644605025898e-12
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation40.4440337782315
Sum Squared Residuals67064.5145984439







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1117.3103.47807848443813.8219215155616
2118.8116.4380784844382.36192151556155
3131.3127.9180784844383.38192151556156
4125.9138.698078484438-12.7980784844384
5133.1149.338078484438-16.2380784844384
6147146.8198240866040.180175913396473
7145.8133.69982408660412.1001759133965
8164.4140.68617726657623.7138227334236
9149.8134.3089952638715.4910047361299
10137.7133.183995263874.51600473612988
11151.7144.9111772665766.78882273342354
12156.8150.0611772665766.73882273342357
13180170.8916576454679.10834235453313
14180.4183.851657645467-3.45165764546684
15170.4195.331657645467-24.9316576454669
16191.6206.111657645467-14.5116576454668
17199.5216.751657645467-17.2516576454669
18218.2179.42467523680738.7753247631935
19217.5166.30467523680751.1953247631935
20205173.29102841677931.7089715832206
21194201.722574424899-7.72257442489851
22199.3200.597574424899-1.29757442489849
23219.3177.51602841677941.7839715832206
24211.1182.66602841677928.4339715832206
25215.2203.4965087956711.7034912043302
26240.2216.4565087956723.7434912043302
27242.2227.9365087956714.2634912043302
28240.7238.716508795671.98349120433017
29255.4249.356508795676.04349120433017
30253246.8382543978356.16174560216509
31218.2233.718254397835-15.5182543978349
32203.7240.704607577808-37.0046075778079
33205.6234.327425575101-28.7274255751015
34215.6233.202425575101-17.6024255751015
35188.5244.929607577808-56.4296075778079
36202.9250.079607577808-47.1796075778079
37214270.910087956698-56.9100879566983
38230.3283.870087956698-53.5700879566982
39230295.350087956698-65.3500879566983
40241306.130087956698-65.1300879566982
41259.6316.770087956698-57.1700879566982
42247.8314.251833558863-66.4518335588633
43270.3301.131833558863-30.8318335588633
44289.7308.118186738836-18.4181867388363
45322.7301.7410047361320.9589952638701
46315300.6160047361314.3839952638701
47320.2312.3431867388367.85681326116372
48329.5317.49318673883612.0068132611637
49360.6338.32366711772722.2763328822734
50382.2351.28366711772730.9163328822733
51435.4362.76366711772772.6363328822734
52464373.54366711772790.4563328822733
53468.8384.18366711772784.6163328822733
54403381.66541271989221.3345872801083
55351.6368.545412719892-16.9454127198917

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 117.3 & 103.478078484438 & 13.8219215155616 \tabularnewline
2 & 118.8 & 116.438078484438 & 2.36192151556155 \tabularnewline
3 & 131.3 & 127.918078484438 & 3.38192151556156 \tabularnewline
4 & 125.9 & 138.698078484438 & -12.7980784844384 \tabularnewline
5 & 133.1 & 149.338078484438 & -16.2380784844384 \tabularnewline
6 & 147 & 146.819824086604 & 0.180175913396473 \tabularnewline
7 & 145.8 & 133.699824086604 & 12.1001759133965 \tabularnewline
8 & 164.4 & 140.686177266576 & 23.7138227334236 \tabularnewline
9 & 149.8 & 134.30899526387 & 15.4910047361299 \tabularnewline
10 & 137.7 & 133.18399526387 & 4.51600473612988 \tabularnewline
11 & 151.7 & 144.911177266576 & 6.78882273342354 \tabularnewline
12 & 156.8 & 150.061177266576 & 6.73882273342357 \tabularnewline
13 & 180 & 170.891657645467 & 9.10834235453313 \tabularnewline
14 & 180.4 & 183.851657645467 & -3.45165764546684 \tabularnewline
15 & 170.4 & 195.331657645467 & -24.9316576454669 \tabularnewline
16 & 191.6 & 206.111657645467 & -14.5116576454668 \tabularnewline
17 & 199.5 & 216.751657645467 & -17.2516576454669 \tabularnewline
18 & 218.2 & 179.424675236807 & 38.7753247631935 \tabularnewline
19 & 217.5 & 166.304675236807 & 51.1953247631935 \tabularnewline
20 & 205 & 173.291028416779 & 31.7089715832206 \tabularnewline
21 & 194 & 201.722574424899 & -7.72257442489851 \tabularnewline
22 & 199.3 & 200.597574424899 & -1.29757442489849 \tabularnewline
23 & 219.3 & 177.516028416779 & 41.7839715832206 \tabularnewline
24 & 211.1 & 182.666028416779 & 28.4339715832206 \tabularnewline
25 & 215.2 & 203.49650879567 & 11.7034912043302 \tabularnewline
26 & 240.2 & 216.45650879567 & 23.7434912043302 \tabularnewline
27 & 242.2 & 227.93650879567 & 14.2634912043302 \tabularnewline
28 & 240.7 & 238.71650879567 & 1.98349120433017 \tabularnewline
29 & 255.4 & 249.35650879567 & 6.04349120433017 \tabularnewline
30 & 253 & 246.838254397835 & 6.16174560216509 \tabularnewline
31 & 218.2 & 233.718254397835 & -15.5182543978349 \tabularnewline
32 & 203.7 & 240.704607577808 & -37.0046075778079 \tabularnewline
33 & 205.6 & 234.327425575101 & -28.7274255751015 \tabularnewline
34 & 215.6 & 233.202425575101 & -17.6024255751015 \tabularnewline
35 & 188.5 & 244.929607577808 & -56.4296075778079 \tabularnewline
36 & 202.9 & 250.079607577808 & -47.1796075778079 \tabularnewline
37 & 214 & 270.910087956698 & -56.9100879566983 \tabularnewline
38 & 230.3 & 283.870087956698 & -53.5700879566982 \tabularnewline
39 & 230 & 295.350087956698 & -65.3500879566983 \tabularnewline
40 & 241 & 306.130087956698 & -65.1300879566982 \tabularnewline
41 & 259.6 & 316.770087956698 & -57.1700879566982 \tabularnewline
42 & 247.8 & 314.251833558863 & -66.4518335588633 \tabularnewline
43 & 270.3 & 301.131833558863 & -30.8318335588633 \tabularnewline
44 & 289.7 & 308.118186738836 & -18.4181867388363 \tabularnewline
45 & 322.7 & 301.74100473613 & 20.9589952638701 \tabularnewline
46 & 315 & 300.61600473613 & 14.3839952638701 \tabularnewline
47 & 320.2 & 312.343186738836 & 7.85681326116372 \tabularnewline
48 & 329.5 & 317.493186738836 & 12.0068132611637 \tabularnewline
49 & 360.6 & 338.323667117727 & 22.2763328822734 \tabularnewline
50 & 382.2 & 351.283667117727 & 30.9163328822733 \tabularnewline
51 & 435.4 & 362.763667117727 & 72.6363328822734 \tabularnewline
52 & 464 & 373.543667117727 & 90.4563328822733 \tabularnewline
53 & 468.8 & 384.183667117727 & 84.6163328822733 \tabularnewline
54 & 403 & 381.665412719892 & 21.3345872801083 \tabularnewline
55 & 351.6 & 368.545412719892 & -16.9454127198917 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34181&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]117.3[/C][C]103.478078484438[/C][C]13.8219215155616[/C][/ROW]
[ROW][C]2[/C][C]118.8[/C][C]116.438078484438[/C][C]2.36192151556155[/C][/ROW]
[ROW][C]3[/C][C]131.3[/C][C]127.918078484438[/C][C]3.38192151556156[/C][/ROW]
[ROW][C]4[/C][C]125.9[/C][C]138.698078484438[/C][C]-12.7980784844384[/C][/ROW]
[ROW][C]5[/C][C]133.1[/C][C]149.338078484438[/C][C]-16.2380784844384[/C][/ROW]
[ROW][C]6[/C][C]147[/C][C]146.819824086604[/C][C]0.180175913396473[/C][/ROW]
[ROW][C]7[/C][C]145.8[/C][C]133.699824086604[/C][C]12.1001759133965[/C][/ROW]
[ROW][C]8[/C][C]164.4[/C][C]140.686177266576[/C][C]23.7138227334236[/C][/ROW]
[ROW][C]9[/C][C]149.8[/C][C]134.30899526387[/C][C]15.4910047361299[/C][/ROW]
[ROW][C]10[/C][C]137.7[/C][C]133.18399526387[/C][C]4.51600473612988[/C][/ROW]
[ROW][C]11[/C][C]151.7[/C][C]144.911177266576[/C][C]6.78882273342354[/C][/ROW]
[ROW][C]12[/C][C]156.8[/C][C]150.061177266576[/C][C]6.73882273342357[/C][/ROW]
[ROW][C]13[/C][C]180[/C][C]170.891657645467[/C][C]9.10834235453313[/C][/ROW]
[ROW][C]14[/C][C]180.4[/C][C]183.851657645467[/C][C]-3.45165764546684[/C][/ROW]
[ROW][C]15[/C][C]170.4[/C][C]195.331657645467[/C][C]-24.9316576454669[/C][/ROW]
[ROW][C]16[/C][C]191.6[/C][C]206.111657645467[/C][C]-14.5116576454668[/C][/ROW]
[ROW][C]17[/C][C]199.5[/C][C]216.751657645467[/C][C]-17.2516576454669[/C][/ROW]
[ROW][C]18[/C][C]218.2[/C][C]179.424675236807[/C][C]38.7753247631935[/C][/ROW]
[ROW][C]19[/C][C]217.5[/C][C]166.304675236807[/C][C]51.1953247631935[/C][/ROW]
[ROW][C]20[/C][C]205[/C][C]173.291028416779[/C][C]31.7089715832206[/C][/ROW]
[ROW][C]21[/C][C]194[/C][C]201.722574424899[/C][C]-7.72257442489851[/C][/ROW]
[ROW][C]22[/C][C]199.3[/C][C]200.597574424899[/C][C]-1.29757442489849[/C][/ROW]
[ROW][C]23[/C][C]219.3[/C][C]177.516028416779[/C][C]41.7839715832206[/C][/ROW]
[ROW][C]24[/C][C]211.1[/C][C]182.666028416779[/C][C]28.4339715832206[/C][/ROW]
[ROW][C]25[/C][C]215.2[/C][C]203.49650879567[/C][C]11.7034912043302[/C][/ROW]
[ROW][C]26[/C][C]240.2[/C][C]216.45650879567[/C][C]23.7434912043302[/C][/ROW]
[ROW][C]27[/C][C]242.2[/C][C]227.93650879567[/C][C]14.2634912043302[/C][/ROW]
[ROW][C]28[/C][C]240.7[/C][C]238.71650879567[/C][C]1.98349120433017[/C][/ROW]
[ROW][C]29[/C][C]255.4[/C][C]249.35650879567[/C][C]6.04349120433017[/C][/ROW]
[ROW][C]30[/C][C]253[/C][C]246.838254397835[/C][C]6.16174560216509[/C][/ROW]
[ROW][C]31[/C][C]218.2[/C][C]233.718254397835[/C][C]-15.5182543978349[/C][/ROW]
[ROW][C]32[/C][C]203.7[/C][C]240.704607577808[/C][C]-37.0046075778079[/C][/ROW]
[ROW][C]33[/C][C]205.6[/C][C]234.327425575101[/C][C]-28.7274255751015[/C][/ROW]
[ROW][C]34[/C][C]215.6[/C][C]233.202425575101[/C][C]-17.6024255751015[/C][/ROW]
[ROW][C]35[/C][C]188.5[/C][C]244.929607577808[/C][C]-56.4296075778079[/C][/ROW]
[ROW][C]36[/C][C]202.9[/C][C]250.079607577808[/C][C]-47.1796075778079[/C][/ROW]
[ROW][C]37[/C][C]214[/C][C]270.910087956698[/C][C]-56.9100879566983[/C][/ROW]
[ROW][C]38[/C][C]230.3[/C][C]283.870087956698[/C][C]-53.5700879566982[/C][/ROW]
[ROW][C]39[/C][C]230[/C][C]295.350087956698[/C][C]-65.3500879566983[/C][/ROW]
[ROW][C]40[/C][C]241[/C][C]306.130087956698[/C][C]-65.1300879566982[/C][/ROW]
[ROW][C]41[/C][C]259.6[/C][C]316.770087956698[/C][C]-57.1700879566982[/C][/ROW]
[ROW][C]42[/C][C]247.8[/C][C]314.251833558863[/C][C]-66.4518335588633[/C][/ROW]
[ROW][C]43[/C][C]270.3[/C][C]301.131833558863[/C][C]-30.8318335588633[/C][/ROW]
[ROW][C]44[/C][C]289.7[/C][C]308.118186738836[/C][C]-18.4181867388363[/C][/ROW]
[ROW][C]45[/C][C]322.7[/C][C]301.74100473613[/C][C]20.9589952638701[/C][/ROW]
[ROW][C]46[/C][C]315[/C][C]300.61600473613[/C][C]14.3839952638701[/C][/ROW]
[ROW][C]47[/C][C]320.2[/C][C]312.343186738836[/C][C]7.85681326116372[/C][/ROW]
[ROW][C]48[/C][C]329.5[/C][C]317.493186738836[/C][C]12.0068132611637[/C][/ROW]
[ROW][C]49[/C][C]360.6[/C][C]338.323667117727[/C][C]22.2763328822734[/C][/ROW]
[ROW][C]50[/C][C]382.2[/C][C]351.283667117727[/C][C]30.9163328822733[/C][/ROW]
[ROW][C]51[/C][C]435.4[/C][C]362.763667117727[/C][C]72.6363328822734[/C][/ROW]
[ROW][C]52[/C][C]464[/C][C]373.543667117727[/C][C]90.4563328822733[/C][/ROW]
[ROW][C]53[/C][C]468.8[/C][C]384.183667117727[/C][C]84.6163328822733[/C][/ROW]
[ROW][C]54[/C][C]403[/C][C]381.665412719892[/C][C]21.3345872801083[/C][/ROW]
[ROW][C]55[/C][C]351.6[/C][C]368.545412719892[/C][C]-16.9454127198917[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34181&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34181&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
1117.3103.47807848443813.8219215155616
2118.8116.4380784844382.36192151556155
3131.3127.9180784844383.38192151556156
4125.9138.698078484438-12.7980784844384
5133.1149.338078484438-16.2380784844384
6147146.8198240866040.180175913396473
7145.8133.69982408660412.1001759133965
8164.4140.68617726657623.7138227334236
9149.8134.3089952638715.4910047361299
10137.7133.183995263874.51600473612988
11151.7144.9111772665766.78882273342354
12156.8150.0611772665766.73882273342357
13180170.8916576454679.10834235453313
14180.4183.851657645467-3.45165764546684
15170.4195.331657645467-24.9316576454669
16191.6206.111657645467-14.5116576454668
17199.5216.751657645467-17.2516576454669
18218.2179.42467523680738.7753247631935
19217.5166.30467523680751.1953247631935
20205173.29102841677931.7089715832206
21194201.722574424899-7.72257442489851
22199.3200.597574424899-1.29757442489849
23219.3177.51602841677941.7839715832206
24211.1182.66602841677928.4339715832206
25215.2203.4965087956711.7034912043302
26240.2216.4565087956723.7434912043302
27242.2227.9365087956714.2634912043302
28240.7238.716508795671.98349120433017
29255.4249.356508795676.04349120433017
30253246.8382543978356.16174560216509
31218.2233.718254397835-15.5182543978349
32203.7240.704607577808-37.0046075778079
33205.6234.327425575101-28.7274255751015
34215.6233.202425575101-17.6024255751015
35188.5244.929607577808-56.4296075778079
36202.9250.079607577808-47.1796075778079
37214270.910087956698-56.9100879566983
38230.3283.870087956698-53.5700879566982
39230295.350087956698-65.3500879566983
40241306.130087956698-65.1300879566982
41259.6316.770087956698-57.1700879566982
42247.8314.251833558863-66.4518335588633
43270.3301.131833558863-30.8318335588633
44289.7308.118186738836-18.4181867388363
45322.7301.7410047361320.9589952638701
46315300.6160047361314.3839952638701
47320.2312.3431867388367.85681326116372
48329.5317.49318673883612.0068132611637
49360.6338.32366711772722.2763328822734
50382.2351.28366711772730.9163328822733
51435.4362.76366711772772.6363328822734
52464373.54366711772790.4563328822733
53468.8384.18366711772784.6163328822733
54403381.66541271989221.3345872801083
55351.6368.545412719892-16.9454127198917







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.008205572922670910.01641114584534180.99179442707733
180.001258065245107390.002516130490214780.998741934754893
190.0002039518896028170.0004079037792056350.999796048110397
200.0003191514012416330.0006383028024832650.999680848598758
218.98073635863037e-050.0001796147271726070.999910192636414
221.60132749334858e-053.20265498669716e-050.999983986725066
234.43136218305577e-068.86272436611155e-060.999995568637817
241.26634497153885e-062.53268994307771e-060.999998733655028
251.50711559121674e-063.01423118243349e-060.999998492884409
265.53320340787194e-071.10664068157439e-060.99999944667966
271.69610449071008e-073.39220898142015e-070.99999983038955
284.15426055304693e-088.30852110609385e-080.999999958457394
291.18401398353989e-082.36802796707978e-080.99999998815986
304.81639141793363e-089.63278283586727e-080.999999951836086
317.11959888556145e-050.0001423919777112290.999928804011144
320.002605939998181170.005211879996362350.997394060001819
330.005136471148559010.01027294229711800.994863528851441
340.007754081789460810.01550816357892160.99224591821054
350.02122382700062650.04244765400125290.978776172999374
360.02391270809305710.04782541618611410.976087291906943
370.01625177287729520.03250354575459040.983748227122705
380.007983138155815330.01596627631163070.992016861844185

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.00820557292267091 & 0.0164111458453418 & 0.99179442707733 \tabularnewline
18 & 0.00125806524510739 & 0.00251613049021478 & 0.998741934754893 \tabularnewline
19 & 0.000203951889602817 & 0.000407903779205635 & 0.999796048110397 \tabularnewline
20 & 0.000319151401241633 & 0.000638302802483265 & 0.999680848598758 \tabularnewline
21 & 8.98073635863037e-05 & 0.000179614727172607 & 0.999910192636414 \tabularnewline
22 & 1.60132749334858e-05 & 3.20265498669716e-05 & 0.999983986725066 \tabularnewline
23 & 4.43136218305577e-06 & 8.86272436611155e-06 & 0.999995568637817 \tabularnewline
24 & 1.26634497153885e-06 & 2.53268994307771e-06 & 0.999998733655028 \tabularnewline
25 & 1.50711559121674e-06 & 3.01423118243349e-06 & 0.999998492884409 \tabularnewline
26 & 5.53320340787194e-07 & 1.10664068157439e-06 & 0.99999944667966 \tabularnewline
27 & 1.69610449071008e-07 & 3.39220898142015e-07 & 0.99999983038955 \tabularnewline
28 & 4.15426055304693e-08 & 8.30852110609385e-08 & 0.999999958457394 \tabularnewline
29 & 1.18401398353989e-08 & 2.36802796707978e-08 & 0.99999998815986 \tabularnewline
30 & 4.81639141793363e-08 & 9.63278283586727e-08 & 0.999999951836086 \tabularnewline
31 & 7.11959888556145e-05 & 0.000142391977711229 & 0.999928804011144 \tabularnewline
32 & 0.00260593999818117 & 0.00521187999636235 & 0.997394060001819 \tabularnewline
33 & 0.00513647114855901 & 0.0102729422971180 & 0.994863528851441 \tabularnewline
34 & 0.00775408178946081 & 0.0155081635789216 & 0.99224591821054 \tabularnewline
35 & 0.0212238270006265 & 0.0424476540012529 & 0.978776172999374 \tabularnewline
36 & 0.0239127080930571 & 0.0478254161861141 & 0.976087291906943 \tabularnewline
37 & 0.0162517728772952 & 0.0325035457545904 & 0.983748227122705 \tabularnewline
38 & 0.00798313815581533 & 0.0159662763116307 & 0.992016861844185 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=34181&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.00820557292267091[/C][C]0.0164111458453418[/C][C]0.99179442707733[/C][/ROW]
[ROW][C]18[/C][C]0.00125806524510739[/C][C]0.00251613049021478[/C][C]0.998741934754893[/C][/ROW]
[ROW][C]19[/C][C]0.000203951889602817[/C][C]0.000407903779205635[/C][C]0.999796048110397[/C][/ROW]
[ROW][C]20[/C][C]0.000319151401241633[/C][C]0.000638302802483265[/C][C]0.999680848598758[/C][/ROW]
[ROW][C]21[/C][C]8.98073635863037e-05[/C][C]0.000179614727172607[/C][C]0.999910192636414[/C][/ROW]
[ROW][C]22[/C][C]1.60132749334858e-05[/C][C]3.20265498669716e-05[/C][C]0.999983986725066[/C][/ROW]
[ROW][C]23[/C][C]4.43136218305577e-06[/C][C]8.86272436611155e-06[/C][C]0.999995568637817[/C][/ROW]
[ROW][C]24[/C][C]1.26634497153885e-06[/C][C]2.53268994307771e-06[/C][C]0.999998733655028[/C][/ROW]
[ROW][C]25[/C][C]1.50711559121674e-06[/C][C]3.01423118243349e-06[/C][C]0.999998492884409[/C][/ROW]
[ROW][C]26[/C][C]5.53320340787194e-07[/C][C]1.10664068157439e-06[/C][C]0.99999944667966[/C][/ROW]
[ROW][C]27[/C][C]1.69610449071008e-07[/C][C]3.39220898142015e-07[/C][C]0.99999983038955[/C][/ROW]
[ROW][C]28[/C][C]4.15426055304693e-08[/C][C]8.30852110609385e-08[/C][C]0.999999958457394[/C][/ROW]
[ROW][C]29[/C][C]1.18401398353989e-08[/C][C]2.36802796707978e-08[/C][C]0.99999998815986[/C][/ROW]
[ROW][C]30[/C][C]4.81639141793363e-08[/C][C]9.63278283586727e-08[/C][C]0.999999951836086[/C][/ROW]
[ROW][C]31[/C][C]7.11959888556145e-05[/C][C]0.000142391977711229[/C][C]0.999928804011144[/C][/ROW]
[ROW][C]32[/C][C]0.00260593999818117[/C][C]0.00521187999636235[/C][C]0.997394060001819[/C][/ROW]
[ROW][C]33[/C][C]0.00513647114855901[/C][C]0.0102729422971180[/C][C]0.994863528851441[/C][/ROW]
[ROW][C]34[/C][C]0.00775408178946081[/C][C]0.0155081635789216[/C][C]0.99224591821054[/C][/ROW]
[ROW][C]35[/C][C]0.0212238270006265[/C][C]0.0424476540012529[/C][C]0.978776172999374[/C][/ROW]
[ROW][C]36[/C][C]0.0239127080930571[/C][C]0.0478254161861141[/C][C]0.976087291906943[/C][/ROW]
[ROW][C]37[/C][C]0.0162517728772952[/C][C]0.0325035457545904[/C][C]0.983748227122705[/C][/ROW]
[ROW][C]38[/C][C]0.00798313815581533[/C][C]0.0159662763116307[/C][C]0.992016861844185[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=34181&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34181&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.008205572922670910.01641114584534180.99179442707733
180.001258065245107390.002516130490214780.998741934754893
190.0002039518896028170.0004079037792056350.999796048110397
200.0003191514012416330.0006383028024832650.999680848598758
218.98073635863037e-050.0001796147271726070.999910192636414
221.60132749334858e-053.20265498669716e-050.999983986725066
234.43136218305577e-068.86272436611155e-060.999995568637817
241.26634497153885e-062.53268994307771e-060.999998733655028
251.50711559121674e-063.01423118243349e-060.999998492884409
265.53320340787194e-071.10664068157439e-060.99999944667966
271.69610449071008e-073.39220898142015e-070.99999983038955
284.15426055304693e-088.30852110609385e-080.999999958457394
291.18401398353989e-082.36802796707978e-080.99999998815986
304.81639141793363e-089.63278283586727e-080.999999951836086
317.11959888556145e-050.0001423919777112290.999928804011144
320.002605939998181170.005211879996362350.997394060001819
330.005136471148559010.01027294229711800.994863528851441
340.007754081789460810.01550816357892160.99224591821054
350.02122382700062650.04244765400125290.978776172999374
360.02391270809305710.04782541618611410.976087291906943
370.01625177287729520.03250354575459040.983748227122705
380.007983138155815330.01596627631163070.992016861844185







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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=34181&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 level150.681818181818182NOK
5% type I error level221NOK
10% type I error level221NOK



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