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 11:29:33 -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/t1261765889bzm1mji21y09rna.htm/, Retrieved Sat, 04 May 2024 15:59:23 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=70723, Retrieved Sat, 04 May 2024 15:59:23 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact154
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [Workshop 7: Multi...] [2009-12-25 15:14:42] [74be16979710d4c4e7c6647856088456]
-   P         [Multiple Regression] [Workshop 7: Multi...] [2009-12-25 18:29:33] [d41d8cd98f00b204e9800998ecf8427e] [Current]
-   P           [Multiple Regression] [Workshop 7: Multi...] [2009-12-25 18:52:49] [74be16979710d4c4e7c6647856088456]
Feedback Forum

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




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

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 4 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70723&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70723&T=0

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 4.13200139227286 + 2.61329620605639X[t] -0.110936303515468M1[t] -1.14827706230421M2[t] -2.52694744169857M3[t] -3.38187260703098M4[t] -4.07039331709015M5[t] -4.38398886181692M6[t] -4.55492516533241M7[t] -4.32906369648451M8[t] -4.57413853115211M9[t] -3.79147928994083M10[t] -0.624531848242254M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  4.13200139227286 +  2.61329620605639X[t] -0.110936303515468M1[t] -1.14827706230421M2[t] -2.52694744169857M3[t] -3.38187260703098M4[t] -4.07039331709015M5[t] -4.38398886181692M6[t] -4.55492516533241M7[t] -4.32906369648451M8[t] -4.57413853115211M9[t] -3.79147928994083M10[t] -0.624531848242254M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70723&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  4.13200139227286 +  2.61329620605639X[t] -0.110936303515468M1[t] -1.14827706230421M2[t] -2.52694744169857M3[t] -3.38187260703098M4[t] -4.07039331709015M5[t] -4.38398886181692M6[t] -4.55492516533241M7[t] -4.32906369648451M8[t] -4.57413853115211M9[t] -3.79147928994083M10[t] -0.624531848242254M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70723&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70723&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] = + 4.13200139227286 + 2.61329620605639X[t] -0.110936303515468M1[t] -1.14827706230421M2[t] -2.52694744169857M3[t] -3.38187260703098M4[t] -4.07039331709015M5[t] -4.38398886181692M6[t] -4.55492516533241M7[t] -4.32906369648451M8[t] -4.57413853115211M9[t] -3.79147928994083M10[t] -0.624531848242254M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)4.132001392272861.6689382.47580.0169520.008476
X2.613296206056390.22159111.793300
M1-0.1109363035154680.672119-0.16510.8696090.434804
M2-1.148277062304210.674744-1.70180.09540.0477
M3-2.526947441698570.677141-3.73180.0005120.000256
M4-3.381872607030980.67282-5.02648e-064e-06
M5-4.070393317090150.673068-6.047500
M6-4.383988861816920.675166-6.493200
M7-4.554925165332410.673651-6.761500
M8-4.329063696484510.672119-6.440900
M9-4.574138531152110.672601-6.800700
M10-3.791479289940830.676096-5.60791e-061e-06
M11-0.6245318482422540.671944-0.92940.357410.178705

