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, 25 Dec 2009 12:23:32 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Dec/25/t1261769088yrk1xlqpmanmd4n.htm/, Retrieved Sat, 04 May 2024 09:49:49 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=70727, Retrieved Sat, 04 May 2024 09:49:49 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact155
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:10:54] [b98453cac15ba1066b407e146608df68]
-   PD      [Multiple Regression] [Workshop 7: Multi...] [2009-12-25 19:23:32] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
20.7	7.8	21.3	22	23.7	25.6
20.4	7.8	20.7	21.3	22	23.7
20.3	7.8	20.4	20.7	21.3	22
20.4	7.5	20.3	20.4	20.7	21.3
19.8	7.5	20.4	20.3	20.4	20.7
19.5	7.1	19.8	20.4	20.3	20.4
23.1	7.5	19.5	19.8	20.4	20.3
23.5	7.5	23.1	19.5	19.8	20.4
23.5	7.6	23.5	23.1	19.5	19.8
22.9	7.7	23.5	23.5	23.1	19.5
21.9	7.7	22.9	23.5	23.5	23.1
21.5	7.9	21.9	22.9	23.5	23.5
20.5	8.1	21.5	21.9	22.9	23.5
20.2	8.2	20.5	21.5	21.9	22.9
19.4	8.2	20.2	20.5	21.5	21.9
19.2	8.2	19.4	20.2	20.5	21.5
18.8	7.9	19.2	19.4	20.2	20.5
18.8	7.3	18.8	19.2	19.4	20.2
22.6	6.9	18.8	18.8	19.2	19.4
23.3	6.6	22.6	18.8	18.8	19.2
23	6.7	23.3	22.6	18.8	18.8
21.4	6.9	23	23.3	22.6	18.8
19.9	7	21.4	23	23.3	22.6
18.8	7.1	19.9	21.4	23	23.3
18.6	7.2	18.8	19.9	21.4	23
18.4	7.1	18.6	18.8	19.9	21.4
18.6	6.9	18.4	18.6	18.8	19.9
19.9	7	18.6	18.4	18.6	18.8
19.2	6.8	19.9	18.6	18.4	18.6
18.4	6.4	19.2	19.9	18.6	18.4
21.1	6.7	18.4	19.2	19.9	18.6
20.5	6.6	21.1	18.4	19.2	19.9
19.1	6.4	20.5	21.1	18.4	19.2
18.1	6.3	19.1	20.5	21.1	18.4
17	6.2	18.1	19.1	20.5	21.1
17.1	6.5	17	18.1	19.1	20.5
17.4	6.8	17.1	17	18.1	19.1
16.8	6.8	17.4	17.1	17	18.1
15.3	6.4	16.8	17.4	17.1	17
14.3	6.1	15.3	16.8	17.4	17.1
13.4	5.8	14.3	15.3	16.8	17.4
15.3	6.1	13.4	14.3	15.3	16.8
22.1	7.2	15.3	13.4	14.3	15.3
23.7	7.3	22.1	15.3	13.4	14.3
22.2	6.9	23.7	22.1	15.3	13.4
19.5	6.1	22.2	23.7	22.1	15.3
16.6	5.8	19.5	22.2	23.7	22.1
17.3	6.2	16.6	19.5	22.2	23.7
19.8	7.1	17.3	16.6	19.5	22.2
21.2	7.7	19.8	17.3	16.6	19.5
21.5	7.9	21.2	19.8	17.3	16.6
20.6	7.7	21.5	21.2	19.8	17.3
19.1	7.4	20.6	21.5	21.2	19.8
19.6	7.5	19.1	20.6	21.5	21.2
23.5	8	19.6	19.1	20.6	21.5
24	8.1	23.5	19.6	19.1	20.6




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70727&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] = + 1.21788686486356 + 0.484134343472141X[t] + 1.47743594518220Y1[t] -1.00247950308246Y2[t] + 0.142867662547923Y3[t] + 0.160203862531591Y4[t] -0.889739069238092M1[t] -1.03979564822641M2[t] -0.877831720066912M3[t] -0.372343703812319M4[t] -1.29197609960059M5[t] + 0.190290825479914M6[t] + 3.04103217720423M7[t] -2.16551128616970M8[t] + 0.636778689366172M9[t] + 0.306992689379753M10[t] -0.656329660215681M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  1.21788686486356 +  0.484134343472141X[t] +  1.47743594518220Y1[t] -1.00247950308246Y2[t] +  0.142867662547923Y3[t] +  0.160203862531591Y4[t] -0.889739069238092M1[t] -1.03979564822641M2[t] -0.877831720066912M3[t] -0.372343703812319M4[t] -1.29197609960059M5[t] +  0.190290825479914M6[t] +  3.04103217720423M7[t] -2.16551128616970M8[t] +  0.636778689366172M9[t] +  0.306992689379753M10[t] -0.656329660215681M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70727&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  1.21788686486356 +  0.484134343472141X[t] +  1.47743594518220Y1[t] -1.00247950308246Y2[t] +  0.142867662547923Y3[t] +  0.160203862531591Y4[t] -0.889739069238092M1[t] -1.03979564822641M2[t] -0.877831720066912M3[t] -0.372343703812319M4[t] -1.29197609960059M5[t] +  0.190290825479914M6[t] +  3.04103217720423M7[t] -2.16551128616970M8[t] +  0.636778689366172M9[t] +  0.306992689379753M10[t] -0.656329660215681M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70727&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70727&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] = + 1.21788686486356 + 0.484134343472141X[t] + 1.47743594518220Y1[t] -1.00247950308246Y2[t] + 0.142867662547923Y3[t] + 0.160203862531591Y4[t] -0.889739069238092M1[t] -1.03979564822641M2[t] -0.877831720066912M3[t] -0.372343703812319M4[t] -1.29197609960059M5[t] + 0.190290825479914M6[t] + 3.04103217720423M7[t] -2.16551128616970M8[t] + 0.636778689366172M9[t] + 0.306992689379753M10[t] -0.656329660215681M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)1.217886864863561.0702391.1380.2620810.13104
X0.4841343434721410.2491591.94310.0592510.029625
Y11.477435945182200.1786768.268800
Y2-1.002479503082460.298226-3.36150.0017460.000873
Y30.1428676625479230.2945790.4850.6303970.315198
Y40.1602038625315910.1512341.05930.2959750.147988
M1-0.8897390692380920.416499-2.13620.0389920.019496
M2-1.039795648226410.43316-2.40050.0212430.010621
M3-0.8778317200669120.435959-2.01360.0509930.025496
M4-0.3723437038123190.439712-0.84680.4022790.201139
M5-1.291976099600590.430019-3.00450.0046310.002316
M60.1902908254799140.422820.45010.6551650.327582
M73.041032177204230.4818296.311400
M8-2.165511286169700.791093-2.73740.0092810.00464
M90.6367786893661720.7901350.80590.4251810.212591
M100.3069926893797530.6899570.44490.6588190.32941
M11-0.6563296602156810.439887-1.4920.1437340.071867

