Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationFri, 20 Nov 2009 08:42: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/Nov/20/t1258731778kcvrocsrj01hg3j.htm/, Retrieved Thu, 25 Apr 2024 23:27:50 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58277, Retrieved Thu, 25 Apr 2024 23:27:50 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact125
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]
-   PD      [Multiple Regression] [WS 7.2] [2009-11-20 15:42:32] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
9.9	8.2
9.8	8
9.3	7.5
8.3	6.8
8	6.5
8.5	6.6
10.4	7.6
11.1	8
10.9	8.1
10	7.7
9.2	7.5
9.2	7.6
9.5	7.8
9.6	7.8
9.5	7.8
9.1	7.5
8.9	7.5
9	7.1
10.1	7.5
10.3	7.5
10.2	7.6
9.6	7.7
9.2	7.7
9.3	7.9
9.4	8.1
9.4	8.2
9.2	8.2
9	8.2
9	7.9
9	7.3
9.8	6.9
10	6.6
9.8	6.7
9.3	6.9
9	7
9	7.1
9.1	7.2
9.1	7.1
9.1	6.9
9.2	7
8.8	6.8
8.3	6.4
8.4	6.7
8.1	6.6
7.7	6.4
7.9	6.3
7.9	6.2
8	6.5
7.9	6.8
7.6	6.8
7.1	6.4
6.8	6.1
6.5	5.8
6.9	6.1
8.2	7.2
8.7	7.3
8.3	6.9
7.9	6.1
7.5	5.8
7.8	6.2




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58277&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
WLMan[t] = + 2.15403889369058 + 0.566508210890234WLVrouw[t] + 0.276745894554881M1[t] + 0.270736387208297M2[t] + 0.198028522039758M3[t] + 0.161971477960242M4[t] + 0.0779334485738979M5[t] -0.178717372515126M6[t] -0.287885911840968M7[t] -0.415178046672429M8[t] -0.327885911840968M9[t] -0.278622299049265M10[t] -0.163349178910976M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
WLMan[t] =  +  2.15403889369058 +  0.566508210890234WLVrouw[t] +  0.276745894554881M1[t] +  0.270736387208297M2[t] +  0.198028522039758M3[t] +  0.161971477960242M4[t] +  0.0779334485738979M5[t] -0.178717372515126M6[t] -0.287885911840968M7[t] -0.415178046672429M8[t] -0.327885911840968M9[t] -0.278622299049265M10[t] -0.163349178910976M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58277&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]WLMan[t] =  +  2.15403889369058 +  0.566508210890234WLVrouw[t] +  0.276745894554881M1[t] +  0.270736387208297M2[t] +  0.198028522039758M3[t] +  0.161971477960242M4[t] +  0.0779334485738979M5[t] -0.178717372515126M6[t] -0.287885911840968M7[t] -0.415178046672429M8[t] -0.327885911840968M9[t] -0.278622299049265M10[t] -0.163349178910976M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58277&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58277&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
WLMan[t] = + 2.15403889369058 + 0.566508210890234WLVrouw[t] + 0.276745894554881M1[t] + 0.270736387208297M2[t] + 0.198028522039758M3[t] + 0.161971477960242M4[t] + 0.0779334485738979M5[t] -0.178717372515126M6[t] -0.287885911840968M7[t] -0.415178046672429M8[t] -0.327885911840968M9[t] -0.278622299049265M10[t] -0.163349178910976M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)2.154038893690580.5309924.05660.0001869.3e-05
WLVrouw0.5665082108902340.0578499.792800
M10.2767458945548810.2505751.10440.2750240.137512
M20.2707363872082970.2501981.08210.2847350.142367
M30.1980285220397580.2491180.79490.4306570.215329
M40.1619714779602420.2491180.65020.5187420.259371
M50.07793344857389790.2500830.31160.75670.37835
M6-0.1787173725151260.249588-0.71610.4775030.238752
M7-0.2878859118409680.252361-1.14080.2597460.129873
M8-0.4151780466724290.255275-1.62640.1105530.055276
M9-0.3278859118409680.252361-1.29930.2001880.100094
M10-0.2786222990492650.249427-1.11710.2696510.134825
M11-0.1633491789109760.248968-0.65610.5149550.257478