\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) & 4.13200139227286 & 1.668938 & 2.4758 & 0.016952 & 0.008476 \tabularnewline
X & 2.61329620605639 & 0.221591 & 11.7933 & 0 & 0 \tabularnewline
M1 & -0.110936303515468 & 0.672119 & -0.1651 & 0.869609 & 0.434804 \tabularnewline
M2 & -1.14827706230421 & 0.674744 & -1.7018 & 0.0954 & 0.0477 \tabularnewline
M3 & -2.52694744169857 & 0.677141 & -3.7318 & 0.000512 & 0.000256 \tabularnewline
M4 & -3.38187260703098 & 0.67282 & -5.0264 & 8e-06 & 4e-06 \tabularnewline
M5 & -4.07039331709015 & 0.673068 & -6.0475 & 0 & 0 \tabularnewline
M6 & -4.38398886181692 & 0.675166 & -6.4932 & 0 & 0 \tabularnewline
M7 & -4.55492516533241 & 0.673651 & -6.7615 & 0 & 0 \tabularnewline
M8 & -4.32906369648451 & 0.672119 & -6.4409 & 0 & 0 \tabularnewline
M9 & -4.57413853115211 & 0.672601 & -6.8007 & 0 & 0 \tabularnewline
M10 & -3.79147928994083 & 0.676096 & -5.6079 & 1e-06 & 1e-06 \tabularnewline
M11 & -0.624531848242254 & 0.671944 & -0.9294 & 0.35741 & 0.178705 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70723&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]4.13200139227286[/C][C]1.668938[/C][C]2.4758[/C][C]0.016952[/C][C]0.008476[/C][/ROW]
[ROW][C]X[/C][C]2.61329620605639[/C][C]0.221591[/C][C]11.7933[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-0.110936303515468[/C][C]0.672119[/C][C]-0.1651[/C][C]0.869609[/C][C]0.434804[/C][/ROW]
[ROW][C]M2[/C][C]-1.14827706230421[/C][C]0.674744[/C][C]-1.7018[/C][C]0.0954[/C][C]0.0477[/C][/ROW]
[ROW][C]M3[/C][C]-2.52694744169857[/C][C]0.677141[/C][C]-3.7318[/C][C]0.000512[/C][C]0.000256[/C][/ROW]
[ROW][C]M4[/C][C]-3.38187260703098[/C][C]0.67282[/C][C]-5.0264[/C][C]8e-06[/C][C]4e-06[/C][/ROW]
[ROW][C]M5[/C][C]-4.07039331709015[/C][C]0.673068[/C][C]-6.0475[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M6[/C][C]-4.38398886181692[/C][C]0.675166[/C][C]-6.4932[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M7[/C][C]-4.55492516533241[/C][C]0.673651[/C][C]-6.7615[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]-4.32906369648451[/C][C]0.672119[/C][C]-6.4409[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M9[/C][C]-4.57413853115211[/C][C]0.672601[/C][C]-6.8007[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M10[/C][C]-3.79147928994083[/C][C]0.676096[/C][C]-5.6079[/C][C]1e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M11[/C][C]-0.624531848242254[/C][C]0.671944[/C][C]-0.9294[/C][C]0.35741[/C][C]0.178705[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70723&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70723&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)4.132001392272861.6689382.47580.0169520.008476
X2.613296206056390.22159111.793300
M1-0.1109363035154680.672119-0.16510.8696090.434804
M2-1.148277062304210.674744-1.70180.09540.0477
M3-2.526947441698570.677141-3.73180.0005120.000256
M4-3.381872607030980.67282-5.02648e-064e-06
M5-4.070393317090150.673068-6.047500
M6-4.383988861816920.675166-6.493200
M7-4.554925165332410.673651-6.761500
M8-4.329063696484510.672119-6.440900
M9-4.574138531152110.672601-6.800700
M10-3.791479289940830.676096-5.60791e-061e-06
M11-0.6245318482422540.671944-0.92940.357410.178705







Multiple Linear Regression - Regression Statistics
Multiple R0.927515115038964
R-squared0.860284288625743
Adjusted R-squared0.824612192104656
F-TEST (value)24.1164487799925
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value4.44089209850063e-16
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.06234362232883
Sum Squared Residuals53.0429766794292

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.927515115038964 \tabularnewline
R-squared & 0.860284288625743 \tabularnewline
Adjusted R-squared & 0.824612192104656 \tabularnewline
F-TEST (value) & 24.1164487799925 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 4.44089209850063e-16 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1.06234362232883 \tabularnewline
Sum Squared Residuals & 53.0429766794292 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70723&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.927515115038964[/C][/ROW]
[ROW][C]R-squared[/C][C]0.860284288625743[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.824612192104656[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]24.1164487799925[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]4.44089209850063e-16[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]1.06234362232883[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]53.0429766794292[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70723&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70723&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.927515115038964
R-squared0.860284288625743
Adjusted R-squared0.824612192104656
F-TEST (value)24.1164487799925
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value4.44089209850063e-16
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1.06234362232883
Sum Squared Residuals53.0429766794292







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
125.625.18876435781410.41123564218595
223.723.10610511660290.593894883397148
32221.20477549599720.795224504002781
421.320.61117995127050.688820048729549
520.720.44531848242260.254681517577443
620.420.13172293769580.268277062304209
720.319.96078663418030.339213365819701
820.419.40265924121130.99734075878872
919.819.15758440654370.642415593456318
1019.518.89492516533240.605074834667594
1123.123.1071910894535-0.00719108945353017
1223.523.7317229376958-0.231722937695790
1323.523.8821162547860-0.38211625478596
1422.923.1061051166029-0.206105116602860
1521.921.72743473720850.172565262791502
1621.521.39516881308740.104831186912629
1720.521.2293073442395-0.729307344239474
1820.221.1770414201183-0.977041420118344
1919.421.0061051166029-1.60610511660286
2019.221.2319665854507-2.03196658545075
2118.820.2029028889662-1.40290288896624
2218.819.4175844065437-0.617584406543684
2322.621.53921336581971.0607866341803
2423.321.37975635224501.92024364775496
252321.53014966933521.46985033066479
2621.421.01546815175770.384531848242252
2719.919.89812739296900.00187260703097682
2818.819.3045318482423-0.504531848242255
2918.618.8773407587887-0.277340758788722
3018.418.30241559345630.0975844065436837
3118.617.60882004872950.991179951270452
3219.918.09601113818311.80398886181691
3319.217.32827706230421.87172293769579
3418.417.06561782109291.33438217890707
3521.121.01655412460840.0834458753915786
3620.521.3797563522450-0.879756352245038
3719.120.7461608075183-1.64616080751829
3818.119.4474904281239-1.34749042812391
391717.8074904281239-0.80749042812391
4017.117.7365541246084-0.63655412460842
4117.417.8320222763662-0.432022276366167
4216.817.5184267316394-0.718426731639396
4315.316.3021719457014-1.00217194570135
4414.315.7440445527323-1.44404455273233
4513.414.7149808562478-1.31498085624782
4615.316.281628959276-0.981628959276014
4722.122.3232022276366-0.223202227636617
4823.723.20906369648450.490936303515487
4922.222.05280891054650.147191089453512
5019.518.92483118691260.575168813087369
5116.616.7621719457014-0.162171945701351
5217.316.95256526279150.347434737208496
5319.818.61601113818311.18398886181692
5421.219.87039331709021.32960668290985
5521.520.22211625478591.27788374521406
5620.619.92531848242260.674681517577445
5719.118.89625478593800.203745214061955
5819.619.9402436477550-0.340243647754962
5923.524.4138391924817-0.913839192481731
602425.2997006613296-1.29970066132962

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 25.6 & 25.1887643578141 & 0.41123564218595 \tabularnewline
2 & 23.7 & 23.1061051166029 & 0.593894883397148 \tabularnewline
3 & 22 & 21.2047754959972 & 0.795224504002781 \tabularnewline
4 & 21.3 & 20.6111799512705 & 0.688820048729549 \tabularnewline
5 & 20.7 & 20.4453184824226 & 0.254681517577443 \tabularnewline
6 & 20.4 & 20.1317229376958 & 0.268277062304209 \tabularnewline
7 & 20.3 & 19.9607866341803 & 0.339213365819701 \tabularnewline
8 & 20.4 & 19.4026592412113 & 0.99734075878872 \tabularnewline
9 & 19.8 & 19.1575844065437 & 0.642415593456318 \tabularnewline
10 & 19.5 & 18.8949251653324 & 0.605074834667594 \tabularnewline
11 & 23.1 & 23.1071910894535 & -0.00719108945353017 \tabularnewline
12 & 23.5 & 23.7317229376958 & -0.231722937695790 \tabularnewline
13 & 23.5 & 23.8821162547860 & -0.38211625478596 \tabularnewline
14 & 22.9 & 23.1061051166029 & -0.206105116602860 \tabularnewline
15 & 21.9 & 21.7274347372085 & 0.172565262791502 \tabularnewline
16 & 21.5 & 21.3951688130874 & 0.104831186912629 \tabularnewline
17 & 20.5 & 21.2293073442395 & -0.729307344239474 \tabularnewline
18 & 20.2 & 21.1770414201183 & -0.977041420118344 \tabularnewline
19 & 19.4 & 21.0061051166029 & -1.60610511660286 \tabularnewline
20 & 19.2 & 21.2319665854507 & -2.03196658545075 \tabularnewline
21 & 18.8 & 20.2029028889662 & -1.40290288896624 \tabularnewline
22 & 18.8 & 19.4175844065437 & -0.617584406543684 \tabularnewline
23 & 22.6 & 21.5392133658197 & 1.0607866341803 \tabularnewline
24 & 23.3 & 21.3797563522450 & 1.92024364775496 \tabularnewline
25 & 23 & 21.5301496693352 & 1.46985033066479 \tabularnewline
26 & 21.4 & 21.0154681517577 & 0.384531848242252 \tabularnewline
27 & 19.9 & 19.8981273929690 & 0.00187260703097682 \tabularnewline
28 & 18.8 & 19.3045318482423 & -0.504531848242255 \tabularnewline
29 & 18.6 & 18.8773407587887 & -0.277340758788722 \tabularnewline
30 & 18.4 & 18.3024155934563 & 0.0975844065436837 \tabularnewline
31 & 18.6 & 17.6088200487295 & 0.991179951270452 \tabularnewline
32 & 19.9 & 18.0960111381831 & 1.80398886181691 \tabularnewline
33 & 19.2 & 17.3282770623042 & 1.87172293769579 \tabularnewline
34 & 18.4 & 17.0656178210929 & 1.33438217890707 \tabularnewline
35 & 21.1 & 21.0165541246084 & 0.0834458753915786 \tabularnewline
36 & 20.5 & 21.3797563522450 & -0.879756352245038 \tabularnewline
37 & 19.1 & 20.7461608075183 & -1.64616080751829 \tabularnewline
38 & 18.1 & 19.4474904281239 & -1.34749042812391 \tabularnewline
39 & 17 & 17.8074904281239 & -0.80749042812391 \tabularnewline
40 & 17.1 & 17.7365541246084 & -0.63655412460842 \tabularnewline
41 & 17.4 & 17.8320222763662 & -0.432022276366167 \tabularnewline
42 & 16.8 & 17.5184267316394 & -0.718426731639396 \tabularnewline
43 & 15.3 & 16.3021719457014 & -1.00217194570135 \tabularnewline
44 & 14.3 & 15.7440445527323 & -1.44404455273233 \tabularnewline
45 & 13.4 & 14.7149808562478 & -1.31498085624782 \tabularnewline
46 & 15.3 & 16.281628959276 & -0.981628959276014 \tabularnewline
47 & 22.1 & 22.3232022276366 & -0.223202227636617 \tabularnewline
48 & 23.7 & 23.2090636964845 & 0.490936303515487 \tabularnewline
49 & 22.2 & 22.0528089105465 & 0.147191089453512 \tabularnewline
50 & 19.5 & 18.9248311869126 & 0.575168813087369 \tabularnewline
51 & 16.6 & 16.7621719457014 & -0.162171945701351 \tabularnewline
52 & 17.3 & 16.9525652627915 & 0.347434737208496 \tabularnewline
53 & 19.8 & 18.6160111381831 & 1.18398886181692 \tabularnewline
54 & 21.2 & 19.8703933170902 & 1.32960668290985 \tabularnewline
55 & 21.5 & 20.2221162547859 & 1.27788374521406 \tabularnewline
56 & 20.6 & 19.9253184824226 & 0.674681517577445 \tabularnewline
57 & 19.1 & 18.8962547859380 & 0.203745214061955 \tabularnewline
58 & 19.6 & 19.9402436477550 & -0.340243647754962 \tabularnewline
59 & 23.5 & 24.4138391924817 & -0.913839192481731 \tabularnewline
60 & 24 & 25.2997006613296 & -1.29970066132962 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70723&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]25.6[/C][C]25.1887643578141[/C][C]0.41123564218595[/C][/ROW]
[ROW][C]2[/C][C]23.7[/C][C]23.1061051166029[/C][C]0.593894883397148[/C][/ROW]
[ROW][C]3[/C][C]22[/C][C]21.2047754959972[/C][C]0.795224504002781[/C][/ROW]
[ROW][C]4[/C][C]21.3[/C][C]20.6111799512705[/C][C]0.688820048729549[/C][/ROW]
[ROW][C]5[/C][C]20.7[/C][C]20.4453184824226[/C][C]0.254681517577443[/C][/ROW]
[ROW][C]6[/C][C]20.4[/C][C]20.1317229376958[/C][C]0.268277062304209[/C][/ROW]
[ROW][C]7[/C][C]20.3[/C][C]19.9607866341803[/C][C]0.339213365819701[/C][/ROW]
[ROW][C]8[/C][C]20.4[/C][C]19.4026592412113[/C][C]0.99734075878872[/C][/ROW]
[ROW][C]9[/C][C]19.8[/C][C]19.1575844065437[/C][C]0.642415593456318[/C][/ROW]
[ROW][C]10[/C][C]19.5[/C][C]18.8949251653324[/C][C]0.605074834667594[/C][/ROW]
[ROW][C]11[/C][C]23.1[/C][C]23.1071910894535[/C][C]-0.00719108945353017[/C][/ROW]
[ROW][C]12[/C][C]23.5[/C][C]23.7317229376958[/C][C]-0.231722937695790[/C][/ROW]
[ROW][C]13[/C][C]23.5[/C][C]23.8821162547860[/C][C]-0.38211625478596[/C][/ROW]
[ROW][C]14[/C][C]22.9[/C][C]23.1061051166029[/C][C]-0.206105116602860[/C][/ROW]
[ROW][C]15[/C][C]21.9[/C][C]21.7274347372085[/C][C]0.172565262791502[/C][/ROW]
[ROW][C]16[/C][C]21.5[/C][C]21.3951688130874[/C][C]0.104831186912629[/C][/ROW]
[ROW][C]17[/C][C]20.5[/C][C]21.2293073442395[/C][C]-0.729307344239474[/C][/ROW]
[ROW][C]18[/C][C]20.2[/C][C]21.1770414201183[/C][C]-0.977041420118344[/C][/ROW]
[ROW][C]19[/C][C]19.4[/C][C]21.0061051166029[/C][C]-1.60610511660286[/C][/ROW]
[ROW][C]20[/C][C]19.2[/C][C]21.2319665854507[/C][C]-2.03196658545075[/C][/ROW]
[ROW][C]21[/C][C]18.8[/C][C]20.2029028889662[/C][C]-1.40290288896624[/C][/ROW]
[ROW][C]22[/C][C]18.8[/C][C]19.4175844065437[/C][C]-0.617584406543684[/C][/ROW]
[ROW][C]23[/C][C]22.6[/C][C]21.5392133658197[/C][C]1.0607866341803[/C][/ROW]
[ROW][C]24[/C][C]23.3[/C][C]21.3797563522450[/C][C]1.92024364775496[/C][/ROW]
[ROW][C]25[/C][C]23[/C][C]21.5301496693352[/C][C]1.46985033066479[/C][/ROW]
[ROW][C]26[/C][C]21.4[/C][C]21.0154681517577[/C][C]0.384531848242252[/C][/ROW]
[ROW][C]27[/C][C]19.9[/C][C]19.8981273929690[/C][C]0.00187260703097682[/C][/ROW]
[ROW][C]28[/C][C]18.8[/C][C]19.3045318482423[/C][C]-0.504531848242255[/C][/ROW]
[ROW][C]29[/C][C]18.6[/C][C]18.8773407587887[/C][C]-0.277340758788722[/C][/ROW]
[ROW][C]30[/C][C]18.4[/C][C]18.3024155934563[/C][C]0.0975844065436837[/C][/ROW]
[ROW][C]31[/C][C]18.6[/C][C]17.6088200487295[/C][C]0.991179951270452[/C][/ROW]
[ROW][C]32[/C][C]19.9[/C][C]18.0960111381831[/C][C]1.80398886181691[/C][/ROW]
[ROW][C]33[/C][C]19.2[/C][C]17.3282770623042[/C][C]1.87172293769579[/C][/ROW]
[ROW][C]34[/C][C]18.4[/C][C]17.0656178210929[/C][C]1.33438217890707[/C][/ROW]
[ROW][C]35[/C][C]21.1[/C][C]21.0165541246084[/C][C]0.0834458753915786[/C][/ROW]
[ROW][C]36[/C][C]20.5[/C][C]21.3797563522450[/C][C]-0.879756352245038[/C][/ROW]
[ROW][C]37[/C][C]19.1[/C][C]20.7461608075183[/C][C]-1.64616080751829[/C][/ROW]
[ROW][C]38[/C][C]18.1[/C][C]19.4474904281239[/C][C]-1.34749042812391[/C][/ROW]
[ROW][C]39[/C][C]17[/C][C]17.8074904281239[/C][C]-0.80749042812391[/C][/ROW]
[ROW][C]40[/C][C]17.1[/C][C]17.7365541246084[/C][C]-0.63655412460842[/C][/ROW]
[ROW][C]41[/C][C]17.4[/C][C]17.8320222763662[/C][C]-0.432022276366167[/C][/ROW]
[ROW][C]42[/C][C]16.8[/C][C]17.5184267316394[/C][C]-0.718426731639396[/C][/ROW]
[ROW][C]43[/C][C]15.3[/C][C]16.3021719457014[/C][C]-1.00217194570135[/C][/ROW]
[ROW][C]44[/C][C]14.3[/C][C]15.7440445527323[/C][C]-1.44404455273233[/C][/ROW]
[ROW][C]45[/C][C]13.4[/C][C]14.7149808562478[/C][C]-1.31498085624782[/C][/ROW]
[ROW][C]46[/C][C]15.3[/C][C]16.281628959276[/C][C]-0.981628959276014[/C][/ROW]
[ROW][C]47[/C][C]22.1[/C][C]22.3232022276366[/C][C]-0.223202227636617[/C][/ROW]
[ROW][C]48[/C][C]23.7[/C][C]23.2090636964845[/C][C]0.490936303515487[/C][/ROW]
[ROW][C]49[/C][C]22.2[/C][C]22.0528089105465[/C][C]0.147191089453512[/C][/ROW]
[ROW][C]50[/C][C]19.5[/C][C]18.9248311869126[/C][C]0.575168813087369[/C][/ROW]
[ROW][C]51[/C][C]16.6[/C][C]16.7621719457014[/C][C]-0.162171945701351[/C][/ROW]
[ROW][C]52[/C][C]17.3[/C][C]16.9525652627915[/C][C]0.347434737208496[/C][/ROW]
[ROW][C]53[/C][C]19.8[/C][C]18.6160111381831[/C][C]1.18398886181692[/C][/ROW]
[ROW][C]54[/C][C]21.2[/C][C]19.8703933170902[/C][C]1.32960668290985[/C][/ROW]
[ROW][C]55[/C][C]21.5[/C][C]20.2221162547859[/C][C]1.27788374521406[/C][/ROW]
[ROW][C]56[/C][C]20.6[/C][C]19.9253184824226[/C][C]0.674681517577445[/C][/ROW]
[ROW][C]57[/C][C]19.1[/C][C]18.8962547859380[/C][C]0.203745214061955[/C][/ROW]
[ROW][C]58[/C][C]19.6[/C][C]19.9402436477550[/C][C]-0.340243647754962[/C][/ROW]
[ROW][C]59[/C][C]23.5[/C][C]24.4138391924817[/C][C]-0.913839192481731[/C][/ROW]
[ROW][C]60[/C][C]24[/C][C]25.2997006613296[/C][C]-1.29970066132962[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70723&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70723&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
125.625.18876435781410.41123564218595
223.723.10610511660290.593894883397148
32221.20477549599720.795224504002781
421.320.61117995127050.688820048729549
520.720.44531848242260.254681517577443
620.420.13172293769580.268277062304209
720.319.96078663418030.339213365819701
820.419.40265924121130.99734075878872
919.819.15758440654370.642415593456318
1019.518.89492516533240.605074834667594
1123.123.1071910894535-0.00719108945353017
1223.523.7317229376958-0.231722937695790
1323.523.8821162547860-0.38211625478596
1422.923.1061051166029-0.206105116602860
1521.921.72743473720850.172565262791502
1621.521.39516881308740.104831186912629
1720.521.2293073442395-0.729307344239474
1820.221.1770414201183-0.977041420118344
1919.421.0061051166029-1.60610511660286
2019.221.2319665854507-2.03196658545075
2118.820.2029028889662-1.40290288896624
2218.819.4175844065437-0.617584406543684
2322.621.53921336581971.0607866341803
2423.321.37975635224501.92024364775496
252321.53014966933521.46985033066479
2621.421.01546815175770.384531848242252
2719.919.89812739296900.00187260703097682
2818.819.3045318482423-0.504531848242255
2918.618.8773407587887-0.277340758788722
3018.418.30241559345630.0975844065436837
3118.617.60882004872950.991179951270452
3219.918.09601113818311.80398886181691
3319.217.32827706230421.87172293769579
3418.417.06561782109291.33438217890707
3521.121.01655412460840.0834458753915786
3620.521.3797563522450-0.879756352245038
3719.120.7461608075183-1.64616080751829
3818.119.4474904281239-1.34749042812391
391717.8074904281239-0.80749042812391
4017.117.7365541246084-0.63655412460842
4117.417.8320222763662-0.432022276366167
4216.817.5184267316394-0.718426731639396
4315.316.3021719457014-1.00217194570135
4414.315.7440445527323-1.44404455273233
4513.414.7149808562478-1.31498085624782
4615.316.281628959276-0.981628959276014
4722.122.3232022276366-0.223202227636617
4823.723.20906369648450.490936303515487
4922.222.05280891054650.147191089453512
5019.518.92483118691260.575168813087369
5116.616.7621719457014-0.162171945701351
5217.316.95256526279150.347434737208496
5319.818.61601113818311.18398886181692
5421.219.87039331709021.32960668290985
5521.520.22211625478591.27788374521406
5620.619.92531848242260.674681517577445
5719.118.89625478593800.203745214061955
5819.619.9402436477550-0.340243647754962
5923.524.4138391924817-0.913839192481731
602425.2997006613296-1.29970066132962







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.1159294693669260.2318589387338510.884070530633075
170.08135145467025650.1627029093405130.918648545329743
180.0567780258732420.1135560517464840.943221974126758
190.06816884943723560.1363376988744710.931831150562764
200.08710046736310510.1742009347262100.912899532636895
210.07281943799037640.1456388759807530.927180562009624
220.04547660258634080.09095320517268160.95452339741366
230.03405490239235550.0681098047847110.965945097607644
240.03789782079207470.07579564158414930.962102179207925
250.06983674737589580.1396734947517920.930163252624104
260.08410554467693910.1682110893538780.915894455323061
270.1008905952501940.2017811905003880.899109404749806
280.1491584532968460.2983169065936930.850841546703154
290.1269344189455990.2538688378911980.8730655810544
300.08798977263077020.1759795452615400.91201022736923
310.0633407601352020.1266815202704040.936659239864798
320.09442242983100530.1888448596620110.905577570168995
330.1469903709832030.2939807419664060.853009629016797
340.2101603668732530.4203207337465050.789839633126747
350.2313786179981430.4627572359962850.768621382001857
360.2962375240131200.5924750480262390.70376247598688
370.5266271655312120.9467456689375770.473372834468788
380.6887488418452260.6225023163095480.311251158154774
390.6634693039374210.6730613921251570.336530696062579
400.6298852720868870.7402294558262260.370114727913113
410.5900870368213710.8198259263572580.409912963178629
420.5466641609748290.9066716780503430.453335839025171
430.5004754782844690.9990490434310610.499524521715531
440.4943464612001300.9886929224002610.505653538799870

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.115929469366926 & 0.231858938733851 & 0.884070530633075 \tabularnewline
17 & 0.0813514546702565 & 0.162702909340513 & 0.918648545329743 \tabularnewline
18 & 0.056778025873242 & 0.113556051746484 & 0.943221974126758 \tabularnewline
19 & 0.0681688494372356 & 0.136337698874471 & 0.931831150562764 \tabularnewline
20 & 0.0871004673631051 & 0.174200934726210 & 0.912899532636895 \tabularnewline
21 & 0.0728194379903764 & 0.145638875980753 & 0.927180562009624 \tabularnewline
22 & 0.0454766025863408 & 0.0909532051726816 & 0.95452339741366 \tabularnewline
23 & 0.0340549023923555 & 0.068109804784711 & 0.965945097607644 \tabularnewline
24 & 0.0378978207920747 & 0.0757956415841493 & 0.962102179207925 \tabularnewline
25 & 0.0698367473758958 & 0.139673494751792 & 0.930163252624104 \tabularnewline
26 & 0.0841055446769391 & 0.168211089353878 & 0.915894455323061 \tabularnewline
27 & 0.100890595250194 & 0.201781190500388 & 0.899109404749806 \tabularnewline
28 & 0.149158453296846 & 0.298316906593693 & 0.850841546703154 \tabularnewline
29 & 0.126934418945599 & 0.253868837891198 & 0.8730655810544 \tabularnewline
30 & 0.0879897726307702 & 0.175979545261540 & 0.91201022736923 \tabularnewline
31 & 0.063340760135202 & 0.126681520270404 & 0.936659239864798 \tabularnewline
32 & 0.0944224298310053 & 0.188844859662011 & 0.905577570168995 \tabularnewline
33 & 0.146990370983203 & 0.293980741966406 & 0.853009629016797 \tabularnewline
34 & 0.210160366873253 & 0.420320733746505 & 0.789839633126747 \tabularnewline
35 & 0.231378617998143 & 0.462757235996285 & 0.768621382001857 \tabularnewline
36 & 0.296237524013120 & 0.592475048026239 & 0.70376247598688 \tabularnewline
37 & 0.526627165531212 & 0.946745668937577 & 0.473372834468788 \tabularnewline
38 & 0.688748841845226 & 0.622502316309548 & 0.311251158154774 \tabularnewline
39 & 0.663469303937421 & 0.673061392125157 & 0.336530696062579 \tabularnewline
40 & 0.629885272086887 & 0.740229455826226 & 0.370114727913113 \tabularnewline
41 & 0.590087036821371 & 0.819825926357258 & 0.409912963178629 \tabularnewline
42 & 0.546664160974829 & 0.906671678050343 & 0.453335839025171 \tabularnewline
43 & 0.500475478284469 & 0.999049043431061 & 0.499524521715531 \tabularnewline
44 & 0.494346461200130 & 0.988692922400261 & 0.505653538799870 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70723&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]16[/C][C]0.115929469366926[/C][C]0.231858938733851[/C][C]0.884070530633075[/C][/ROW]
[ROW][C]17[/C][C]0.0813514546702565[/C][C]0.162702909340513[/C][C]0.918648545329743[/C][/ROW]
[ROW][C]18[/C][C]0.056778025873242[/C][C]0.113556051746484[/C][C]0.943221974126758[/C][/ROW]
[ROW][C]19[/C][C]0.0681688494372356[/C][C]0.136337698874471[/C][C]0.931831150562764[/C][/ROW]
[ROW][C]20[/C][C]0.0871004673631051[/C][C]0.174200934726210[/C][C]0.912899532636895[/C][/ROW]
[ROW][C]21[/C][C]0.0728194379903764[/C][C]0.145638875980753[/C][C]0.927180562009624[/C][/ROW]
[ROW][C]22[/C][C]0.0454766025863408[/C][C]0.0909532051726816[/C][C]0.95452339741366[/C][/ROW]
[ROW][C]23[/C][C]0.0340549023923555[/C][C]0.068109804784711[/C][C]0.965945097607644[/C][/ROW]
[ROW][C]24[/C][C]0.0378978207920747[/C][C]0.0757956415841493[/C][C]0.962102179207925[/C][/ROW]
[ROW][C]25[/C][C]0.0698367473758958[/C][C]0.139673494751792[/C][C]0.930163252624104[/C][/ROW]
[ROW][C]26[/C][C]0.0841055446769391[/C][C]0.168211089353878[/C][C]0.915894455323061[/C][/ROW]
[ROW][C]27[/C][C]0.100890595250194[/C][C]0.201781190500388[/C][C]0.899109404749806[/C][/ROW]
[ROW][C]28[/C][C]0.149158453296846[/C][C]0.298316906593693[/C][C]0.850841546703154[/C][/ROW]
[ROW][C]29[/C][C]0.126934418945599[/C][C]0.253868837891198[/C][C]0.8730655810544[/C][/ROW]
[ROW][C]30[/C][C]0.0879897726307702[/C][C]0.175979545261540[/C][C]0.91201022736923[/C][/ROW]
[ROW][C]31[/C][C]0.063340760135202[/C][C]0.126681520270404[/C][C]0.936659239864798[/C][/ROW]
[ROW][C]32[/C][C]0.0944224298310053[/C][C]0.188844859662011[/C][C]0.905577570168995[/C][/ROW]
[ROW][C]33[/C][C]0.146990370983203[/C][C]0.293980741966406[/C][C]0.853009629016797[/C][/ROW]
[ROW][C]34[/C][C]0.210160366873253[/C][C]0.420320733746505[/C][C]0.789839633126747[/C][/ROW]
[ROW][C]35[/C][C]0.231378617998143[/C][C]0.462757235996285[/C][C]0.768621382001857[/C][/ROW]
[ROW][C]36[/C][C]0.296237524013120[/C][C]0.592475048026239[/C][C]0.70376247598688[/C][/ROW]
[ROW][C]37[/C][C]0.526627165531212[/C][C]0.946745668937577[/C][C]0.473372834468788[/C][/ROW]
[ROW][C]38[/C][C]0.688748841845226[/C][C]0.622502316309548[/C][C]0.311251158154774[/C][/ROW]
[ROW][C]39[/C][C]0.663469303937421[/C][C]0.673061392125157[/C][C]0.336530696062579[/C][/ROW]
[ROW][C]40[/C][C]0.629885272086887[/C][C]0.740229455826226[/C][C]0.370114727913113[/C][/ROW]
[ROW][C]41[/C][C]0.590087036821371[/C][C]0.819825926357258[/C][C]0.409912963178629[/C][/ROW]
[ROW][C]42[/C][C]0.546664160974829[/C][C]0.906671678050343[/C][C]0.453335839025171[/C][/ROW]
[ROW][C]43[/C][C]0.500475478284469[/C][C]0.999049043431061[/C][C]0.499524521715531[/C][/ROW]
[ROW][C]44[/C][C]0.494346461200130[/C][C]0.988692922400261[/C][C]0.505653538799870[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70723&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=70723&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
160.1159294693669260.2318589387338510.884070530633075
170.08135145467025650.1627029093405130.918648545329743
180.0567780258732420.1135560517464840.943221974126758
190.06816884943723560.1363376988744710.931831150562764
200.08710046736310510.1742009347262100.912899532636895
210.07281943799037640.1456388759807530.927180562009624
220.04547660258634080.09095320517268160.95452339741366
230.03405490239235550.0681098047847110.965945097607644
240.03789782079207470.07579564158414930.962102179207925
250.06983674737589580.1396734947517920.930163252624104
260.08410554467693910.1682110893538780.915894455323061
270.1008905952501940.2017811905003880.899109404749806
280.1491584532968460.2983169065936930.850841546703154
290.1269344189455990.2538688378911980.8730655810544
300.08798977263077020.1759795452615400.91201022736923
310.0633407601352020.1266815202704040.936659239864798
320.09442242983100530.1888448596620110.905577570168995
330.1469903709832030.2939807419664060.853009629016797
340.2101603668732530.4203207337465050.789839633126747
350.2313786179981430.4627572359962850.768621382001857
360.2962375240131200.5924750480262390.70376247598688
370.5266271655312120.9467456689375770.473372834468788
380.6887488418452260.6225023163095480.311251158154774
390.6634693039374210.6730613921251570.336530696062579
400.6298852720868870.7402294558262260.370114727913113
410.5900870368213710.8198259263572580.409912963178629
420.5466641609748290.9066716780503430.453335839025171
430.5004754782844690.9990490434310610.499524521715531
440.4943464612001300.9886929224002610.505653538799870







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 level30.103448275862069NOK

\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 & 3 & 0.103448275862069 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=70723&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]3[/C][C]0.103448275862069[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=70723&T=6

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



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