\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) & 1.21788686486356 & 1.070239 & 1.138 & 0.262081 & 0.13104 \tabularnewline
X & 0.484134343472141 & 0.249159 & 1.9431 & 0.059251 & 0.029625 \tabularnewline
Y1 & 1.47743594518220 & 0.178676 & 8.2688 & 0 & 0 \tabularnewline
Y2 & -1.00247950308246 & 0.298226 & -3.3615 & 0.001746 & 0.000873 \tabularnewline
Y3 & 0.142867662547923 & 0.294579 & 0.485 & 0.630397 & 0.315198 \tabularnewline
Y4 & 0.160203862531591 & 0.151234 & 1.0593 & 0.295975 & 0.147988 \tabularnewline
M1 & -0.889739069238092 & 0.416499 & -2.1362 & 0.038992 & 0.019496 \tabularnewline
M2 & -1.03979564822641 & 0.43316 & -2.4005 & 0.021243 & 0.010621 \tabularnewline
M3 & -0.877831720066912 & 0.435959 & -2.0136 & 0.050993 & 0.025496 \tabularnewline
M4 & -0.372343703812319 & 0.439712 & -0.8468 & 0.402279 & 0.201139 \tabularnewline
M5 & -1.29197609960059 & 0.430019 & -3.0045 & 0.004631 & 0.002316 \tabularnewline
M6 & 0.190290825479914 & 0.42282 & 0.4501 & 0.655165 & 0.327582 \tabularnewline
M7 & 3.04103217720423 & 0.481829 & 6.3114 & 0 & 0 \tabularnewline
M8 & -2.16551128616970 & 0.791093 & -2.7374 & 0.009281 & 0.00464 \tabularnewline
M9 & 0.636778689366172 & 0.790135 & 0.8059 & 0.425181 & 0.212591 \tabularnewline
M10 & 0.306992689379753 & 0.689957 & 0.4449 & 0.658819 & 0.32941 \tabularnewline
M11 & -0.656329660215681 & 0.439887 & -1.492 & 0.143734 & 0.071867 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70727&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]1.21788686486356[/C][C]1.070239[/C][C]1.138[/C][C]0.262081[/C][C]0.13104[/C][/ROW]
[ROW][C]X[/C][C]0.484134343472141[/C][C]0.249159[/C][C]1.9431[/C][C]0.059251[/C][C]0.029625[/C][/ROW]
[ROW][C]Y1[/C][C]1.47743594518220[/C][C]0.178676[/C][C]8.2688[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]-1.00247950308246[/C][C]0.298226[/C][C]-3.3615[/C][C]0.001746[/C][C]0.000873[/C][/ROW]
[ROW][C]Y3[/C][C]0.142867662547923[/C][C]0.294579[/C][C]0.485[/C][C]0.630397[/C][C]0.315198[/C][/ROW]
[ROW][C]Y4[/C][C]0.160203862531591[/C][C]0.151234[/C][C]1.0593[/C][C]0.295975[/C][C]0.147988[/C][/ROW]
[ROW][C]M1[/C][C]-0.889739069238092[/C][C]0.416499[/C][C]-2.1362[/C][C]0.038992[/C][C]0.019496[/C][/ROW]
[ROW][C]M2[/C][C]-1.03979564822641[/C][C]0.43316[/C][C]-2.4005[/C][C]0.021243[/C][C]0.010621[/C][/ROW]
[ROW][C]M3[/C][C]-0.877831720066912[/C][C]0.435959[/C][C]-2.0136[/C][C]0.050993[/C][C]0.025496[/C][/ROW]
[ROW][C]M4[/C][C]-0.372343703812319[/C][C]0.439712[/C][C]-0.8468[/C][C]0.402279[/C][C]0.201139[/C][/ROW]
[ROW][C]M5[/C][C]-1.29197609960059[/C][C]0.430019[/C][C]-3.0045[/C][C]0.004631[/C][C]0.002316[/C][/ROW]
[ROW][C]M6[/C][C]0.190290825479914[/C][C]0.42282[/C][C]0.4501[/C][C]0.655165[/C][C]0.327582[/C][/ROW]
[ROW][C]M7[/C][C]3.04103217720423[/C][C]0.481829[/C][C]6.3114[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]-2.16551128616970[/C][C]0.791093[/C][C]-2.7374[/C][C]0.009281[/C][C]0.00464[/C][/ROW]
[ROW][C]M9[/C][C]0.636778689366172[/C][C]0.790135[/C][C]0.8059[/C][C]0.425181[/C][C]0.212591[/C][/ROW]
[ROW][C]M10[/C][C]0.306992689379753[/C][C]0.689957[/C][C]0.4449[/C][C]0.658819[/C][C]0.32941[/C][/ROW]
[ROW][C]M11[/C][C]-0.656329660215681[/C][C]0.439887[/C][C]-1.492[/C][C]0.143734[/C][C]0.071867[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70727&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70727&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)1.217886864863561.0702391.1380.2620810.13104
X0.4841343434721410.2491591.94310.0592510.029625
Y11.477435945182200.1786768.268800
Y2-1.002479503082460.298226-3.36150.0017460.000873
Y30.1428676625479230.2945790.4850.6303970.315198
Y40.1602038625315910.1512341.05930.2959750.147988
M1-0.8897390692380920.416499-2.13620.0389920.019496
M2-1.039795648226410.43316-2.40050.0212430.010621
M3-0.8778317200669120.435959-2.01360.0509930.025496
M4-0.3723437038123190.439712-0.84680.4022790.201139
M5-1.291976099600590.430019-3.00450.0046310.002316
M60.1902908254799140.422820.45010.6551650.327582
M73.041032177204230.4818296.311400
M8-2.165511286169700.791093-2.73740.0092810.00464
M90.6367786893661720.7901350.80590.4251810.212591
M100.3069926893797530.6899570.44490.6588190.32941
M11-0.6563296602156810.439887-1.4920.1437340.071867







