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, 20 Nov 2009 08:09:12 -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/20/t1258729828bpmpma195zxr10h.htm/, Retrieved Thu, 25 Apr 2024 13:54:19 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58252, Retrieved Thu, 25 Apr 2024 13:54:19 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact134
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]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:06:21] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [] [2009-11-20 15:09:12] [54f12ba6dfaf5b88c7c2745223d9c32f] [Current]
Feedback Forum

Post a new message
Dataseries X:
20366	0
22782	0
19169	0
13807	0
29743	0
25591	0
29096	0
26482	0
22405	0
27044	0
17970	0
18730	0
19684	0
19785	0
18479	0
10698	0
31956	0
29506	0
34506	0
27165	0
26736	0
23691	0
18157	0
17328	0
18205	0
20995	0
17382	0
9367	0
31124	0
26551	0
30651	0
25859	0
25100	0
25778	0
20418	0
18688	0
20424	0
24776	0
19814	0
12738	0
31566	0
30111	0
30019	0
31934	1
25826	1
26835	1
20205	1
17789	1
20520	1
22518	1
15572	1
11509	1
25447	1
24090	1
27786	1
26195	1
20516	1
22759	1
19028	1
16971	1
20036	1




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58252&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
Y[t] = + 18131.4750853242 -1137.48634812287X[t] + 1926.67861205915M1[t] + 4104.92480091012M2[t] + 10.6825938566490M3[t] -6454.95961319682M4[t] + 11882.1981797497M5[t] + 9078.55597269624M6[t] + 12314.1137656428M7[t] + 9650.76882821388M8[t] + 6234.12662116041M9[t] + 7332.68441410694M10[t] + 1260.64220705347M11[t] + 6.2422070534699t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  18131.4750853242 -1137.48634812287X[t] +  1926.67861205915M1[t] +  4104.92480091012M2[t] +  10.6825938566490M3[t] -6454.95961319682M4[t] +  11882.1981797497M5[t] +  9078.55597269624M6[t] +  12314.1137656428M7[t] +  9650.76882821388M8[t] +  6234.12662116041M9[t] +  7332.68441410694M10[t] +  1260.64220705347M11[t] +  6.2422070534699t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58252&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  18131.4750853242 -1137.48634812287X[t] +  1926.67861205915M1[t] +  4104.92480091012M2[t] +  10.6825938566490M3[t] -6454.95961319682M4[t] +  11882.1981797497M5[t] +  9078.55597269624M6[t] +  12314.1137656428M7[t] +  9650.76882821388M8[t] +  6234.12662116041M9[t] +  7332.68441410694M10[t] +  1260.64220705347M11[t] +  6.2422070534699t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58252&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58252&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] = + 18131.4750853242 -1137.48634812287X[t] + 1926.67861205915M1[t] + 4104.92480091012M2[t] + 10.6825938566490M3[t] -6454.95961319682M4[t] + 11882.1981797497M5[t] + 9078.55597269624M6[t] + 12314.1137656428M7[t] + 9650.76882821388M8[t] + 6234.12662116041M9[t] + 7332.68441410694M10[t] + 1260.64220705347M11[t] + 6.2422070534699t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)18131.47508532421075.0870116.865100
X-1137.48634812287924.549304-1.23030.2247020.112351
M11926.678612059151202.8692031.60170.1159150.057957
M24104.924800910121262.0932153.25250.0021210.00106
M310.68259385664901260.5847860.00850.9932740.496637
M4-6454.959613196821259.523129-5.12496e-063e-06
M511882.19817974971258.9093749.438500
M69078.555972696241258.7441767.212400
M712314.11376564281259.0277119.780700
M89650.768828213881257.1848217.676500
M96234.126621160411255.611174.9659e-065e-06
M107332.684414106941254.4859255.845200
M111260.642207053471253.8102931.00540.3198290.159915
t6.242207053469923.7675160.26260.7939790.396989