\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) & 2.15403889369058 & 0.530992 & 4.0566 & 0.000186 & 9.3e-05 \tabularnewline
WLVrouw & 0.566508210890234 & 0.057849 & 9.7928 & 0 & 0 \tabularnewline
M1 & 0.276745894554881 & 0.250575 & 1.1044 & 0.275024 & 0.137512 \tabularnewline
M2 & 0.270736387208297 & 0.250198 & 1.0821 & 0.284735 & 0.142367 \tabularnewline
M3 & 0.198028522039758 & 0.249118 & 0.7949 & 0.430657 & 0.215329 \tabularnewline
M4 & 0.161971477960242 & 0.249118 & 0.6502 & 0.518742 & 0.259371 \tabularnewline
M5 & 0.0779334485738979 & 0.250083 & 0.3116 & 0.7567 & 0.37835 \tabularnewline
M6 & -0.178717372515126 & 0.249588 & -0.7161 & 0.477503 & 0.238752 \tabularnewline
M7 & -0.287885911840968 & 0.252361 & -1.1408 & 0.259746 & 0.129873 \tabularnewline
M8 & -0.415178046672429 & 0.255275 & -1.6264 & 0.110553 & 0.055276 \tabularnewline
M9 & -0.327885911840968 & 0.252361 & -1.2993 & 0.200188 & 0.100094 \tabularnewline
M10 & -0.278622299049265 & 0.249427 & -1.1171 & 0.269651 & 0.134825 \tabularnewline
M11 & -0.163349178910976 & 0.248968 & -0.6561 & 0.514955 & 0.257478 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58277&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]2.15403889369058[/C][C]0.530992[/C][C]4.0566[/C][C]0.000186[/C][C]9.3e-05[/C][/ROW]
[ROW][C]WLVrouw[/C][C]0.566508210890234[/C][C]0.057849[/C][C]9.7928[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]0.276745894554881[/C][C]0.250575[/C][C]1.1044[/C][C]0.275024[/C][C]0.137512[/C][/ROW]
[ROW][C]M2[/C][C]0.270736387208297[/C][C]0.250198[/C][C]1.0821[/C][C]0.284735[/C][C]0.142367[/C][/ROW]
[ROW][C]M3[/C][C]0.198028522039758[/C][C]0.249118[/C][C]0.7949[/C][C]0.430657[/C][C]0.215329[/C][/ROW]
[ROW][C]M4[/C][C]0.161971477960242[/C][C]0.249118[/C][C]0.6502[/C][C]0.518742[/C][C]0.259371[/C][/ROW]
[ROW][C]M5[/C][C]0.0779334485738979[/C][C]0.250083[/C][C]0.3116[/C][C]0.7567[/C][C]0.37835[/C][/ROW]
[ROW][C]M6[/C][C]-0.178717372515126[/C][C]0.249588[/C][C]-0.7161[/C][C]0.477503[/C][C]0.238752[/C][/ROW]
[ROW][C]M7[/C][C]-0.287885911840968[/C][C]0.252361[/C][C]-1.1408[/C][C]0.259746[/C][C]0.129873[/C][/ROW]
[ROW][C]M8[/C][C]-0.415178046672429[/C][C]0.255275[/C][C]-1.6264[/C][C]0.110553[/C][C]0.055276[/C][/ROW]
[ROW][C]M9[/C][C]-0.327885911840968[/C][C]0.252361[/C][C]-1.2993[/C][C]0.200188[/C][C]0.100094[/C][/ROW]
[ROW][C]M10[/C][C]-0.278622299049265[/C][C]0.249427[/C][C]-1.1171[/C][C]0.269651[/C][C]0.134825[/C][/ROW]
[ROW][C]M11[/C][C]-0.163349178910976[/C][C]0.248968[/C][C]-0.6561[/C][C]0.514955[/C][C]0.257478[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58277&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58277&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)2.154038893690580.5309924.05660.0001869.3e-05
WLVrouw0.5665082108902340.0578499.792800
M10.2767458945548810.2505751.10440.2750240.137512
M20.2707363872082970.2501981.08210.2847350.142367
M30.1980285220397580.2491180.79490.4306570.215329
M40.1619714779602420.2491180.65020.5187420.259371
M50.07793344857389790.2500830.31160.75670.37835
M6-0.1787173725151260.249588-0.71610.4775030.238752
M7-0.2878859118409680.252361-1.14080.2597460.129873
M8-0.4151780466724290.255275-1.62640.1105530.055276
M9-0.3278859118409680.252361-1.29930.2001880.100094
M10-0.2786222990492650.249427-1.11710.2696510.134825
M11-0.1633491789109760.248968-0.65610.5149550.257478