Multiple Linear Regression - Regression Statistics
Multiple R0.980441846539918
R-squared0.961266214446603
Adjusted R-squared0.945375430629825
F-TEST (value)60.4920578827372
F-TEST (DF numerator)16
F-TEST (DF denominator)39
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.5710872110191
Sum Squared Residuals12.7194835009934

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.980441846539918 \tabularnewline
R-squared & 0.961266214446603 \tabularnewline
Adjusted R-squared & 0.945375430629825 \tabularnewline
F-TEST (value) & 60.4920578827372 \tabularnewline
F-TEST (DF numerator) & 16 \tabularnewline
F-TEST (DF denominator) & 39 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.5710872110191 \tabularnewline
Sum Squared Residuals & 12.7194835009934 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70727&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.980441846539918[/C][/ROW]
[ROW][C]R-squared[/C][C]0.961266214446603[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.945375430629825[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]60.4920578827372[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]16[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]39[/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]0.5710872110191[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]12.7194835009934[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70727&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70727&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.980441846539918
R-squared0.961266214446603
Adjusted R-squared0.945375430629825
F-TEST (value)60.4920578827372
F-TEST (DF numerator)16
F-TEST (DF denominator)39
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.5710872110191
Sum Squared Residuals12.7194835009934







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
120.721.0064147224696-0.306414722469565
220.420.12436986338820.275630136611821
320.320.07223677975520.227763220244780
420.420.38762144807380.0123785519261583
519.819.57699798082870.223002019171304
619.519.8165537260885-0.316553726088509
723.123.01747211349810.0825278865018796
823.523.36074169242930.139258307570727
923.523.05451065300510.44548934699493
1022.922.83840871254590.0615912874540699
1121.921.62250576597410.277494234025931
1221.521.5637955965641-0.0637955965640818
1320.521.0966679235012-0.59666792350124
1420.219.67959065484400.520409345155962
1519.420.1834523749806-0.783452374980565
1619.219.6007862784536-0.400786278453571
1718.818.8393458317572-0.0393458317572162
1818.819.4782983845002-0.678298384500229
1922.622.37964117753380.220358822466189
2023.322.55292616528510.74707383471487
212322.56433108006980.435668919930205
2221.421.7293026307475-0.32930263074753
2319.919.46002209553610.43997790446389
2418.819.6218608822654-0.821860882265362
2518.618.38242554346160.217574456538409
2618.418.5205681206079-0.120568120607895
2718.618.09325366905290.506746330947098
2819.918.93834042801330.961659571986684
2919.219.5814376866351-0.381437686635085
3018.418.5291551186953-0.129155118695265
3121.121.2626924032918-0.162692403291790
3220.520.9070538175361-0.40705381753609
3319.119.7929238651351-0.692923865135126
3418.118.20538140825-0.105381408250001
351717.4665108147471-0.46651081474713
3617.117.3492436963004-0.249243696300431
3717.417.4880629079208-0.0880629079207592
3816.817.3636308708445-0.563630870844548
3915.315.9827981610512-0.682798161051174
4014.314.7872603433578-0.487260343357824
4113.413.7110115152001-0.311011515200116
4215.314.70088208439990.59911791560011
4322.121.41035760621870.68964239378135
4423.724.1052961897495-0.405296189749542
4522.222.38823440179-0.188234401790009
4619.519.12690724845650.373092751543461
4716.616.8509613237427-0.250961323742691
4817.316.16509982487011.13490017512987
4919.819.02642890264680.773571097353156
5021.221.3118404903153-0.111840490315340
5121.520.76825901516010.731740984839863
5220.620.6859915021014-0.0859915021014472
5319.118.59120698557890.508793014421113
5419.619.07511068631610.524889313683893
5523.524.3298366994576-0.829836699457628
562424.0739821350000-0.0739821349999634

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 20.7 & 21.0064147224696 & -0.306414722469565 \tabularnewline
2 & 20.4 & 20.1243698633882 & 0.275630136611821 \tabularnewline
3 & 20.3 & 20.0722367797552 & 0.227763220244780 \tabularnewline
4 & 20.4 & 20.3876214480738 & 0.0123785519261583 \tabularnewline
5 & 19.8 & 19.5769979808287 & 0.223002019171304 \tabularnewline
6 & 19.5 & 19.8165537260885 & -0.316553726088509 \tabularnewline
7 & 23.1 & 23.0174721134981 & 0.0825278865018796 \tabularnewline
8 & 23.5 & 23.3607416924293 & 0.139258307570727 \tabularnewline
9 & 23.5 & 23.0545106530051 & 0.44548934699493 \tabularnewline
10 & 22.9 & 22.8384087125459 & 0.0615912874540699 \tabularnewline
11 & 21.9 & 21.6225057659741 & 0.277494234025931 \tabularnewline
12 & 21.5 & 21.5637955965641 & -0.0637955965640818 \tabularnewline
13 & 20.5 & 21.0966679235012 & -0.59666792350124 \tabularnewline
14 & 20.2 & 19.6795906548440 & 0.520409345155962 \tabularnewline
15 & 19.4 & 20.1834523749806 & -0.783452374980565 \tabularnewline
16 & 19.2 & 19.6007862784536 & -0.400786278453571 \tabularnewline
17 & 18.8 & 18.8393458317572 & -0.0393458317572162 \tabularnewline
18 & 18.8 & 19.4782983845002 & -0.678298384500229 \tabularnewline
19 & 22.6 & 22.3796411775338 & 0.220358822466189 \tabularnewline
20 & 23.3 & 22.5529261652851 & 0.74707383471487 \tabularnewline
21 & 23 & 22.5643310800698 & 0.435668919930205 \tabularnewline
22 & 21.4 & 21.7293026307475 & -0.32930263074753 \tabularnewline
23 & 19.9 & 19.4600220955361 & 0.43997790446389 \tabularnewline
24 & 18.8 & 19.6218608822654 & -0.821860882265362 \tabularnewline
25 & 18.6 & 18.3824255434616 & 0.217574456538409 \tabularnewline
26 & 18.4 & 18.5205681206079 & -0.120568120607895 \tabularnewline
27 & 18.6 & 18.0932536690529 & 0.506746330947098 \tabularnewline
28 & 19.9 & 18.9383404280133 & 0.961659571986684 \tabularnewline
29 & 19.2 & 19.5814376866351 & -0.381437686635085 \tabularnewline
30 & 18.4 & 18.5291551186953 & -0.129155118695265 \tabularnewline
31 & 21.1 & 21.2626924032918 & -0.162692403291790 \tabularnewline
32 & 20.5 & 20.9070538175361 & -0.40705381753609 \tabularnewline
33 & 19.1 & 19.7929238651351 & -0.692923865135126 \tabularnewline
34 & 18.1 & 18.20538140825 & -0.105381408250001 \tabularnewline
35 & 17 & 17.4665108147471 & -0.46651081474713 \tabularnewline
36 & 17.1 & 17.3492436963004 & -0.249243696300431 \tabularnewline
37 & 17.4 & 17.4880629079208 & -0.0880629079207592 \tabularnewline
38 & 16.8 & 17.3636308708445 & -0.563630870844548 \tabularnewline
39 & 15.3 & 15.9827981610512 & -0.682798161051174 \tabularnewline
40 & 14.3 & 14.7872603433578 & -0.487260343357824 \tabularnewline
41 & 13.4 & 13.7110115152001 & -0.311011515200116 \tabularnewline
42 & 15.3 & 14.7008820843999 & 0.59911791560011 \tabularnewline
43 & 22.1 & 21.4103576062187 & 0.68964239378135 \tabularnewline
44 & 23.7 & 24.1052961897495 & -0.405296189749542 \tabularnewline
45 & 22.2 & 22.38823440179 & -0.188234401790009 \tabularnewline
46 & 19.5 & 19.1269072484565 & 0.373092751543461 \tabularnewline
47 & 16.6 & 16.8509613237427 & -0.250961323742691 \tabularnewline
48 & 17.3 & 16.1650998248701 & 1.13490017512987 \tabularnewline
49 & 19.8 & 19.0264289026468 & 0.773571097353156 \tabularnewline
50 & 21.2 & 21.3118404903153 & -0.111840490315340 \tabularnewline
51 & 21.5 & 20.7682590151601 & 0.731740984839863 \tabularnewline
52 & 20.6 & 20.6859915021014 & -0.0859915021014472 \tabularnewline
53 & 19.1 & 18.5912069855789 & 0.508793014421113 \tabularnewline
54 & 19.6 & 19.0751106863161 & 0.524889313683893 \tabularnewline
55 & 23.5 & 24.3298366994576 & -0.829836699457628 \tabularnewline
56 & 24 & 24.0739821350000 & -0.0739821349999634 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70727&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]20.7[/C][C]21.0064147224696[/C][C]-0.306414722469565[/C][/ROW]
[ROW][C]2[/C][C]20.4[/C][C]20.1243698633882[/C][C]0.275630136611821[/C][/ROW]
[ROW][C]3[/C][C]20.3[/C][C]20.0722367797552[/C][C]0.227763220244780[/C][/ROW]
[ROW][C]4[/C][C]20.4[/C][C]20.3876214480738[/C][C]0.0123785519261583[/C][/ROW]
[ROW][C]5[/C][C]19.8[/C][C]19.5769979808287[/C][C]0.223002019171304[/C][/ROW]
[ROW][C]6[/C][C]19.5[/C][C]19.8165537260885[/C][C]-0.316553726088509[/C][/ROW]
[ROW][C]7[/C][C]23.1[/C][C]23.0174721134981[/C][C]0.0825278865018796[/C][/ROW]
[ROW][C]8[/C][C]23.5[/C][C]23.3607416924293[/C][C]0.139258307570727[/C][/ROW]
[ROW][C]9[/C][C]23.5[/C][C]23.0545106530051[/C][C]0.44548934699493[/C][/ROW]
[ROW][C]10[/C][C]22.9[/C][C]22.8384087125459[/C][C]0.0615912874540699[/C][/ROW]
[ROW][C]11[/C][C]21.9[/C][C]21.6225057659741[/C][C]0.277494234025931[/C][/ROW]
[ROW][C]12[/C][C]21.5[/C][C]21.5637955965641[/C][C]-0.0637955965640818[/C][/ROW]
[ROW][C]13[/C][C]20.5[/C][C]21.0966679235012[/C][C]-0.59666792350124[/C][/ROW]
[ROW][C]14[/C][C]20.2[/C][C]19.6795906548440[/C][C]0.520409345155962[/C][/ROW]
[ROW][C]15[/C][C]19.4[/C][C]20.1834523749806[/C][C]-0.783452374980565[/C][/ROW]
[ROW][C]16[/C][C]19.2[/C][C]19.6007862784536[/C][C]-0.400786278453571[/C][/ROW]
[ROW][C]17[/C][C]18.8[/C][C]18.8393458317572[/C][C]-0.0393458317572162[/C][/ROW]
[ROW][C]18[/C][C]18.8[/C][C]19.4782983845002[/C][C]-0.678298384500229[/C][/ROW]
[ROW][C]19[/C][C]22.6[/C][C]22.3796411775338[/C][C]0.220358822466189[/C][/ROW]
[ROW][C]20[/C][C]23.3[/C][C]22.5529261652851[/C][C]0.74707383471487[/C][/ROW]
[ROW][C]21[/C][C]23[/C][C]22.5643310800698[/C][C]0.435668919930205[/C][/ROW]
[ROW][C]22[/C][C]21.4[/C][C]21.7293026307475[/C][C]-0.32930263074753[/C][/ROW]
[ROW][C]23[/C][C]19.9[/C][C]19.4600220955361[/C][C]0.43997790446389[/C][/ROW]
[ROW][C]24[/C][C]18.8[/C][C]19.6218608822654[/C][C]-0.821860882265362[/C][/ROW]
[ROW][C]25[/C][C]18.6[/C][C]18.3824255434616[/C][C]0.217574456538409[/C][/ROW]
[ROW][C]26[/C][C]18.4[/C][C]18.5205681206079[/C][C]-0.120568120607895[/C][/ROW]
[ROW][C]27[/C][C]18.6[/C][C]18.0932536690529[/C][C]0.506746330947098[/C][/ROW]
[ROW][C]28[/C][C]19.9[/C][C]18.9383404280133[/C][C]0.961659571986684[/C][/ROW]
[ROW][C]29[/C][C]19.2[/C][C]19.5814376866351[/C][C]-0.381437686635085[/C][/ROW]
[ROW][C]30[/C][C]18.4[/C][C]18.5291551186953[/C][C]-0.129155118695265[/C][/ROW]
[ROW][C]31[/C][C]21.1[/C][C]21.2626924032918[/C][C]-0.162692403291790[/C][/ROW]
[ROW][C]32[/C][C]20.5[/C][C]20.9070538175361[/C][C]-0.40705381753609[/C][/ROW]
[ROW][C]33[/C][C]19.1[/C][C]19.7929238651351[/C][C]-0.692923865135126[/C][/ROW]
[ROW][C]34[/C][C]18.1[/C][C]18.20538140825[/C][C]-0.105381408250001[/C][/ROW]
[ROW][C]35[/C][C]17[/C][C]17.4665108147471[/C][C]-0.46651081474713[/C][/ROW]
[ROW][C]36[/C][C]17.1[/C][C]17.3492436963004[/C][C]-0.249243696300431[/C][/ROW]
[ROW][C]37[/C][C]17.4[/C][C]17.4880629079208[/C][C]-0.0880629079207592[/C][/ROW]
[ROW][C]38[/C][C]16.8[/C][C]17.3636308708445[/C][C]-0.563630870844548[/C][/ROW]
[ROW][C]39[/C][C]15.3[/C][C]15.9827981610512[/C][C]-0.682798161051174[/C][/ROW]
[ROW][C]40[/C][C]14.3[/C][C]14.7872603433578[/C][C]-0.487260343357824[/C][/ROW]
[ROW][C]41[/C][C]13.4[/C][C]13.7110115152001[/C][C]-0.311011515200116[/C][/ROW]
[ROW][C]42[/C][C]15.3[/C][C]14.7008820843999[/C][C]0.59911791560011[/C][/ROW]
[ROW][C]43[/C][C]22.1[/C][C]21.4103576062187[/C][C]0.68964239378135[/C][/ROW]
[ROW][C]44[/C][C]23.7[/C][C]24.1052961897495[/C][C]-0.405296189749542[/C][/ROW]
[ROW][C]45[/C][C]22.2[/C][C]22.38823440179[/C][C]-0.188234401790009[/C][/ROW]
[ROW][C]46[/C][C]19.5[/C][C]19.1269072484565[/C][C]0.373092751543461[/C][/ROW]
[ROW][C]47[/C][C]16.6[/C][C]16.8509613237427[/C][C]-0.250961323742691[/C][/ROW]
[ROW][C]48[/C][C]17.3[/C][C]16.1650998248701[/C][C]1.13490017512987[/C][/ROW]
[ROW][C]49[/C][C]19.8[/C][C]19.0264289026468[/C][C]0.773571097353156[/C][/ROW]
[ROW][C]50[/C][C]21.2[/C][C]21.3118404903153[/C][C]-0.111840490315340[/C][/ROW]
[ROW][C]51[/C][C]21.5[/C][C]20.7682590151601[/C][C]0.731740984839863[/C][/ROW]
[ROW][C]52[/C][C]20.6[/C][C]20.6859915021014[/C][C]-0.0859915021014472[/C][/ROW]
[ROW][C]53[/C][C]19.1[/C][C]18.5912069855789[/C][C]0.508793014421113[/C][/ROW]
[ROW][C]54[/C][C]19.6[/C][C]19.0751106863161[/C][C]0.524889313683893[/C][/ROW]
[ROW][C]55[/C][C]23.5[/C][C]24.3298366994576[/C][C]-0.829836699457628[/C][/ROW]
[ROW][C]56[/C][C]24[/C][C]24.0739821350000[/C][C]-0.0739821349999634[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70727&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70727&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
120.721.0064147224696-0.306414722469565
220.420.12436986338820.275630136611821
320.320.07223677975520.227763220244780
420.420.38762144807380.0123785519261583
519.819.57699798082870.223002019171304
619.519.8165537260885-0.316553726088509
723.123.01747211349810.0825278865018796
823.523.36074169242930.139258307570727
923.523.05451065300510.44548934699493
1022.922.83840871254590.0615912874540699
1121.921.62250576597410.277494234025931
1221.521.5637955965641-0.0637955965640818
1320.521.0966679235012-0.59666792350124
1420.219.67959065484400.520409345155962
1519.420.1834523749806-0.783452374980565
1619.219.6007862784536-0.400786278453571
1718.818.8393458317572-0.0393458317572162
1818.819.4782983845002-0.678298384500229
1922.622.37964117753380.220358822466189
2023.322.55292616528510.74707383471487
212322.56433108006980.435668919930205
2221.421.7293026307475-0.32930263074753
2319.919.46002209553610.43997790446389
2418.819.6218608822654-0.821860882265362
2518.618.38242554346160.217574456538409
2618.418.5205681206079-0.120568120607895
2718.618.09325366905290.506746330947098
2819.918.93834042801330.961659571986684
2919.219.5814376866351-0.381437686635085
3018.418.5291551186953-0.129155118695265
3121.121.2626924032918-0.162692403291790
3220.520.9070538175361-0.40705381753609
3319.119.7929238651351-0.692923865135126
3418.118.20538140825-0.105381408250001
351717.4665108147471-0.46651081474713
3617.117.3492436963004-0.249243696300431
3717.417.4880629079208-0.0880629079207592
3816.817.3636308708445-0.563630870844548
3915.315.9827981610512-0.682798161051174
4014.314.7872603433578-0.487260343357824
4113.413.7110115152001-0.311011515200116
4215.314.70088208439990.59911791560011
4322.121.41035760621870.68964239378135
4423.724.1052961897495-0.405296189749542
4522.222.38823440179-0.188234401790009
4619.519.12690724845650.373092751543461
4716.616.8509613237427-0.250961323742691
4817.316.16509982487011.13490017512987
4919.819.02642890264680.773571097353156
5021.221.3118404903153-0.111840490315340
5121.520.76825901516010.731740984839863
5220.620.6859915021014-0.0859915021014472
5319.118.59120698557890.508793014421113
5419.619.07511068631610.524889313683893
5523.524.3298366994576-0.829836699457628
562424.0739821350000-0.0739821349999634







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
200.09806774904058580.1961354980811720.901932250959414
210.0778317599102410.1556635198204820.922168240089759
220.1106649363383110.2213298726766210.88933506366169
230.06128819308529840.1225763861705970.938711806914702
240.06278864777065870.1255772955413170.937211352229341
250.06321064964713350.1264212992942670.936789350352867
260.03168406303781310.06336812607562630.968315936962187
270.01691372202734160.03382744405468310.983086277972658
280.1251018090837010.2502036181674030.874898190916299
290.1529596128233280.3059192256466560.847040387176672
300.1102211606975940.2204423213951870.889778839302406
310.07331311763845880.1466262352769180.926686882361541
320.06566723269770050.1313344653954010.9343327673023
330.05252419609635190.1050483921927040.947475803903648
340.03985626341748930.07971252683497860.96014373658251
350.04684591472103620.09369182944207240.953154085278964
360.5882802393579180.8234395212841650.411719760642082

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
20 & 0.0980677490405858 & 0.196135498081172 & 0.901932250959414 \tabularnewline
21 & 0.077831759910241 & 0.155663519820482 & 0.922168240089759 \tabularnewline
22 & 0.110664936338311 & 0.221329872676621 & 0.88933506366169 \tabularnewline
23 & 0.0612881930852984 & 0.122576386170597 & 0.938711806914702 \tabularnewline
24 & 0.0627886477706587 & 0.125577295541317 & 0.937211352229341 \tabularnewline
25 & 0.0632106496471335 & 0.126421299294267 & 0.936789350352867 \tabularnewline
26 & 0.0316840630378131 & 0.0633681260756263 & 0.968315936962187 \tabularnewline
27 & 0.0169137220273416 & 0.0338274440546831 & 0.983086277972658 \tabularnewline
28 & 0.125101809083701 & 0.250203618167403 & 0.874898190916299 \tabularnewline
29 & 0.152959612823328 & 0.305919225646656 & 0.847040387176672 \tabularnewline
30 & 0.110221160697594 & 0.220442321395187 & 0.889778839302406 \tabularnewline
31 & 0.0733131176384588 & 0.146626235276918 & 0.926686882361541 \tabularnewline
32 & 0.0656672326977005 & 0.131334465395401 & 0.9343327673023 \tabularnewline
33 & 0.0525241960963519 & 0.105048392192704 & 0.947475803903648 \tabularnewline
34 & 0.0398562634174893 & 0.0797125268349786 & 0.96014373658251 \tabularnewline
35 & 0.0468459147210362 & 0.0936918294420724 & 0.953154085278964 \tabularnewline
36 & 0.588280239357918 & 0.823439521284165 & 0.411719760642082 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70727&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]20[/C][C]0.0980677490405858[/C][C]0.196135498081172[/C][C]0.901932250959414[/C][/ROW]
[ROW][C]21[/C][C]0.077831759910241[/C][C]0.155663519820482[/C][C]0.922168240089759[/C][/ROW]
[ROW][C]22[/C][C]0.110664936338311[/C][C]0.221329872676621[/C][C]0.88933506366169[/C][/ROW]
[ROW][C]23[/C][C]0.0612881930852984[/C][C]0.122576386170597[/C][C]0.938711806914702[/C][/ROW]
[ROW][C]24[/C][C]0.0627886477706587[/C][C]0.125577295541317[/C][C]0.937211352229341[/C][/ROW]
[ROW][C]25[/C][C]0.0632106496471335[/C][C]0.126421299294267[/C][C]0.936789350352867[/C][/ROW]
[ROW][C]26[/C][C]0.0316840630378131[/C][C]0.0633681260756263[/C][C]0.968315936962187[/C][/ROW]
[ROW][C]27[/C][C]0.0169137220273416[/C][C]0.0338274440546831[/C][C]0.983086277972658[/C][/ROW]
[ROW][C]28[/C][C]0.125101809083701[/C][C]0.250203618167403[/C][C]0.874898190916299[/C][/ROW]
[ROW][C]29[/C][C]0.152959612823328[/C][C]0.305919225646656[/C][C]0.847040387176672[/C][/ROW]
[ROW][C]30[/C][C]0.110221160697594[/C][C]0.220442321395187[/C][C]0.889778839302406[/C][/ROW]
[ROW][C]31[/C][C]0.0733131176384588[/C][C]0.146626235276918[/C][C]0.926686882361541[/C][/ROW]
[ROW][C]32[/C][C]0.0656672326977005[/C][C]0.131334465395401[/C][C]0.9343327673023[/C][/ROW]
[ROW][C]33[/C][C]0.0525241960963519[/C][C]0.105048392192704[/C][C]0.947475803903648[/C][/ROW]
[ROW][C]34[/C][C]0.0398562634174893[/C][C]0.0797125268349786[/C][C]0.96014373658251[/C][/ROW]
[ROW][C]35[/C][C]0.0468459147210362[/C][C]0.0936918294420724[/C][C]0.953154085278964[/C][/ROW]
[ROW][C]36[/C][C]0.588280239357918[/C][C]0.823439521284165[/C][C]0.411719760642082[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70727&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70727&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
200.09806774904058580.1961354980811720.901932250959414
210.0778317599102410.1556635198204820.922168240089759
220.1106649363383110.2213298726766210.88933506366169
230.06128819308529840.1225763861705970.938711806914702
240.06278864777065870.1255772955413170.937211352229341
250.06321064964713350.1264212992942670.936789350352867
260.03168406303781310.06336812607562630.968315936962187
270.01691372202734160.03382744405468310.983086277972658
280.1251018090837010.2502036181674030.874898190916299
290.1529596128233280.3059192256466560.847040387176672
300.1102211606975940.2204423213951870.889778839302406
310.07331311763845880.1466262352769180.926686882361541
320.06566723269770050.1313344653954010.9343327673023
330.05252419609635190.1050483921927040.947475803903648
340.03985626341748930.07971252683497860.96014373658251
350.04684591472103620.09369182944207240.953154085278964
360.5882802393579180.8234395212841650.411719760642082







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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70727&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 level10.0588235294117647NOK
10% type I error level40.235294117647059NOK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No 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')
}