\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) & 18131.4750853242 & 1075.08701 & 16.8651 & 0 & 0 \tabularnewline
X & -1137.48634812287 & 924.549304 & -1.2303 & 0.224702 & 0.112351 \tabularnewline
M1 & 1926.67861205915 & 1202.869203 & 1.6017 & 0.115915 & 0.057957 \tabularnewline
M2 & 4104.92480091012 & 1262.093215 & 3.2525 & 0.002121 & 0.00106 \tabularnewline
M3 & 10.6825938566490 & 1260.584786 & 0.0085 & 0.993274 & 0.496637 \tabularnewline
M4 & -6454.95961319682 & 1259.523129 & -5.1249 & 6e-06 & 3e-06 \tabularnewline
M5 & 11882.1981797497 & 1258.909374 & 9.4385 & 0 & 0 \tabularnewline
M6 & 9078.55597269624 & 1258.744176 & 7.2124 & 0 & 0 \tabularnewline
M7 & 12314.1137656428 & 1259.027711 & 9.7807 & 0 & 0 \tabularnewline
M8 & 9650.76882821388 & 1257.184821 & 7.6765 & 0 & 0 \tabularnewline
M9 & 6234.12662116041 & 1255.61117 & 4.965 & 9e-06 & 5e-06 \tabularnewline
M10 & 7332.68441410694 & 1254.485925 & 5.8452 & 0 & 0 \tabularnewline
M11 & 1260.64220705347 & 1253.810293 & 1.0054 & 0.319829 & 0.159915 \tabularnewline
t & 6.2422070534699 & 23.767516 & 0.2626 & 0.793979 & 0.396989 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58252&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]18131.4750853242[/C][C]1075.08701[/C][C]16.8651[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-1137.48634812287[/C][C]924.549304[/C][C]-1.2303[/C][C]0.224702[/C][C]0.112351[/C][/ROW]
[ROW][C]M1[/C][C]1926.67861205915[/C][C]1202.869203[/C][C]1.6017[/C][C]0.115915[/C][C]0.057957[/C][/ROW]
[ROW][C]M2[/C][C]4104.92480091012[/C][C]1262.093215[/C][C]3.2525[/C][C]0.002121[/C][C]0.00106[/C][/ROW]
[ROW][C]M3[/C][C]10.6825938566490[/C][C]1260.584786[/C][C]0.0085[/C][C]0.993274[/C][C]0.496637[/C][/ROW]
[ROW][C]M4[/C][C]-6454.95961319682[/C][C]1259.523129[/C][C]-5.1249[/C][C]6e-06[/C][C]3e-06[/C][/ROW]
[ROW][C]M5[/C][C]11882.1981797497[/C][C]1258.909374[/C][C]9.4385[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M6[/C][C]9078.55597269624[/C][C]1258.744176[/C][C]7.2124[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M7[/C][C]12314.1137656428[/C][C]1259.027711[/C][C]9.7807[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]9650.76882821388[/C][C]1257.184821[/C][C]7.6765[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M9[/C][C]6234.12662116041[/C][C]1255.61117[/C][C]4.965[/C][C]9e-06[/C][C]5e-06[/C][/ROW]
[ROW][C]M10[/C][C]7332.68441410694[/C][C]1254.485925[/C][C]5.8452[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M11[/C][C]1260.64220705347[/C][C]1253.810293[/C][C]1.0054[/C][C]0.319829[/C][C]0.159915[/C][/ROW]
[ROW][C]t[/C][C]6.2422070534699[/C][C]23.767516[/C][C]0.2626[/C][C]0.793979[/C][C]0.396989[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58252&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58252&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)18131.47508532421075.0870116.865100
X-1137.48634812287924.549304-1.23030.2247020.112351
M11926.678612059151202.8692031.60170.1159150.057957
M24104.924800910121262.0932153.25250.0021210.00106
M310.68259385664901260.5847860.00850.9932740.496637
M4-6454.959613196821259.523129-5.12496e-063e-06
M511882.19817974971258.9093749.438500
M69078.555972696241258.7441767.212400
M712314.11376564281259.0277119.780700
M89650.768828213881257.1848217.676500
M96234.126621160411255.611174.9659e-065e-06
M107332.684414106941254.4859255.845200
M111260.642207053471253.8102931.00540.3198290.159915
t6.242207053469923.7675160.26260.7939790.396989







Multiple Linear Regression - Regression Statistics
Multiple R0.951798518642867
R-squared0.905920420090756
Adjusted R-squared0.879898408626498
F-TEST (value)34.8136200514336
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1982.09192304184
Sum Squared Residuals184648354.395222

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.951798518642867 \tabularnewline
R-squared & 0.905920420090756 \tabularnewline
Adjusted R-squared & 0.879898408626498 \tabularnewline
F-TEST (value) & 34.8136200514336 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1982.09192304184 \tabularnewline
Sum Squared Residuals & 184648354.395222 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58252&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.951798518642867[/C][/ROW]
[ROW][C]R-squared[/C][C]0.905920420090756[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.879898408626498[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]34.8136200514336[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/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]1982.09192304184[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]184648354.395222[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58252&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58252&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.951798518642867
R-squared0.905920420090756
Adjusted R-squared0.879898408626498
F-TEST (value)34.8136200514336
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1982.09192304184
Sum Squared Residuals184648354.395222







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
12036620064.3959044369301.604095563121
22278222248.8843003413533.115699658699
31916918160.88430034131008.1156996587
41380711701.48430034132105.51569965871
52974330044.8843003413-301.884300341295
62559127247.4843003413-1656.48430034130
72909630489.2843003413-1393.28430034130
82648227832.1815699659-1350.18156996586
92240524421.7815699659-2016.78156996586
102704425526.58156996591517.41843003412
111797019460.7815699659-1490.78156996587
121873018206.3815699659523.61843003413
131968420139.3023890785-455.302389078494
141978522323.7907849829-2538.79078498293
151847918235.7907849829243.209215017066
161069811776.3907849829-1078.39078498294
173195630119.79078498291836.20921501707
182950627322.39078498292183.60921501707
193450630564.19078498293941.80921501707
202716527907.0880546075-742.088054607511
212673624496.68805460752239.31194539249
222369125601.4880546075-1910.48805460751
231815719535.6880546075-1378.68805460751
241732818281.2880546075-953.288054607507
251820520214.2088737201-2009.20887372013
262099522398.6972696246-1403.69726962457
271738218310.6972696246-928.697269624572
28936711851.2972696246-2484.29726962457
293112430194.6972696246929.302730375427
302655127397.2972696246-846.297269624574
313065130639.097269624611.9027303754272
322585927981.9945392491-2122.99453924915
332510024571.5945392491528.405460750851
342577825676.3945392491101.605460750853
352041819610.5945392491807.405460750851
361868818356.1945392491331.805460750854
372042420289.1153583618134.884641638228
382477622473.60375426622302.39624573379
391981418385.60375426621428.39624573379
401273811926.2037542662811.796245733788
413156630269.60375426621296.39624573379
423011127472.20375426622638.79624573379
433001930714.0037542662-695.003754266211
443193426919.41467576795014.58532423208
452582623509.01467576792316.98532423208
462683524613.81467576792221.18532423208
472020518548.01467576791656.98532423208
481778917293.6146757679495.385324232083
492052019226.53549488051293.46450511946
502251821411.0238907851106.97610921502
511557217323.0238907850-1751.02389078498
521150910863.6238907850645.376109215016
532544729207.023890785-3760.02389078498
542409026409.623890785-2319.62389078498
552778629651.423890785-1865.42389078498
562619526994.3211604096-799.32116040956
572051623583.9211604096-3067.92116040956
582275924688.7211604096-1929.72116040955
591902818622.9211604096405.078839590442
601697117368.5211604096-397.521160409556
612003619301.4419795222734.558020477818

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 20366 & 20064.3959044369 & 301.604095563121 \tabularnewline
2 & 22782 & 22248.8843003413 & 533.115699658699 \tabularnewline
3 & 19169 & 18160.8843003413 & 1008.1156996587 \tabularnewline
4 & 13807 & 11701.4843003413 & 2105.51569965871 \tabularnewline
5 & 29743 & 30044.8843003413 & -301.884300341295 \tabularnewline
6 & 25591 & 27247.4843003413 & -1656.48430034130 \tabularnewline
7 & 29096 & 30489.2843003413 & -1393.28430034130 \tabularnewline
8 & 26482 & 27832.1815699659 & -1350.18156996586 \tabularnewline
9 & 22405 & 24421.7815699659 & -2016.78156996586 \tabularnewline
10 & 27044 & 25526.5815699659 & 1517.41843003412 \tabularnewline
11 & 17970 & 19460.7815699659 & -1490.78156996587 \tabularnewline
12 & 18730 & 18206.3815699659 & 523.61843003413 \tabularnewline
13 & 19684 & 20139.3023890785 & -455.302389078494 \tabularnewline
14 & 19785 & 22323.7907849829 & -2538.79078498293 \tabularnewline
15 & 18479 & 18235.7907849829 & 243.209215017066 \tabularnewline
16 & 10698 & 11776.3907849829 & -1078.39078498294 \tabularnewline
17 & 31956 & 30119.7907849829 & 1836.20921501707 \tabularnewline
18 & 29506 & 27322.3907849829 & 2183.60921501707 \tabularnewline
19 & 34506 & 30564.1907849829 & 3941.80921501707 \tabularnewline
20 & 27165 & 27907.0880546075 & -742.088054607511 \tabularnewline
21 & 26736 & 24496.6880546075 & 2239.31194539249 \tabularnewline
22 & 23691 & 25601.4880546075 & -1910.48805460751 \tabularnewline
23 & 18157 & 19535.6880546075 & -1378.68805460751 \tabularnewline
24 & 17328 & 18281.2880546075 & -953.288054607507 \tabularnewline
25 & 18205 & 20214.2088737201 & -2009.20887372013 \tabularnewline
26 & 20995 & 22398.6972696246 & -1403.69726962457 \tabularnewline
27 & 17382 & 18310.6972696246 & -928.697269624572 \tabularnewline
28 & 9367 & 11851.2972696246 & -2484.29726962457 \tabularnewline
29 & 31124 & 30194.6972696246 & 929.302730375427 \tabularnewline
30 & 26551 & 27397.2972696246 & -846.297269624574 \tabularnewline
31 & 30651 & 30639.0972696246 & 11.9027303754272 \tabularnewline
32 & 25859 & 27981.9945392491 & -2122.99453924915 \tabularnewline
33 & 25100 & 24571.5945392491 & 528.405460750851 \tabularnewline
34 & 25778 & 25676.3945392491 & 101.605460750853 \tabularnewline
35 & 20418 & 19610.5945392491 & 807.405460750851 \tabularnewline
36 & 18688 & 18356.1945392491 & 331.805460750854 \tabularnewline
37 & 20424 & 20289.1153583618 & 134.884641638228 \tabularnewline
38 & 24776 & 22473.6037542662 & 2302.39624573379 \tabularnewline
39 & 19814 & 18385.6037542662 & 1428.39624573379 \tabularnewline
40 & 12738 & 11926.2037542662 & 811.796245733788 \tabularnewline
41 & 31566 & 30269.6037542662 & 1296.39624573379 \tabularnewline
42 & 30111 & 27472.2037542662 & 2638.79624573379 \tabularnewline
43 & 30019 & 30714.0037542662 & -695.003754266211 \tabularnewline
44 & 31934 & 26919.4146757679 & 5014.58532423208 \tabularnewline
45 & 25826 & 23509.0146757679 & 2316.98532423208 \tabularnewline
46 & 26835 & 24613.8146757679 & 2221.18532423208 \tabularnewline
47 & 20205 & 18548.0146757679 & 1656.98532423208 \tabularnewline
48 & 17789 & 17293.6146757679 & 495.385324232083 \tabularnewline
49 & 20520 & 19226.5354948805 & 1293.46450511946 \tabularnewline
50 & 22518 & 21411.023890785 & 1106.97610921502 \tabularnewline
51 & 15572 & 17323.0238907850 & -1751.02389078498 \tabularnewline
52 & 11509 & 10863.6238907850 & 645.376109215016 \tabularnewline
53 & 25447 & 29207.023890785 & -3760.02389078498 \tabularnewline
54 & 24090 & 26409.623890785 & -2319.62389078498 \tabularnewline
55 & 27786 & 29651.423890785 & -1865.42389078498 \tabularnewline
56 & 26195 & 26994.3211604096 & -799.32116040956 \tabularnewline
57 & 20516 & 23583.9211604096 & -3067.92116040956 \tabularnewline
58 & 22759 & 24688.7211604096 & -1929.72116040955 \tabularnewline
59 & 19028 & 18622.9211604096 & 405.078839590442 \tabularnewline
60 & 16971 & 17368.5211604096 & -397.521160409556 \tabularnewline
61 & 20036 & 19301.4419795222 & 734.558020477818 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58252&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]20366[/C][C]20064.3959044369[/C][C]301.604095563121[/C][/ROW]
[ROW][C]2[/C][C]22782[/C][C]22248.8843003413[/C][C]533.115699658699[/C][/ROW]
[ROW][C]3[/C][C]19169[/C][C]18160.8843003413[/C][C]1008.1156996587[/C][/ROW]
[ROW][C]4[/C][C]13807[/C][C]11701.4843003413[/C][C]2105.51569965871[/C][/ROW]
[ROW][C]5[/C][C]29743[/C][C]30044.8843003413[/C][C]-301.884300341295[/C][/ROW]
[ROW][C]6[/C][C]25591[/C][C]27247.4843003413[/C][C]-1656.48430034130[/C][/ROW]
[ROW][C]7[/C][C]29096[/C][C]30489.2843003413[/C][C]-1393.28430034130[/C][/ROW]
[ROW][C]8[/C][C]26482[/C][C]27832.1815699659[/C][C]-1350.18156996586[/C][/ROW]
[ROW][C]9[/C][C]22405[/C][C]24421.7815699659[/C][C]-2016.78156996586[/C][/ROW]
[ROW][C]10[/C][C]27044[/C][C]25526.5815699659[/C][C]1517.41843003412[/C][/ROW]
[ROW][C]11[/C][C]17970[/C][C]19460.7815699659[/C][C]-1490.78156996587[/C][/ROW]
[ROW][C]12[/C][C]18730[/C][C]18206.3815699659[/C][C]523.61843003413[/C][/ROW]
[ROW][C]13[/C][C]19684[/C][C]20139.3023890785[/C][C]-455.302389078494[/C][/ROW]
[ROW][C]14[/C][C]19785[/C][C]22323.7907849829[/C][C]-2538.79078498293[/C][/ROW]
[ROW][C]15[/C][C]18479[/C][C]18235.7907849829[/C][C]243.209215017066[/C][/ROW]
[ROW][C]16[/C][C]10698[/C][C]11776.3907849829[/C][C]-1078.39078498294[/C][/ROW]
[ROW][C]17[/C][C]31956[/C][C]30119.7907849829[/C][C]1836.20921501707[/C][/ROW]
[ROW][C]18[/C][C]29506[/C][C]27322.3907849829[/C][C]2183.60921501707[/C][/ROW]
[ROW][C]19[/C][C]34506[/C][C]30564.1907849829[/C][C]3941.80921501707[/C][/ROW]
[ROW][C]20[/C][C]27165[/C][C]27907.0880546075[/C][C]-742.088054607511[/C][/ROW]
[ROW][C]21[/C][C]26736[/C][C]24496.6880546075[/C][C]2239.31194539249[/C][/ROW]
[ROW][C]22[/C][C]23691[/C][C]25601.4880546075[/C][C]-1910.48805460751[/C][/ROW]
[ROW][C]23[/C][C]18157[/C][C]19535.6880546075[/C][C]-1378.68805460751[/C][/ROW]
[ROW][C]24[/C][C]17328[/C][C]18281.2880546075[/C][C]-953.288054607507[/C][/ROW]
[ROW][C]25[/C][C]18205[/C][C]20214.2088737201[/C][C]-2009.20887372013[/C][/ROW]
[ROW][C]26[/C][C]20995[/C][C]22398.6972696246[/C][C]-1403.69726962457[/C][/ROW]
[ROW][C]27[/C][C]17382[/C][C]18310.6972696246[/C][C]-928.697269624572[/C][/ROW]
[ROW][C]28[/C][C]9367[/C][C]11851.2972696246[/C][C]-2484.29726962457[/C][/ROW]
[ROW][C]29[/C][C]31124[/C][C]30194.6972696246[/C][C]929.302730375427[/C][/ROW]
[ROW][C]30[/C][C]26551[/C][C]27397.2972696246[/C][C]-846.297269624574[/C][/ROW]
[ROW][C]31[/C][C]30651[/C][C]30639.0972696246[/C][C]11.9027303754272[/C][/ROW]
[ROW][C]32[/C][C]25859[/C][C]27981.9945392491[/C][C]-2122.99453924915[/C][/ROW]
[ROW][C]33[/C][C]25100[/C][C]24571.5945392491[/C][C]528.405460750851[/C][/ROW]
[ROW][C]34[/C][C]25778[/C][C]25676.3945392491[/C][C]101.605460750853[/C][/ROW]
[ROW][C]35[/C][C]20418[/C][C]19610.5945392491[/C][C]807.405460750851[/C][/ROW]
[ROW][C]36[/C][C]18688[/C][C]18356.1945392491[/C][C]331.805460750854[/C][/ROW]
[ROW][C]37[/C][C]20424[/C][C]20289.1153583618[/C][C]134.884641638228[/C][/ROW]
[ROW][C]38[/C][C]24776[/C][C]22473.6037542662[/C][C]2302.39624573379[/C][/ROW]
[ROW][C]39[/C][C]19814[/C][C]18385.6037542662[/C][C]1428.39624573379[/C][/ROW]
[ROW][C]40[/C][C]12738[/C][C]11926.2037542662[/C][C]811.796245733788[/C][/ROW]
[ROW][C]41[/C][C]31566[/C][C]30269.6037542662[/C][C]1296.39624573379[/C][/ROW]
[ROW][C]42[/C][C]30111[/C][C]27472.2037542662[/C][C]2638.79624573379[/C][/ROW]
[ROW][C]43[/C][C]30019[/C][C]30714.0037542662[/C][C]-695.003754266211[/C][/ROW]
[ROW][C]44[/C][C]31934[/C][C]26919.4146757679[/C][C]5014.58532423208[/C][/ROW]
[ROW][C]45[/C][C]25826[/C][C]23509.0146757679[/C][C]2316.98532423208[/C][/ROW]
[ROW][C]46[/C][C]26835[/C][C]24613.8146757679[/C][C]2221.18532423208[/C][/ROW]
[ROW][C]47[/C][C]20205[/C][C]18548.0146757679[/C][C]1656.98532423208[/C][/ROW]
[ROW][C]48[/C][C]17789[/C][C]17293.6146757679[/C][C]495.385324232083[/C][/ROW]
[ROW][C]49[/C][C]20520[/C][C]19226.5354948805[/C][C]1293.46450511946[/C][/ROW]
[ROW][C]50[/C][C]22518[/C][C]21411.023890785[/C][C]1106.97610921502[/C][/ROW]
[ROW][C]51[/C][C]15572[/C][C]17323.0238907850[/C][C]-1751.02389078498[/C][/ROW]
[ROW][C]52[/C][C]11509[/C][C]10863.6238907850[/C][C]645.376109215016[/C][/ROW]
[ROW][C]53[/C][C]25447[/C][C]29207.023890785[/C][C]-3760.02389078498[/C][/ROW]
[ROW][C]54[/C][C]24090[/C][C]26409.623890785[/C][C]-2319.62389078498[/C][/ROW]
[ROW][C]55[/C][C]27786[/C][C]29651.423890785[/C][C]-1865.42389078498[/C][/ROW]
[ROW][C]56[/C][C]26195[/C][C]26994.3211604096[/C][C]-799.32116040956[/C][/ROW]
[ROW][C]57[/C][C]20516[/C][C]23583.9211604096[/C][C]-3067.92116040956[/C][/ROW]
[ROW][C]58[/C][C]22759[/C][C]24688.7211604096[/C][C]-1929.72116040955[/C][/ROW]
[ROW][C]59[/C][C]19028[/C][C]18622.9211604096[/C][C]405.078839590442[/C][/ROW]
[ROW][C]60[/C][C]16971[/C][C]17368.5211604096[/C][C]-397.521160409556[/C][/ROW]
[ROW][C]61[/C][C]20036[/C][C]19301.4419795222[/C][C]734.558020477818[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58252&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58252&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
12036620064.3959044369301.604095563121
22278222248.8843003413533.115699658699
31916918160.88430034131008.1156996587
41380711701.48430034132105.51569965871
52974330044.8843003413-301.884300341295
62559127247.4843003413-1656.48430034130
72909630489.2843003413-1393.28430034130
82648227832.1815699659-1350.18156996586
92240524421.7815699659-2016.78156996586
102704425526.58156996591517.41843003412
111797019460.7815699659-1490.78156996587
121873018206.3815699659523.61843003413
131968420139.3023890785-455.302389078494
141978522323.7907849829-2538.79078498293
151847918235.7907849829243.209215017066
161069811776.3907849829-1078.39078498294
173195630119.79078498291836.20921501707
182950627322.39078498292183.60921501707
193450630564.19078498293941.80921501707
202716527907.0880546075-742.088054607511
212673624496.68805460752239.31194539249
222369125601.4880546075-1910.48805460751
231815719535.6880546075-1378.68805460751
241732818281.2880546075-953.288054607507
251820520214.2088737201-2009.20887372013
262099522398.6972696246-1403.69726962457
271738218310.6972696246-928.697269624572
28936711851.2972696246-2484.29726962457
293112430194.6972696246929.302730375427
302655127397.2972696246-846.297269624574
313065130639.097269624611.9027303754272
322585927981.9945392491-2122.99453924915
332510024571.5945392491528.405460750851
342577825676.3945392491101.605460750853
352041819610.5945392491807.405460750851
361868818356.1945392491331.805460750854
372042420289.1153583618134.884641638228
382477622473.60375426622302.39624573379
391981418385.60375426621428.39624573379
401273811926.2037542662811.796245733788
413156630269.60375426621296.39624573379
423011127472.20375426622638.79624573379
433001930714.0037542662-695.003754266211
443193426919.41467576795014.58532423208
452582623509.01467576792316.98532423208
462683524613.81467576792221.18532423208
472020518548.01467576791656.98532423208
481778917293.6146757679495.385324232083
492052019226.53549488051293.46450511946
502251821411.0238907851106.97610921502
511557217323.0238907850-1751.02389078498
521150910863.6238907850645.376109215016
532544729207.023890785-3760.02389078498
542409026409.623890785-2319.62389078498
552778629651.423890785-1865.42389078498
562619526994.3211604096-799.32116040956
572051623583.9211604096-3067.92116040956
582275924688.7211604096-1929.72116040955
591902818622.9211604096405.078839590442
601697117368.5211604096-397.521160409556
612003619301.4419795222734.558020477818







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.4176822739767030.8353645479534050.582317726023297
180.5862681867139370.8274636265721250.413731813286063
190.7837502755231350.4324994489537310.216249724476865
200.6786234817987620.6427530364024770.321376518201239
210.6902514591503820.6194970816992370.309748540849618
220.7170308701155890.5659382597688220.282969129884411
230.6376211986682740.7247576026634520.362378801331726
240.5625367293084790.8749265413830410.437463270691521
250.5533514348983010.8932971302033990.446648565101699
260.5259906613247870.9480186773504270.474009338675213
270.4568830791992420.9137661583984830.543116920800758
280.5414365308694560.9171269382610880.458563469130544
290.4481269904237360.8962539808474720.551873009576264
300.400725640113970.801451280227940.59927435988603
310.3123365158970040.6246730317940080.687663484102996
320.4877821889723920.9755643779447830.512217811027608
330.4056418746521160.8112837493042310.594358125347884
340.3572928314352380.7145856628704770.642707168564762
350.3882899046243430.7765798092486850.611710095375657
360.3692890725826910.7385781451653820.63071092741731
370.5799423847712270.8401152304575450.420057615228773
380.592138360449140.8157232791017210.407861639550860
390.4857756690374730.9715513380749460.514224330962527
400.5162403679721910.9675192640556180.483759632027809
410.4319706040709290.8639412081418580.568029395929071
420.4557296987097300.9114593974194610.54427030129027
430.3291250110104740.6582500220209480.670874988989526
440.3600803724210160.7201607448420330.639919627578984

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.417682273976703 & 0.835364547953405 & 0.582317726023297 \tabularnewline
18 & 0.586268186713937 & 0.827463626572125 & 0.413731813286063 \tabularnewline
19 & 0.783750275523135 & 0.432499448953731 & 0.216249724476865 \tabularnewline
20 & 0.678623481798762 & 0.642753036402477 & 0.321376518201239 \tabularnewline
21 & 0.690251459150382 & 0.619497081699237 & 0.309748540849618 \tabularnewline
22 & 0.717030870115589 & 0.565938259768822 & 0.282969129884411 \tabularnewline
23 & 0.637621198668274 & 0.724757602663452 & 0.362378801331726 \tabularnewline
24 & 0.562536729308479 & 0.874926541383041 & 0.437463270691521 \tabularnewline
25 & 0.553351434898301 & 0.893297130203399 & 0.446648565101699 \tabularnewline
26 & 0.525990661324787 & 0.948018677350427 & 0.474009338675213 \tabularnewline
27 & 0.456883079199242 & 0.913766158398483 & 0.543116920800758 \tabularnewline
28 & 0.541436530869456 & 0.917126938261088 & 0.458563469130544 \tabularnewline
29 & 0.448126990423736 & 0.896253980847472 & 0.551873009576264 \tabularnewline
30 & 0.40072564011397 & 0.80145128022794 & 0.59927435988603 \tabularnewline
31 & 0.312336515897004 & 0.624673031794008 & 0.687663484102996 \tabularnewline
32 & 0.487782188972392 & 0.975564377944783 & 0.512217811027608 \tabularnewline
33 & 0.405641874652116 & 0.811283749304231 & 0.594358125347884 \tabularnewline
34 & 0.357292831435238 & 0.714585662870477 & 0.642707168564762 \tabularnewline
35 & 0.388289904624343 & 0.776579809248685 & 0.611710095375657 \tabularnewline
36 & 0.369289072582691 & 0.738578145165382 & 0.63071092741731 \tabularnewline
37 & 0.579942384771227 & 0.840115230457545 & 0.420057615228773 \tabularnewline
38 & 0.59213836044914 & 0.815723279101721 & 0.407861639550860 \tabularnewline
39 & 0.485775669037473 & 0.971551338074946 & 0.514224330962527 \tabularnewline
40 & 0.516240367972191 & 0.967519264055618 & 0.483759632027809 \tabularnewline
41 & 0.431970604070929 & 0.863941208141858 & 0.568029395929071 \tabularnewline
42 & 0.455729698709730 & 0.911459397419461 & 0.54427030129027 \tabularnewline
43 & 0.329125011010474 & 0.658250022020948 & 0.670874988989526 \tabularnewline
44 & 0.360080372421016 & 0.720160744842033 & 0.639919627578984 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58252&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.417682273976703[/C][C]0.835364547953405[/C][C]0.582317726023297[/C][/ROW]
[ROW][C]18[/C][C]0.586268186713937[/C][C]0.827463626572125[/C][C]0.413731813286063[/C][/ROW]
[ROW][C]19[/C][C]0.783750275523135[/C][C]0.432499448953731[/C][C]0.216249724476865[/C][/ROW]
[ROW][C]20[/C][C]0.678623481798762[/C][C]0.642753036402477[/C][C]0.321376518201239[/C][/ROW]
[ROW][C]21[/C][C]0.690251459150382[/C][C]0.619497081699237[/C][C]0.309748540849618[/C][/ROW]
[ROW][C]22[/C][C]0.717030870115589[/C][C]0.565938259768822[/C][C]0.282969129884411[/C][/ROW]
[ROW][C]23[/C][C]0.637621198668274[/C][C]0.724757602663452[/C][C]0.362378801331726[/C][/ROW]
[ROW][C]24[/C][C]0.562536729308479[/C][C]0.874926541383041[/C][C]0.437463270691521[/C][/ROW]
[ROW][C]25[/C][C]0.553351434898301[/C][C]0.893297130203399[/C][C]0.446648565101699[/C][/ROW]
[ROW][C]26[/C][C]0.525990661324787[/C][C]0.948018677350427[/C][C]0.474009338675213[/C][/ROW]
[ROW][C]27[/C][C]0.456883079199242[/C][C]0.913766158398483[/C][C]0.543116920800758[/C][/ROW]
[ROW][C]28[/C][C]0.541436530869456[/C][C]0.917126938261088[/C][C]0.458563469130544[/C][/ROW]
[ROW][C]29[/C][C]0.448126990423736[/C][C]0.896253980847472[/C][C]0.551873009576264[/C][/ROW]
[ROW][C]30[/C][C]0.40072564011397[/C][C]0.80145128022794[/C][C]0.59927435988603[/C][/ROW]
[ROW][C]31[/C][C]0.312336515897004[/C][C]0.624673031794008[/C][C]0.687663484102996[/C][/ROW]
[ROW][C]32[/C][C]0.487782188972392[/C][C]0.975564377944783[/C][C]0.512217811027608[/C][/ROW]
[ROW][C]33[/C][C]0.405641874652116[/C][C]0.811283749304231[/C][C]0.594358125347884[/C][/ROW]
[ROW][C]34[/C][C]0.357292831435238[/C][C]0.714585662870477[/C][C]0.642707168564762[/C][/ROW]
[ROW][C]35[/C][C]0.388289904624343[/C][C]0.776579809248685[/C][C]0.611710095375657[/C][/ROW]
[ROW][C]36[/C][C]0.369289072582691[/C][C]0.738578145165382[/C][C]0.63071092741731[/C][/ROW]
[ROW][C]37[/C][C]0.579942384771227[/C][C]0.840115230457545[/C][C]0.420057615228773[/C][/ROW]
[ROW][C]38[/C][C]0.59213836044914[/C][C]0.815723279101721[/C][C]0.407861639550860[/C][/ROW]
[ROW][C]39[/C][C]0.485775669037473[/C][C]0.971551338074946[/C][C]0.514224330962527[/C][/ROW]
[ROW][C]40[/C][C]0.516240367972191[/C][C]0.967519264055618[/C][C]0.483759632027809[/C][/ROW]
[ROW][C]41[/C][C]0.431970604070929[/C][C]0.863941208141858[/C][C]0.568029395929071[/C][/ROW]
[ROW][C]42[/C][C]0.455729698709730[/C][C]0.911459397419461[/C][C]0.54427030129027[/C][/ROW]
[ROW][C]43[/C][C]0.329125011010474[/C][C]0.658250022020948[/C][C]0.670874988989526[/C][/ROW]
[ROW][C]44[/C][C]0.360080372421016[/C][C]0.720160744842033[/C][C]0.639919627578984[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58252&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58252&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.4176822739767030.8353645479534050.582317726023297
180.5862681867139370.8274636265721250.413731813286063
190.7837502755231350.4324994489537310.216249724476865
200.6786234817987620.6427530364024770.321376518201239
210.6902514591503820.6194970816992370.309748540849618
220.7170308701155890.5659382597688220.282969129884411
230.6376211986682740.7247576026634520.362378801331726
240.5625367293084790.8749265413830410.437463270691521
250.5533514348983010.8932971302033990.446648565101699
260.5259906613247870.9480186773504270.474009338675213
270.4568830791992420.9137661583984830.543116920800758
280.5414365308694560.9171269382610880.458563469130544
290.4481269904237360.8962539808474720.551873009576264
300.400725640113970.801451280227940.59927435988603
310.3123365158970040.6246730317940080.687663484102996
320.4877821889723920.9755643779447830.512217811027608
330.4056418746521160.8112837493042310.594358125347884
340.3572928314352380.7145856628704770.642707168564762
350.3882899046243430.7765798092486850.611710095375657
360.3692890725826910.7385781451653820.63071092741731
370.5799423847712270.8401152304575450.420057615228773
380.592138360449140.8157232791017210.407861639550860
390.4857756690374730.9715513380749460.514224330962527
400.5162403679721910.9675192640556180.483759632027809
410.4319706040709290.8639412081418580.568029395929071
420.4557296987097300.9114593974194610.54427030129027
430.3291250110104740.6582500220209480.670874988989526
440.3600803724210160.7201607448420330.639919627578984







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

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