Multiple Linear Regression - Regression Statistics
Multiple R0.851403378079036
R-squared0.724887712204394
Adjusted R-squared0.654646277022538
F-TEST (value)10.3199444932701
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value1.57805424283453e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.393546010364785
Sum Squared Residuals7.27928772687986

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.851403378079036 \tabularnewline
R-squared & 0.724887712204394 \tabularnewline
Adjusted R-squared & 0.654646277022538 \tabularnewline
F-TEST (value) & 10.3199444932701 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 1.57805424283453e-09 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.393546010364785 \tabularnewline
Sum Squared Residuals & 7.27928772687986 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58277&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.851403378079036[/C][/ROW]
[ROW][C]R-squared[/C][C]0.724887712204394[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.654646277022538[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]10.3199444932701[/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]1.57805424283453e-09[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.393546010364785[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]7.27928772687986[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58277&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58277&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.851403378079036
R-squared0.724887712204394
Adjusted R-squared0.654646277022538
F-TEST (value)10.3199444932701
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value1.57805424283453e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.393546010364785
Sum Squared Residuals7.27928772687986







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.28.039216076058780.160783923941219
287.976555747623160.0234442523768374
37.57.6205937770095-0.120593777009507
46.87.01802852203976-0.218028522039758
56.56.76403802938634-0.264038029386344
66.66.79064131374244-0.190641313742438
77.67.75783837510804-0.157838375108038
888.02710198789974-0.0271019878997403
98.18.001092480553150.0989075194468448
107.77.540498703543650.159501296456353
117.57.202565254969750.297434745030251
127.67.365914433880730.234085566119274
137.87.81261279170268-0.0126127917026773
147.87.86325410544512-0.0632541054451166
157.87.733895419187550.0661045808124456
167.57.471235090751940.0287649092480558
177.57.273895419187550.226104580812446
187.17.073895419187550.0261045808124462
197.57.58788591184097-0.0878859118409678
207.57.57389541918755-0.0738954191875541
217.67.60453673292999-0.0045367329299909
227.77.313895419187550.386104580812446
237.77.202565254969750.497434745030251
247.97.422565254969750.477434745030251
258.17.755961970613650.344038029386346
268.27.749952463267070.450047536732929
278.27.563942955920480.636057044079515
288.27.414584269662920.785415730337078
297.97.330546240276580.569453759723423
307.37.073895419187550.226104580812446
316.97.4179334485739-0.517933448573898
326.67.40394295592048-0.803942955920484
336.77.3779334485739-0.677933448573898
346.97.14394295592048-0.243942955920484
3577.0892636127917-0.0892636127917028
367.17.25261279170268-0.152612791702680
377.27.58600950734658-0.386009507346583
387.17.58-0.48
396.97.50729213483146-0.60729213483146
4077.52788591184097-0.527885911840967
416.87.21724459809853-0.417244598098531
426.46.67733967156439-0.27733967156439
436.76.624821953327570.0751780466724284
446.66.327577355229040.272422644770959
456.46.188266205704410.211733794295592
466.36.35083146067416-0.0508314606741578
476.26.46610458081245-0.266104580812446
486.56.68610458081245-0.186104580812446
496.86.9061996542783-0.106199654278304
506.86.730237683664650.0697623163353499
516.46.3742757130510.0257242869490061
526.16.16826620570441-0.0682662057044082
535.85.914275713051-0.114275713050994
546.15.884228176318060.215771823681936
557.26.511520311149520.688479688850476
567.36.667482281763180.63251771823682
576.96.528171132238550.371828867761452
586.16.35083146067416-0.250831460674158
595.86.23950129645635-0.439501296456353
606.26.5728029386344-0.372802938634399

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.2 & 8.03921607605878 & 0.160783923941219 \tabularnewline
2 & 8 & 7.97655574762316 & 0.0234442523768374 \tabularnewline
3 & 7.5 & 7.6205937770095 & -0.120593777009507 \tabularnewline
4 & 6.8 & 7.01802852203976 & -0.218028522039758 \tabularnewline
5 & 6.5 & 6.76403802938634 & -0.264038029386344 \tabularnewline
6 & 6.6 & 6.79064131374244 & -0.190641313742438 \tabularnewline
7 & 7.6 & 7.75783837510804 & -0.157838375108038 \tabularnewline
8 & 8 & 8.02710198789974 & -0.0271019878997403 \tabularnewline
9 & 8.1 & 8.00109248055315 & 0.0989075194468448 \tabularnewline
10 & 7.7 & 7.54049870354365 & 0.159501296456353 \tabularnewline
11 & 7.5 & 7.20256525496975 & 0.297434745030251 \tabularnewline
12 & 7.6 & 7.36591443388073 & 0.234085566119274 \tabularnewline
13 & 7.8 & 7.81261279170268 & -0.0126127917026773 \tabularnewline
14 & 7.8 & 7.86325410544512 & -0.0632541054451166 \tabularnewline
15 & 7.8 & 7.73389541918755 & 0.0661045808124456 \tabularnewline
16 & 7.5 & 7.47123509075194 & 0.0287649092480558 \tabularnewline
17 & 7.5 & 7.27389541918755 & 0.226104580812446 \tabularnewline
18 & 7.1 & 7.07389541918755 & 0.0261045808124462 \tabularnewline
19 & 7.5 & 7.58788591184097 & -0.0878859118409678 \tabularnewline
20 & 7.5 & 7.57389541918755 & -0.0738954191875541 \tabularnewline
21 & 7.6 & 7.60453673292999 & -0.0045367329299909 \tabularnewline
22 & 7.7 & 7.31389541918755 & 0.386104580812446 \tabularnewline
23 & 7.7 & 7.20256525496975 & 0.497434745030251 \tabularnewline
24 & 7.9 & 7.42256525496975 & 0.477434745030251 \tabularnewline
25 & 8.1 & 7.75596197061365 & 0.344038029386346 \tabularnewline
26 & 8.2 & 7.74995246326707 & 0.450047536732929 \tabularnewline
27 & 8.2 & 7.56394295592048 & 0.636057044079515 \tabularnewline
28 & 8.2 & 7.41458426966292 & 0.785415730337078 \tabularnewline
29 & 7.9 & 7.33054624027658 & 0.569453759723423 \tabularnewline
30 & 7.3 & 7.07389541918755 & 0.226104580812446 \tabularnewline
31 & 6.9 & 7.4179334485739 & -0.517933448573898 \tabularnewline
32 & 6.6 & 7.40394295592048 & -0.803942955920484 \tabularnewline
33 & 6.7 & 7.3779334485739 & -0.677933448573898 \tabularnewline
34 & 6.9 & 7.14394295592048 & -0.243942955920484 \tabularnewline
35 & 7 & 7.0892636127917 & -0.0892636127917028 \tabularnewline
36 & 7.1 & 7.25261279170268 & -0.152612791702680 \tabularnewline
37 & 7.2 & 7.58600950734658 & -0.386009507346583 \tabularnewline
38 & 7.1 & 7.58 & -0.48 \tabularnewline
39 & 6.9 & 7.50729213483146 & -0.60729213483146 \tabularnewline
40 & 7 & 7.52788591184097 & -0.527885911840967 \tabularnewline
41 & 6.8 & 7.21724459809853 & -0.417244598098531 \tabularnewline
42 & 6.4 & 6.67733967156439 & -0.27733967156439 \tabularnewline
43 & 6.7 & 6.62482195332757 & 0.0751780466724284 \tabularnewline
44 & 6.6 & 6.32757735522904 & 0.272422644770959 \tabularnewline
45 & 6.4 & 6.18826620570441 & 0.211733794295592 \tabularnewline
46 & 6.3 & 6.35083146067416 & -0.0508314606741578 \tabularnewline
47 & 6.2 & 6.46610458081245 & -0.266104580812446 \tabularnewline
48 & 6.5 & 6.68610458081245 & -0.186104580812446 \tabularnewline
49 & 6.8 & 6.9061996542783 & -0.106199654278304 \tabularnewline
50 & 6.8 & 6.73023768366465 & 0.0697623163353499 \tabularnewline
51 & 6.4 & 6.374275713051 & 0.0257242869490061 \tabularnewline
52 & 6.1 & 6.16826620570441 & -0.0682662057044082 \tabularnewline
53 & 5.8 & 5.914275713051 & -0.114275713050994 \tabularnewline
54 & 6.1 & 5.88422817631806 & 0.215771823681936 \tabularnewline
55 & 7.2 & 6.51152031114952 & 0.688479688850476 \tabularnewline
56 & 7.3 & 6.66748228176318 & 0.63251771823682 \tabularnewline
57 & 6.9 & 6.52817113223855 & 0.371828867761452 \tabularnewline
58 & 6.1 & 6.35083146067416 & -0.250831460674158 \tabularnewline
59 & 5.8 & 6.23950129645635 & -0.439501296456353 \tabularnewline
60 & 6.2 & 6.5728029386344 & -0.372802938634399 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58277&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]8.2[/C][C]8.03921607605878[/C][C]0.160783923941219[/C][/ROW]
[ROW][C]2[/C][C]8[/C][C]7.97655574762316[/C][C]0.0234442523768374[/C][/ROW]
[ROW][C]3[/C][C]7.5[/C][C]7.6205937770095[/C][C]-0.120593777009507[/C][/ROW]
[ROW][C]4[/C][C]6.8[/C][C]7.01802852203976[/C][C]-0.218028522039758[/C][/ROW]
[ROW][C]5[/C][C]6.5[/C][C]6.76403802938634[/C][C]-0.264038029386344[/C][/ROW]
[ROW][C]6[/C][C]6.6[/C][C]6.79064131374244[/C][C]-0.190641313742438[/C][/ROW]
[ROW][C]7[/C][C]7.6[/C][C]7.75783837510804[/C][C]-0.157838375108038[/C][/ROW]
[ROW][C]8[/C][C]8[/C][C]8.02710198789974[/C][C]-0.0271019878997403[/C][/ROW]
[ROW][C]9[/C][C]8.1[/C][C]8.00109248055315[/C][C]0.0989075194468448[/C][/ROW]
[ROW][C]10[/C][C]7.7[/C][C]7.54049870354365[/C][C]0.159501296456353[/C][/ROW]
[ROW][C]11[/C][C]7.5[/C][C]7.20256525496975[/C][C]0.297434745030251[/C][/ROW]
[ROW][C]12[/C][C]7.6[/C][C]7.36591443388073[/C][C]0.234085566119274[/C][/ROW]
[ROW][C]13[/C][C]7.8[/C][C]7.81261279170268[/C][C]-0.0126127917026773[/C][/ROW]
[ROW][C]14[/C][C]7.8[/C][C]7.86325410544512[/C][C]-0.0632541054451166[/C][/ROW]
[ROW][C]15[/C][C]7.8[/C][C]7.73389541918755[/C][C]0.0661045808124456[/C][/ROW]
[ROW][C]16[/C][C]7.5[/C][C]7.47123509075194[/C][C]0.0287649092480558[/C][/ROW]
[ROW][C]17[/C][C]7.5[/C][C]7.27389541918755[/C][C]0.226104580812446[/C][/ROW]
[ROW][C]18[/C][C]7.1[/C][C]7.07389541918755[/C][C]0.0261045808124462[/C][/ROW]
[ROW][C]19[/C][C]7.5[/C][C]7.58788591184097[/C][C]-0.0878859118409678[/C][/ROW]
[ROW][C]20[/C][C]7.5[/C][C]7.57389541918755[/C][C]-0.0738954191875541[/C][/ROW]
[ROW][C]21[/C][C]7.6[/C][C]7.60453673292999[/C][C]-0.0045367329299909[/C][/ROW]
[ROW][C]22[/C][C]7.7[/C][C]7.31389541918755[/C][C]0.386104580812446[/C][/ROW]
[ROW][C]23[/C][C]7.7[/C][C]7.20256525496975[/C][C]0.497434745030251[/C][/ROW]
[ROW][C]24[/C][C]7.9[/C][C]7.42256525496975[/C][C]0.477434745030251[/C][/ROW]
[ROW][C]25[/C][C]8.1[/C][C]7.75596197061365[/C][C]0.344038029386346[/C][/ROW]
[ROW][C]26[/C][C]8.2[/C][C]7.74995246326707[/C][C]0.450047536732929[/C][/ROW]
[ROW][C]27[/C][C]8.2[/C][C]7.56394295592048[/C][C]0.636057044079515[/C][/ROW]
[ROW][C]28[/C][C]8.2[/C][C]7.41458426966292[/C][C]0.785415730337078[/C][/ROW]
[ROW][C]29[/C][C]7.9[/C][C]7.33054624027658[/C][C]0.569453759723423[/C][/ROW]
[ROW][C]30[/C][C]7.3[/C][C]7.07389541918755[/C][C]0.226104580812446[/C][/ROW]
[ROW][C]31[/C][C]6.9[/C][C]7.4179334485739[/C][C]-0.517933448573898[/C][/ROW]
[ROW][C]32[/C][C]6.6[/C][C]7.40394295592048[/C][C]-0.803942955920484[/C][/ROW]
[ROW][C]33[/C][C]6.7[/C][C]7.3779334485739[/C][C]-0.677933448573898[/C][/ROW]
[ROW][C]34[/C][C]6.9[/C][C]7.14394295592048[/C][C]-0.243942955920484[/C][/ROW]
[ROW][C]35[/C][C]7[/C][C]7.0892636127917[/C][C]-0.0892636127917028[/C][/ROW]
[ROW][C]36[/C][C]7.1[/C][C]7.25261279170268[/C][C]-0.152612791702680[/C][/ROW]
[ROW][C]37[/C][C]7.2[/C][C]7.58600950734658[/C][C]-0.386009507346583[/C][/ROW]
[ROW][C]38[/C][C]7.1[/C][C]7.58[/C][C]-0.48[/C][/ROW]
[ROW][C]39[/C][C]6.9[/C][C]7.50729213483146[/C][C]-0.60729213483146[/C][/ROW]
[ROW][C]40[/C][C]7[/C][C]7.52788591184097[/C][C]-0.527885911840967[/C][/ROW]
[ROW][C]41[/C][C]6.8[/C][C]7.21724459809853[/C][C]-0.417244598098531[/C][/ROW]
[ROW][C]42[/C][C]6.4[/C][C]6.67733967156439[/C][C]-0.27733967156439[/C][/ROW]
[ROW][C]43[/C][C]6.7[/C][C]6.62482195332757[/C][C]0.0751780466724284[/C][/ROW]
[ROW][C]44[/C][C]6.6[/C][C]6.32757735522904[/C][C]0.272422644770959[/C][/ROW]
[ROW][C]45[/C][C]6.4[/C][C]6.18826620570441[/C][C]0.211733794295592[/C][/ROW]
[ROW][C]46[/C][C]6.3[/C][C]6.35083146067416[/C][C]-0.0508314606741578[/C][/ROW]
[ROW][C]47[/C][C]6.2[/C][C]6.46610458081245[/C][C]-0.266104580812446[/C][/ROW]
[ROW][C]48[/C][C]6.5[/C][C]6.68610458081245[/C][C]-0.186104580812446[/C][/ROW]
[ROW][C]49[/C][C]6.8[/C][C]6.9061996542783[/C][C]-0.106199654278304[/C][/ROW]
[ROW][C]50[/C][C]6.8[/C][C]6.73023768366465[/C][C]0.0697623163353499[/C][/ROW]
[ROW][C]51[/C][C]6.4[/C][C]6.374275713051[/C][C]0.0257242869490061[/C][/ROW]
[ROW][C]52[/C][C]6.1[/C][C]6.16826620570441[/C][C]-0.0682662057044082[/C][/ROW]
[ROW][C]53[/C][C]5.8[/C][C]5.914275713051[/C][C]-0.114275713050994[/C][/ROW]
[ROW][C]54[/C][C]6.1[/C][C]5.88422817631806[/C][C]0.215771823681936[/C][/ROW]
[ROW][C]55[/C][C]7.2[/C][C]6.51152031114952[/C][C]0.688479688850476[/C][/ROW]
[ROW][C]56[/C][C]7.3[/C][C]6.66748228176318[/C][C]0.63251771823682[/C][/ROW]
[ROW][C]57[/C][C]6.9[/C][C]6.52817113223855[/C][C]0.371828867761452[/C][/ROW]
[ROW][C]58[/C][C]6.1[/C][C]6.35083146067416[/C][C]-0.250831460674158[/C][/ROW]
[ROW][C]59[/C][C]5.8[/C][C]6.23950129645635[/C][C]-0.439501296456353[/C][/ROW]
[ROW][C]60[/C][C]6.2[/C][C]6.5728029386344[/C][C]-0.372802938634399[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58277&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58277&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
18.28.039216076058780.160783923941219
287.976555747623160.0234442523768374
37.57.6205937770095-0.120593777009507
46.87.01802852203976-0.218028522039758
56.56.76403802938634-0.264038029386344
66.66.79064131374244-0.190641313742438
77.67.75783837510804-0.157838375108038
888.02710198789974-0.0271019878997403
98.18.001092480553150.0989075194468448
107.77.540498703543650.159501296456353
117.57.202565254969750.297434745030251
127.67.365914433880730.234085566119274
137.87.81261279170268-0.0126127917026773
147.87.86325410544512-0.0632541054451166
157.87.733895419187550.0661045808124456
167.57.471235090751940.0287649092480558
177.57.273895419187550.226104580812446
187.17.073895419187550.0261045808124462
197.57.58788591184097-0.0878859118409678
207.57.57389541918755-0.0738954191875541
217.67.60453673292999-0.0045367329299909
227.77.313895419187550.386104580812446
237.77.202565254969750.497434745030251
247.97.422565254969750.477434745030251
258.17.755961970613650.344038029386346
268.27.749952463267070.450047536732929
278.27.563942955920480.636057044079515
288.27.414584269662920.785415730337078
297.97.330546240276580.569453759723423
307.37.073895419187550.226104580812446
316.97.4179334485739-0.517933448573898
326.67.40394295592048-0.803942955920484
336.77.3779334485739-0.677933448573898
346.97.14394295592048-0.243942955920484
3577.0892636127917-0.0892636127917028
367.17.25261279170268-0.152612791702680
377.27.58600950734658-0.386009507346583
387.17.58-0.48
396.97.50729213483146-0.60729213483146
4077.52788591184097-0.527885911840967
416.87.21724459809853-0.417244598098531
426.46.67733967156439-0.27733967156439
436.76.624821953327570.0751780466724284
446.66.327577355229040.272422644770959
456.46.188266205704410.211733794295592
466.36.35083146067416-0.0508314606741578
476.26.46610458081245-0.266104580812446
486.56.68610458081245-0.186104580812446
496.86.9061996542783-0.106199654278304
506.86.730237683664650.0697623163353499
516.46.3742757130510.0257242869490061
526.16.16826620570441-0.0682662057044082
535.85.914275713051-0.114275713050994
546.15.884228176318060.215771823681936
557.26.511520311149520.688479688850476
567.36.667482281763180.63251771823682
576.96.528171132238550.371828867761452
586.16.35083146067416-0.250831460674158
595.86.23950129645635-0.439501296456353
606.26.5728029386344-0.372802938634399







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.001875860205586550.00375172041117310.998124139794413
170.0005632605119740610.001126521023948120.999436739488026
186.01737096379554e-050.0001203474192759110.999939826290362
197.32543213507227e-050.0001465086427014450.99992674567865
208.93490641080047e-050.0001786981282160090.999910650935892
212.26811025999546e-054.53622051999093e-050.9999773188974
225.48391946675518e-050.0001096783893351040.999945160805332
233.32855017055639e-056.65710034111278e-050.999966714498294
242.37411159133906e-054.74822318267813e-050.999976258884087
255.81339288396695e-050.0001162678576793390.99994186607116
260.0005373727416766850.001074745483353370.999462627258323
270.008588938887992810.01717787777598560.991411061112007
280.1159420891588680.2318841783177360.884057910841132
290.300973407218680.601946814437360.69902659278132
300.334336262231280.668672524462560.66566373776872
310.3394988979735550.6789977959471110.660501102026445
320.6492364954908940.7015270090182120.350763504509106
330.811505658368720.3769886832625580.188494341631279
340.7576904760589590.4846190478820820.242309523941041
350.8391429374109470.3217141251781060.160857062589053
360.8589598028231690.2820803943536630.141040197176831
370.7994109584307670.4011780831384670.200589041569233
380.7632591020872390.4734817958255220.236740897912761
390.7850895362970890.4298209274058230.214910463702911
400.8111921298895310.3776157402209370.188807870110469
410.7552433158265680.4895133683468650.244756684173432
420.8009837038888460.3980325922223070.199016296111154
430.9925467726879670.01490645462406670.00745322731203336
440.980427653273010.03914469345397820.0195723467269891

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.00187586020558655 & 0.0037517204111731 & 0.998124139794413 \tabularnewline
17 & 0.000563260511974061 & 0.00112652102394812 & 0.999436739488026 \tabularnewline
18 & 6.01737096379554e-05 & 0.000120347419275911 & 0.999939826290362 \tabularnewline
19 & 7.32543213507227e-05 & 0.000146508642701445 & 0.99992674567865 \tabularnewline
20 & 8.93490641080047e-05 & 0.000178698128216009 & 0.999910650935892 \tabularnewline
21 & 2.26811025999546e-05 & 4.53622051999093e-05 & 0.9999773188974 \tabularnewline
22 & 5.48391946675518e-05 & 0.000109678389335104 & 0.999945160805332 \tabularnewline
23 & 3.32855017055639e-05 & 6.65710034111278e-05 & 0.999966714498294 \tabularnewline
24 & 2.37411159133906e-05 & 4.74822318267813e-05 & 0.999976258884087 \tabularnewline
25 & 5.81339288396695e-05 & 0.000116267857679339 & 0.99994186607116 \tabularnewline
26 & 0.000537372741676685 & 0.00107474548335337 & 0.999462627258323 \tabularnewline
27 & 0.00858893888799281 & 0.0171778777759856 & 0.991411061112007 \tabularnewline
28 & 0.115942089158868 & 0.231884178317736 & 0.884057910841132 \tabularnewline
29 & 0.30097340721868 & 0.60194681443736 & 0.69902659278132 \tabularnewline
30 & 0.33433626223128 & 0.66867252446256 & 0.66566373776872 \tabularnewline
31 & 0.339498897973555 & 0.678997795947111 & 0.660501102026445 \tabularnewline
32 & 0.649236495490894 & 0.701527009018212 & 0.350763504509106 \tabularnewline
33 & 0.81150565836872 & 0.376988683262558 & 0.188494341631279 \tabularnewline
34 & 0.757690476058959 & 0.484619047882082 & 0.242309523941041 \tabularnewline
35 & 0.839142937410947 & 0.321714125178106 & 0.160857062589053 \tabularnewline
36 & 0.858959802823169 & 0.282080394353663 & 0.141040197176831 \tabularnewline
37 & 0.799410958430767 & 0.401178083138467 & 0.200589041569233 \tabularnewline
38 & 0.763259102087239 & 0.473481795825522 & 0.236740897912761 \tabularnewline
39 & 0.785089536297089 & 0.429820927405823 & 0.214910463702911 \tabularnewline
40 & 0.811192129889531 & 0.377615740220937 & 0.188807870110469 \tabularnewline
41 & 0.755243315826568 & 0.489513368346865 & 0.244756684173432 \tabularnewline
42 & 0.800983703888846 & 0.398032592222307 & 0.199016296111154 \tabularnewline
43 & 0.992546772687967 & 0.0149064546240667 & 0.00745322731203336 \tabularnewline
44 & 0.98042765327301 & 0.0391446934539782 & 0.0195723467269891 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58277&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.00187586020558655[/C][C]0.0037517204111731[/C][C]0.998124139794413[/C][/ROW]
[ROW][C]17[/C][C]0.000563260511974061[/C][C]0.00112652102394812[/C][C]0.999436739488026[/C][/ROW]
[ROW][C]18[/C][C]6.01737096379554e-05[/C][C]0.000120347419275911[/C][C]0.999939826290362[/C][/ROW]
[ROW][C]19[/C][C]7.32543213507227e-05[/C][C]0.000146508642701445[/C][C]0.99992674567865[/C][/ROW]
[ROW][C]20[/C][C]8.93490641080047e-05[/C][C]0.000178698128216009[/C][C]0.999910650935892[/C][/ROW]
[ROW][C]21[/C][C]2.26811025999546e-05[/C][C]4.53622051999093e-05[/C][C]0.9999773188974[/C][/ROW]
[ROW][C]22[/C][C]5.48391946675518e-05[/C][C]0.000109678389335104[/C][C]0.999945160805332[/C][/ROW]
[ROW][C]23[/C][C]3.32855017055639e-05[/C][C]6.65710034111278e-05[/C][C]0.999966714498294[/C][/ROW]
[ROW][C]24[/C][C]2.37411159133906e-05[/C][C]4.74822318267813e-05[/C][C]0.999976258884087[/C][/ROW]
[ROW][C]25[/C][C]5.81339288396695e-05[/C][C]0.000116267857679339[/C][C]0.99994186607116[/C][/ROW]
[ROW][C]26[/C][C]0.000537372741676685[/C][C]0.00107474548335337[/C][C]0.999462627258323[/C][/ROW]
[ROW][C]27[/C][C]0.00858893888799281[/C][C]0.0171778777759856[/C][C]0.991411061112007[/C][/ROW]
[ROW][C]28[/C][C]0.115942089158868[/C][C]0.231884178317736[/C][C]0.884057910841132[/C][/ROW]
[ROW][C]29[/C][C]0.30097340721868[/C][C]0.60194681443736[/C][C]0.69902659278132[/C][/ROW]
[ROW][C]30[/C][C]0.33433626223128[/C][C]0.66867252446256[/C][C]0.66566373776872[/C][/ROW]
[ROW][C]31[/C][C]0.339498897973555[/C][C]0.678997795947111[/C][C]0.660501102026445[/C][/ROW]
[ROW][C]32[/C][C]0.649236495490894[/C][C]0.701527009018212[/C][C]0.350763504509106[/C][/ROW]
[ROW][C]33[/C][C]0.81150565836872[/C][C]0.376988683262558[/C][C]0.188494341631279[/C][/ROW]
[ROW][C]34[/C][C]0.757690476058959[/C][C]0.484619047882082[/C][C]0.242309523941041[/C][/ROW]
[ROW][C]35[/C][C]0.839142937410947[/C][C]0.321714125178106[/C][C]0.160857062589053[/C][/ROW]
[ROW][C]36[/C][C]0.858959802823169[/C][C]0.282080394353663[/C][C]0.141040197176831[/C][/ROW]
[ROW][C]37[/C][C]0.799410958430767[/C][C]0.401178083138467[/C][C]0.200589041569233[/C][/ROW]
[ROW][C]38[/C][C]0.763259102087239[/C][C]0.473481795825522[/C][C]0.236740897912761[/C][/ROW]
[ROW][C]39[/C][C]0.785089536297089[/C][C]0.429820927405823[/C][C]0.214910463702911[/C][/ROW]
[ROW][C]40[/C][C]0.811192129889531[/C][C]0.377615740220937[/C][C]0.188807870110469[/C][/ROW]
[ROW][C]41[/C][C]0.755243315826568[/C][C]0.489513368346865[/C][C]0.244756684173432[/C][/ROW]
[ROW][C]42[/C][C]0.800983703888846[/C][C]0.398032592222307[/C][C]0.199016296111154[/C][/ROW]
[ROW][C]43[/C][C]0.992546772687967[/C][C]0.0149064546240667[/C][C]0.00745322731203336[/C][/ROW]
[ROW][C]44[/C][C]0.98042765327301[/C][C]0.0391446934539782[/C][C]0.0195723467269891[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58277&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58277&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.001875860205586550.00375172041117310.998124139794413
170.0005632605119740610.001126521023948120.999436739488026
186.01737096379554e-050.0001203474192759110.999939826290362
197.32543213507227e-050.0001465086427014450.99992674567865
208.93490641080047e-050.0001786981282160090.999910650935892
212.26811025999546e-054.53622051999093e-050.9999773188974
225.48391946675518e-050.0001096783893351040.999945160805332
233.32855017055639e-056.65710034111278e-050.999966714498294
242.37411159133906e-054.74822318267813e-050.999976258884087
255.81339288396695e-050.0001162678576793390.99994186607116
260.0005373727416766850.001074745483353370.999462627258323
270.008588938887992810.01717787777598560.991411061112007
280.1159420891588680.2318841783177360.884057910841132
290.300973407218680.601946814437360.69902659278132
300.334336262231280.668672524462560.66566373776872
310.3394988979735550.6789977959471110.660501102026445
320.6492364954908940.7015270090182120.350763504509106
330.811505658368720.3769886832625580.188494341631279
340.7576904760589590.4846190478820820.242309523941041
350.8391429374109470.3217141251781060.160857062589053
360.8589598028231690.2820803943536630.141040197176831
370.7994109584307670.4011780831384670.200589041569233
380.7632591020872390.4734817958255220.236740897912761
390.7850895362970890.4298209274058230.214910463702911
400.8111921298895310.3776157402209370.188807870110469
410.7552433158265680.4895133683468650.244756684173432
420.8009837038888460.3980325922223070.199016296111154
430.9925467726879670.01490645462406670.00745322731203336
440.980427653273010.03914469345397820.0195723467269891







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level110.379310344827586NOK
5% type I error level140.482758620689655NOK
10% type I error level140.482758620689655NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58277&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 level110.379310344827586NOK
5% type I error level140.482758620689655NOK
10% type I error level140.482758620689655NOK



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