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 computationWed, 25 Nov 2009 13:38:31 -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/25/t12591816099rq7d3zg4636zkl.htm/, Retrieved Tue, 07 May 2024 23:07:14 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=59630, Retrieved Tue, 07 May 2024 23:07:14 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact114
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 14:03:14] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [WS 7: Seasonal ef...] [2009-11-25 20:38:31] [63d6214c2814604a6f6cfa44dba5912e] [Current]
Feedback Forum

Post a new message
Dataseries X:
8.1	10.9
7.7	10.0
7.5	9.2
7.6	9.2
7.8	9.5
7.8	9.6
7.8	9.5
7.5	9.1
7.5	8.9
7.1	9.0
7.5	10.1
7.5	10.3
7.6	10.2
7.7	9.6
7.7	9.2
7.9	9.3
8.1	9.4
8.2	9.4
8.2	9.2
8.2	9.0
7.9	9.0
7.3	9.0
6.9	9.8
6.6	10.0
6.7	9.8
6.9	9.3
7.0	9.0
7.1	9.0
7.2	9.1
7.1	9.1
6.9	9.1
7.0	9.2
6.8	8.8
6.4	8.3
6.7	8.4
6.6	8.1
6.4	7.7
6.3	7.9
6.2	7.9
6.5	8.0
6.8	7.9
6.8	7.6
6.4	7.1
6.1	6.8
5.8	6.5
6.1	6.9
7.2	8.2
7.3	8.7
6.9	8.3
6.1	7.9
5.8	7.5
6.2	7.8
7.1	8.3
7.7	8.4
7.9	8.2
7.7	7.7
7.4	7.2
7.5	7.3
8.0	8.1
8.1	8.5




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 3.1325199786894 + 0.448188598827917X[t] -0.196529035695261M1[t] -0.199326052210974M2[t] -0.129014384656366M3[t] + 0.0461667554608419M4[t] + 0.305492807671817M5[t] + 0.434456579648375M6[t] + 0.444094299413959M7[t] + 0.420623335109216M8[t] + 0.326116142781033M9[t] + 0.117152370804475M10[t] + 0.129637719765584M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  3.1325199786894 +  0.448188598827917X[t] -0.196529035695261M1[t] -0.199326052210974M2[t] -0.129014384656366M3[t] +  0.0461667554608419M4[t] +  0.305492807671817M5[t] +  0.434456579648375M6[t] +  0.444094299413959M7[t] +  0.420623335109216M8[t] +  0.326116142781033M9[t] +  0.117152370804475M10[t] +  0.129637719765584M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59630&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  3.1325199786894 +  0.448188598827917X[t] -0.196529035695261M1[t] -0.199326052210974M2[t] -0.129014384656366M3[t] +  0.0461667554608419M4[t] +  0.305492807671817M5[t] +  0.434456579648375M6[t] +  0.444094299413959M7[t] +  0.420623335109216M8[t] +  0.326116142781033M9[t] +  0.117152370804475M10[t] +  0.129637719765584M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59630&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59630&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] = + 3.1325199786894 + 0.448188598827917X[t] -0.196529035695261M1[t] -0.199326052210974M2[t] -0.129014384656366M3[t] + 0.0461667554608419M4[t] + 0.305492807671817M5[t] + 0.434456579648375M6[t] + 0.444094299413959M7[t] + 0.420623335109216M8[t] + 0.326116142781033M9[t] + 0.117152370804475M10[t] + 0.129637719765584M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)3.13251997868940.7789254.02160.0002080.000104
X0.4481885988279170.0811275.52451e-061e-06
M1-0.1965290356952610.345024-0.56960.5716550.285827
M2-0.1993260522109740.344688-0.57830.5658360.282918
M3-0.1290143846563660.347362-0.37140.7120.356
M40.04616675546084190.3463940.13330.8945430.447271
M50.3054928076718170.3451270.88520.3805760.190288
M60.4344565796483750.3452371.25840.2144520.107226
M70.4440942994139590.3467591.28070.2065830.103291
M80.4206233351092160.3498541.20230.2352770.117638
M90.3261161427810330.3545630.91980.362390.181195
M100.1171523708044750.3541810.33080.7422880.371144
M110.1296377197655840.344760.3760.7085920.354296

\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) & 3.1325199786894 & 0.778925 & 4.0216 & 0.000208 & 0.000104 \tabularnewline
X & 0.448188598827917 & 0.081127 & 5.5245 & 1e-06 & 1e-06 \tabularnewline
M1 & -0.196529035695261 & 0.345024 & -0.5696 & 0.571655 & 0.285827 \tabularnewline
M2 & -0.199326052210974 & 0.344688 & -0.5783 & 0.565836 & 0.282918 \tabularnewline
M3 & -0.129014384656366 & 0.347362 & -0.3714 & 0.712 & 0.356 \tabularnewline
M4 & 0.0461667554608419 & 0.346394 & 0.1333 & 0.894543 & 0.447271 \tabularnewline
M5 & 0.305492807671817 & 0.345127 & 0.8852 & 0.380576 & 0.190288 \tabularnewline
M6 & 0.434456579648375 & 0.345237 & 1.2584 & 0.214452 & 0.107226 \tabularnewline
M7 & 0.444094299413959 & 0.346759 & 1.2807 & 0.206583 & 0.103291 \tabularnewline
M8 & 0.420623335109216 & 0.349854 & 1.2023 & 0.235277 & 0.117638 \tabularnewline
M9 & 0.326116142781033 & 0.354563 & 0.9198 & 0.36239 & 0.181195 \tabularnewline
M10 & 0.117152370804475 & 0.354181 & 0.3308 & 0.742288 & 0.371144 \tabularnewline
M11 & 0.129637719765584 & 0.34476 & 0.376 & 0.708592 & 0.354296 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59630&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]3.1325199786894[/C][C]0.778925[/C][C]4.0216[/C][C]0.000208[/C][C]0.000104[/C][/ROW]
[ROW][C]X[/C][C]0.448188598827917[/C][C]0.081127[/C][C]5.5245[/C][C]1e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M1[/C][C]-0.196529035695261[/C][C]0.345024[/C][C]-0.5696[/C][C]0.571655[/C][C]0.285827[/C][/ROW]
[ROW][C]M2[/C][C]-0.199326052210974[/C][C]0.344688[/C][C]-0.5783[/C][C]0.565836[/C][C]0.282918[/C][/ROW]
[ROW][C]M3[/C][C]-0.129014384656366[/C][C]0.347362[/C][C]-0.3714[/C][C]0.712[/C][C]0.356[/C][/ROW]
[ROW][C]M4[/C][C]0.0461667554608419[/C][C]0.346394[/C][C]0.1333[/C][C]0.894543[/C][C]0.447271[/C][/ROW]
[ROW][C]M5[/C][C]0.305492807671817[/C][C]0.345127[/C][C]0.8852[/C][C]0.380576[/C][C]0.190288[/C][/ROW]
[ROW][C]M6[/C][C]0.434456579648375[/C][C]0.345237[/C][C]1.2584[/C][C]0.214452[/C][C]0.107226[/C][/ROW]
[ROW][C]M7[/C][C]0.444094299413959[/C][C]0.346759[/C][C]1.2807[/C][C]0.206583[/C][C]0.103291[/C][/ROW]
[ROW][C]M8[/C][C]0.420623335109216[/C][C]0.349854[/C][C]1.2023[/C][C]0.235277[/C][C]0.117638[/C][/ROW]
[ROW][C]M9[/C][C]0.326116142781033[/C][C]0.354563[/C][C]0.9198[/C][C]0.36239[/C][C]0.181195[/C][/ROW]
[ROW][C]M10[/C][C]0.117152370804475[/C][C]0.354181[/C][C]0.3308[/C][C]0.742288[/C][C]0.371144[/C][/ROW]
[ROW][C]M11[/C][C]0.129637719765584[/C][C]0.34476[/C][C]0.376[/C][C]0.708592[/C][C]0.354296[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59630&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59630&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)3.13251997868940.7789254.02160.0002080.000104
X0.4481885988279170.0811275.52451e-061e-06
M1-0.1965290356952610.345024-0.56960.5716550.285827
M2-0.1993260522109740.344688-0.57830.5658360.282918
M3-0.1290143846563660.347362-0.37140.7120.356
M40.04616675546084190.3463940.13330.8945430.447271
M50.3054928076718170.3451270.88520.3805760.190288
M60.4344565796483750.3452371.25840.2144520.107226
M70.4440942994139590.3467591.28070.2065830.103291
M80.4206233351092160.3498541.20230.2352770.117638
M90.3261161427810330.3545630.91980.362390.181195
M100.1171523708044750.3541810.33080.7422880.371144
M110.1296377197655840.344760.3760.7085920.354296







Multiple Linear Regression - Regression Statistics
Multiple R0.6765523075421
R-squared0.45772302484054
Adjusted R-squared0.319269329055146
F-TEST (value)3.30596465658829
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.00159533698611725
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.544509777370832
Sum Squared Residuals13.9350721896644

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.6765523075421 \tabularnewline
R-squared & 0.45772302484054 \tabularnewline
Adjusted R-squared & 0.319269329055146 \tabularnewline
F-TEST (value) & 3.30596465658829 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.00159533698611725 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.544509777370832 \tabularnewline
Sum Squared Residuals & 13.9350721896644 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59630&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.6765523075421[/C][/ROW]
[ROW][C]R-squared[/C][C]0.45772302484054[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.319269329055146[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]3.30596465658829[/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]0.00159533698611725[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.544509777370832[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]13.9350721896644[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59630&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59630&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.6765523075421
R-squared0.45772302484054
Adjusted R-squared0.319269329055146
F-TEST (value)3.30596465658829
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.00159533698611725
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.544509777370832
Sum Squared Residuals13.9350721896644







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.17.821246670218450.278753329781554
27.77.415079914757590.284920085242410
37.57.126840703249870.373159296750134
47.67.302021843367070.297978156632925
57.87.695804475226420.104195524773575
67.87.86958710708577-0.0695871070857745
77.87.83440596696857-0.0344059669685666
87.57.63165956313266-0.131659563132658
97.57.447514651038890.0524853489611086
107.17.28336973894512-0.183369738945125
117.57.78886254661694-0.288862546616941
127.57.74886254661694-0.248862546616941
137.67.507514651038890.0924853489611116
147.77.235804475226430.464195524773575
157.77.126840703249870.573159296750134
167.97.346840703249870.553159296750134
178.17.650985615343630.449014384656367
188.27.779949387320190.420050612679808
198.27.699949387320190.500050612679808
208.27.586840703249870.613159296750133
217.97.492333510921680.407666489078317
227.37.283369738945130.0166302610548752
236.97.65440596696857-0.754405966968567
246.67.61440596696857-1.01440596696857
256.77.32823921150772-0.628239211507722
266.97.10134789557805-0.20134789557805
2777.03720298348428-0.0372029834842833
287.17.2123841236015-0.112384123601492
297.27.51652903569526-0.316529035695258
307.17.64549280767182-0.545492807671816
316.97.6551305274374-0.7551305274374
3277.67647842301545-0.676478423015449
336.87.4026957911561-0.6026957911561
346.46.96963771976558-0.569637719765583
356.77.02694192860948-0.326941928609484
366.66.76284762919552-0.162847629195525
376.46.38704315396910.0129568460309029
386.36.47388385721897-0.173883857218968
396.26.54419552477358-0.344195524773575
406.56.76419552477358-0.264195524773575
416.86.97870271710176-0.178702717101759
426.86.97320990942994-0.173209909429942
436.46.75875332978157-0.358753329781567
446.16.60082578582845-0.500825785828451
455.86.37186201385189-0.571862013851893
466.16.3421736814065-0.242173681406501
477.26.93730420884390.2626957911561
487.37.031760788492270.268239211507725
496.96.655956313265850.244043686734153
506.16.47388385721897-0.373883857218968
515.86.36492008524241-0.564920085242409
526.26.67455780500799-0.474557805007992
537.17.15797815663293-0.0579781566329257
547.77.331760788492280.368239211507725
557.97.251760788492280.648239211507725
567.77.004195524773570.695804475226425
577.46.685594033031430.714405966968567
587.56.521449120937670.978550879062333
5986.892485348961111.10751465103889
608.16.942123068726691.15787693127331

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.1 & 7.82124667021845 & 0.278753329781554 \tabularnewline
2 & 7.7 & 7.41507991475759 & 0.284920085242410 \tabularnewline
3 & 7.5 & 7.12684070324987 & 0.373159296750134 \tabularnewline
4 & 7.6 & 7.30202184336707 & 0.297978156632925 \tabularnewline
5 & 7.8 & 7.69580447522642 & 0.104195524773575 \tabularnewline
6 & 7.8 & 7.86958710708577 & -0.0695871070857745 \tabularnewline
7 & 7.8 & 7.83440596696857 & -0.0344059669685666 \tabularnewline
8 & 7.5 & 7.63165956313266 & -0.131659563132658 \tabularnewline
9 & 7.5 & 7.44751465103889 & 0.0524853489611086 \tabularnewline
10 & 7.1 & 7.28336973894512 & -0.183369738945125 \tabularnewline
11 & 7.5 & 7.78886254661694 & -0.288862546616941 \tabularnewline
12 & 7.5 & 7.74886254661694 & -0.248862546616941 \tabularnewline
13 & 7.6 & 7.50751465103889 & 0.0924853489611116 \tabularnewline
14 & 7.7 & 7.23580447522643 & 0.464195524773575 \tabularnewline
15 & 7.7 & 7.12684070324987 & 0.573159296750134 \tabularnewline
16 & 7.9 & 7.34684070324987 & 0.553159296750134 \tabularnewline
17 & 8.1 & 7.65098561534363 & 0.449014384656367 \tabularnewline
18 & 8.2 & 7.77994938732019 & 0.420050612679808 \tabularnewline
19 & 8.2 & 7.69994938732019 & 0.500050612679808 \tabularnewline
20 & 8.2 & 7.58684070324987 & 0.613159296750133 \tabularnewline
21 & 7.9 & 7.49233351092168 & 0.407666489078317 \tabularnewline
22 & 7.3 & 7.28336973894513 & 0.0166302610548752 \tabularnewline
23 & 6.9 & 7.65440596696857 & -0.754405966968567 \tabularnewline
24 & 6.6 & 7.61440596696857 & -1.01440596696857 \tabularnewline
25 & 6.7 & 7.32823921150772 & -0.628239211507722 \tabularnewline
26 & 6.9 & 7.10134789557805 & -0.20134789557805 \tabularnewline
27 & 7 & 7.03720298348428 & -0.0372029834842833 \tabularnewline
28 & 7.1 & 7.2123841236015 & -0.112384123601492 \tabularnewline
29 & 7.2 & 7.51652903569526 & -0.316529035695258 \tabularnewline
30 & 7.1 & 7.64549280767182 & -0.545492807671816 \tabularnewline
31 & 6.9 & 7.6551305274374 & -0.7551305274374 \tabularnewline
32 & 7 & 7.67647842301545 & -0.676478423015449 \tabularnewline
33 & 6.8 & 7.4026957911561 & -0.6026957911561 \tabularnewline
34 & 6.4 & 6.96963771976558 & -0.569637719765583 \tabularnewline
35 & 6.7 & 7.02694192860948 & -0.326941928609484 \tabularnewline
36 & 6.6 & 6.76284762919552 & -0.162847629195525 \tabularnewline
37 & 6.4 & 6.3870431539691 & 0.0129568460309029 \tabularnewline
38 & 6.3 & 6.47388385721897 & -0.173883857218968 \tabularnewline
39 & 6.2 & 6.54419552477358 & -0.344195524773575 \tabularnewline
40 & 6.5 & 6.76419552477358 & -0.264195524773575 \tabularnewline
41 & 6.8 & 6.97870271710176 & -0.178702717101759 \tabularnewline
42 & 6.8 & 6.97320990942994 & -0.173209909429942 \tabularnewline
43 & 6.4 & 6.75875332978157 & -0.358753329781567 \tabularnewline
44 & 6.1 & 6.60082578582845 & -0.500825785828451 \tabularnewline
45 & 5.8 & 6.37186201385189 & -0.571862013851893 \tabularnewline
46 & 6.1 & 6.3421736814065 & -0.242173681406501 \tabularnewline
47 & 7.2 & 6.9373042088439 & 0.2626957911561 \tabularnewline
48 & 7.3 & 7.03176078849227 & 0.268239211507725 \tabularnewline
49 & 6.9 & 6.65595631326585 & 0.244043686734153 \tabularnewline
50 & 6.1 & 6.47388385721897 & -0.373883857218968 \tabularnewline
51 & 5.8 & 6.36492008524241 & -0.564920085242409 \tabularnewline
52 & 6.2 & 6.67455780500799 & -0.474557805007992 \tabularnewline
53 & 7.1 & 7.15797815663293 & -0.0579781566329257 \tabularnewline
54 & 7.7 & 7.33176078849228 & 0.368239211507725 \tabularnewline
55 & 7.9 & 7.25176078849228 & 0.648239211507725 \tabularnewline
56 & 7.7 & 7.00419552477357 & 0.695804475226425 \tabularnewline
57 & 7.4 & 6.68559403303143 & 0.714405966968567 \tabularnewline
58 & 7.5 & 6.52144912093767 & 0.978550879062333 \tabularnewline
59 & 8 & 6.89248534896111 & 1.10751465103889 \tabularnewline
60 & 8.1 & 6.94212306872669 & 1.15787693127331 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59630&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.1[/C][C]7.82124667021845[/C][C]0.278753329781554[/C][/ROW]
[ROW][C]2[/C][C]7.7[/C][C]7.41507991475759[/C][C]0.284920085242410[/C][/ROW]
[ROW][C]3[/C][C]7.5[/C][C]7.12684070324987[/C][C]0.373159296750134[/C][/ROW]
[ROW][C]4[/C][C]7.6[/C][C]7.30202184336707[/C][C]0.297978156632925[/C][/ROW]
[ROW][C]5[/C][C]7.8[/C][C]7.69580447522642[/C][C]0.104195524773575[/C][/ROW]
[ROW][C]6[/C][C]7.8[/C][C]7.86958710708577[/C][C]-0.0695871070857745[/C][/ROW]
[ROW][C]7[/C][C]7.8[/C][C]7.83440596696857[/C][C]-0.0344059669685666[/C][/ROW]
[ROW][C]8[/C][C]7.5[/C][C]7.63165956313266[/C][C]-0.131659563132658[/C][/ROW]
[ROW][C]9[/C][C]7.5[/C][C]7.44751465103889[/C][C]0.0524853489611086[/C][/ROW]
[ROW][C]10[/C][C]7.1[/C][C]7.28336973894512[/C][C]-0.183369738945125[/C][/ROW]
[ROW][C]11[/C][C]7.5[/C][C]7.78886254661694[/C][C]-0.288862546616941[/C][/ROW]
[ROW][C]12[/C][C]7.5[/C][C]7.74886254661694[/C][C]-0.248862546616941[/C][/ROW]
[ROW][C]13[/C][C]7.6[/C][C]7.50751465103889[/C][C]0.0924853489611116[/C][/ROW]
[ROW][C]14[/C][C]7.7[/C][C]7.23580447522643[/C][C]0.464195524773575[/C][/ROW]
[ROW][C]15[/C][C]7.7[/C][C]7.12684070324987[/C][C]0.573159296750134[/C][/ROW]
[ROW][C]16[/C][C]7.9[/C][C]7.34684070324987[/C][C]0.553159296750134[/C][/ROW]
[ROW][C]17[/C][C]8.1[/C][C]7.65098561534363[/C][C]0.449014384656367[/C][/ROW]
[ROW][C]18[/C][C]8.2[/C][C]7.77994938732019[/C][C]0.420050612679808[/C][/ROW]
[ROW][C]19[/C][C]8.2[/C][C]7.69994938732019[/C][C]0.500050612679808[/C][/ROW]
[ROW][C]20[/C][C]8.2[/C][C]7.58684070324987[/C][C]0.613159296750133[/C][/ROW]
[ROW][C]21[/C][C]7.9[/C][C]7.49233351092168[/C][C]0.407666489078317[/C][/ROW]
[ROW][C]22[/C][C]7.3[/C][C]7.28336973894513[/C][C]0.0166302610548752[/C][/ROW]
[ROW][C]23[/C][C]6.9[/C][C]7.65440596696857[/C][C]-0.754405966968567[/C][/ROW]
[ROW][C]24[/C][C]6.6[/C][C]7.61440596696857[/C][C]-1.01440596696857[/C][/ROW]
[ROW][C]25[/C][C]6.7[/C][C]7.32823921150772[/C][C]-0.628239211507722[/C][/ROW]
[ROW][C]26[/C][C]6.9[/C][C]7.10134789557805[/C][C]-0.20134789557805[/C][/ROW]
[ROW][C]27[/C][C]7[/C][C]7.03720298348428[/C][C]-0.0372029834842833[/C][/ROW]
[ROW][C]28[/C][C]7.1[/C][C]7.2123841236015[/C][C]-0.112384123601492[/C][/ROW]
[ROW][C]29[/C][C]7.2[/C][C]7.51652903569526[/C][C]-0.316529035695258[/C][/ROW]
[ROW][C]30[/C][C]7.1[/C][C]7.64549280767182[/C][C]-0.545492807671816[/C][/ROW]
[ROW][C]31[/C][C]6.9[/C][C]7.6551305274374[/C][C]-0.7551305274374[/C][/ROW]
[ROW][C]32[/C][C]7[/C][C]7.67647842301545[/C][C]-0.676478423015449[/C][/ROW]
[ROW][C]33[/C][C]6.8[/C][C]7.4026957911561[/C][C]-0.6026957911561[/C][/ROW]
[ROW][C]34[/C][C]6.4[/C][C]6.96963771976558[/C][C]-0.569637719765583[/C][/ROW]
[ROW][C]35[/C][C]6.7[/C][C]7.02694192860948[/C][C]-0.326941928609484[/C][/ROW]
[ROW][C]36[/C][C]6.6[/C][C]6.76284762919552[/C][C]-0.162847629195525[/C][/ROW]
[ROW][C]37[/C][C]6.4[/C][C]6.3870431539691[/C][C]0.0129568460309029[/C][/ROW]
[ROW][C]38[/C][C]6.3[/C][C]6.47388385721897[/C][C]-0.173883857218968[/C][/ROW]
[ROW][C]39[/C][C]6.2[/C][C]6.54419552477358[/C][C]-0.344195524773575[/C][/ROW]
[ROW][C]40[/C][C]6.5[/C][C]6.76419552477358[/C][C]-0.264195524773575[/C][/ROW]
[ROW][C]41[/C][C]6.8[/C][C]6.97870271710176[/C][C]-0.178702717101759[/C][/ROW]
[ROW][C]42[/C][C]6.8[/C][C]6.97320990942994[/C][C]-0.173209909429942[/C][/ROW]
[ROW][C]43[/C][C]6.4[/C][C]6.75875332978157[/C][C]-0.358753329781567[/C][/ROW]
[ROW][C]44[/C][C]6.1[/C][C]6.60082578582845[/C][C]-0.500825785828451[/C][/ROW]
[ROW][C]45[/C][C]5.8[/C][C]6.37186201385189[/C][C]-0.571862013851893[/C][/ROW]
[ROW][C]46[/C][C]6.1[/C][C]6.3421736814065[/C][C]-0.242173681406501[/C][/ROW]
[ROW][C]47[/C][C]7.2[/C][C]6.9373042088439[/C][C]0.2626957911561[/C][/ROW]
[ROW][C]48[/C][C]7.3[/C][C]7.03176078849227[/C][C]0.268239211507725[/C][/ROW]
[ROW][C]49[/C][C]6.9[/C][C]6.65595631326585[/C][C]0.244043686734153[/C][/ROW]
[ROW][C]50[/C][C]6.1[/C][C]6.47388385721897[/C][C]-0.373883857218968[/C][/ROW]
[ROW][C]51[/C][C]5.8[/C][C]6.36492008524241[/C][C]-0.564920085242409[/C][/ROW]
[ROW][C]52[/C][C]6.2[/C][C]6.67455780500799[/C][C]-0.474557805007992[/C][/ROW]
[ROW][C]53[/C][C]7.1[/C][C]7.15797815663293[/C][C]-0.0579781566329257[/C][/ROW]
[ROW][C]54[/C][C]7.7[/C][C]7.33176078849228[/C][C]0.368239211507725[/C][/ROW]
[ROW][C]55[/C][C]7.9[/C][C]7.25176078849228[/C][C]0.648239211507725[/C][/ROW]
[ROW][C]56[/C][C]7.7[/C][C]7.00419552477357[/C][C]0.695804475226425[/C][/ROW]
[ROW][C]57[/C][C]7.4[/C][C]6.68559403303143[/C][C]0.714405966968567[/C][/ROW]
[ROW][C]58[/C][C]7.5[/C][C]6.52144912093767[/C][C]0.978550879062333[/C][/ROW]
[ROW][C]59[/C][C]8[/C][C]6.89248534896111[/C][C]1.10751465103889[/C][/ROW]
[ROW][C]60[/C][C]8.1[/C][C]6.94212306872669[/C][C]1.15787693127331[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59630&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59630&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.17.821246670218450.278753329781554
27.77.415079914757590.284920085242410
37.57.126840703249870.373159296750134
47.67.302021843367070.297978156632925
57.87.695804475226420.104195524773575
67.87.86958710708577-0.0695871070857745
77.87.83440596696857-0.0344059669685666
87.57.63165956313266-0.131659563132658
97.57.447514651038890.0524853489611086
107.17.28336973894512-0.183369738945125
117.57.78886254661694-0.288862546616941
127.57.74886254661694-0.248862546616941
137.67.507514651038890.0924853489611116
147.77.235804475226430.464195524773575
157.77.126840703249870.573159296750134
167.97.346840703249870.553159296750134
178.17.650985615343630.449014384656367
188.27.779949387320190.420050612679808
198.27.699949387320190.500050612679808
208.27.586840703249870.613159296750133
217.97.492333510921680.407666489078317
227.37.283369738945130.0166302610548752
236.97.65440596696857-0.754405966968567
246.67.61440596696857-1.01440596696857
256.77.32823921150772-0.628239211507722
266.97.10134789557805-0.20134789557805
2777.03720298348428-0.0372029834842833
287.17.2123841236015-0.112384123601492
297.27.51652903569526-0.316529035695258
307.17.64549280767182-0.545492807671816
316.97.6551305274374-0.7551305274374
3277.67647842301545-0.676478423015449
336.87.4026957911561-0.6026957911561
346.46.96963771976558-0.569637719765583
356.77.02694192860948-0.326941928609484
366.66.76284762919552-0.162847629195525
376.46.38704315396910.0129568460309029
386.36.47388385721897-0.173883857218968
396.26.54419552477358-0.344195524773575
406.56.76419552477358-0.264195524773575
416.86.97870271710176-0.178702717101759
426.86.97320990942994-0.173209909429942
436.46.75875332978157-0.358753329781567
446.16.60082578582845-0.500825785828451
455.86.37186201385189-0.571862013851893
466.16.3421736814065-0.242173681406501
477.26.93730420884390.2626957911561
487.37.031760788492270.268239211507725
496.96.655956313265850.244043686734153
506.16.47388385721897-0.373883857218968
515.86.36492008524241-0.564920085242409
526.26.67455780500799-0.474557805007992
537.17.15797815663293-0.0579781566329257
547.77.331760788492280.368239211507725
557.97.251760788492280.648239211507725
567.77.004195524773570.695804475226425
577.46.685594033031430.714405966968567
587.56.521449120937670.978550879062333
5986.892485348961111.10751465103889
608.16.942123068726691.15787693127331







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.02603562532923020.05207125065846040.97396437467077
170.01770525565152510.03541051130305030.982294744348475
180.01958324494215870.03916648988431750.980416755057841
190.01858916640205760.03717833280411520.981410833597942
200.03570564459727540.07141128919455080.964294355402725
210.02693324431373800.05386648862747610.973066755686262
220.01357319934443360.02714639868886720.986426800655566
230.01334011531861020.02668023063722050.98665988468139
240.03003010799219460.06006021598438920.969969892007805
250.03133059109068980.06266118218137950.96866940890931
260.01941560020547650.03883120041095310.980584399794523
270.01508350119966660.03016700239933320.984916498800333
280.01066364719502210.02132729439004410.989336352804978
290.006448594144665690.01289718828933140.993551405855334
300.004653637113499790.009307274226999580.9953463628865
310.00869222978357370.01738445956714740.991307770216426
320.02796238993246690.05592477986493370.972037610067533
330.05175424293405560.1035084858681110.948245757065944
340.2118619244641440.4237238489282880.788138075535856
350.6188818216744310.7622363566511380.381118178325569
360.6495554740252570.7008890519494860.350444525974743
370.5837460105597430.8325079788805140.416253989440257
380.4878997934045320.9757995868090640.512100206595468
390.4126475762143550.8252951524287090.587352423785645
400.3135420942586420.6270841885172840.686457905741358
410.2278997645989370.4557995291978740.772100235401063
420.1602483279510170.3204966559020340.839751672048983
430.1073223588849080.2146447177698160.892677641115092
440.05407355520477620.1081471104095520.945926444795224

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.0260356253292302 & 0.0520712506584604 & 0.97396437467077 \tabularnewline
17 & 0.0177052556515251 & 0.0354105113030503 & 0.982294744348475 \tabularnewline
18 & 0.0195832449421587 & 0.0391664898843175 & 0.980416755057841 \tabularnewline
19 & 0.0185891664020576 & 0.0371783328041152 & 0.981410833597942 \tabularnewline
20 & 0.0357056445972754 & 0.0714112891945508 & 0.964294355402725 \tabularnewline
21 & 0.0269332443137380 & 0.0538664886274761 & 0.973066755686262 \tabularnewline
22 & 0.0135731993444336 & 0.0271463986888672 & 0.986426800655566 \tabularnewline
23 & 0.0133401153186102 & 0.0266802306372205 & 0.98665988468139 \tabularnewline
24 & 0.0300301079921946 & 0.0600602159843892 & 0.969969892007805 \tabularnewline
25 & 0.0313305910906898 & 0.0626611821813795 & 0.96866940890931 \tabularnewline
26 & 0.0194156002054765 & 0.0388312004109531 & 0.980584399794523 \tabularnewline
27 & 0.0150835011996666 & 0.0301670023993332 & 0.984916498800333 \tabularnewline
28 & 0.0106636471950221 & 0.0213272943900441 & 0.989336352804978 \tabularnewline
29 & 0.00644859414466569 & 0.0128971882893314 & 0.993551405855334 \tabularnewline
30 & 0.00465363711349979 & 0.00930727422699958 & 0.9953463628865 \tabularnewline
31 & 0.0086922297835737 & 0.0173844595671474 & 0.991307770216426 \tabularnewline
32 & 0.0279623899324669 & 0.0559247798649337 & 0.972037610067533 \tabularnewline
33 & 0.0517542429340556 & 0.103508485868111 & 0.948245757065944 \tabularnewline
34 & 0.211861924464144 & 0.423723848928288 & 0.788138075535856 \tabularnewline
35 & 0.618881821674431 & 0.762236356651138 & 0.381118178325569 \tabularnewline
36 & 0.649555474025257 & 0.700889051949486 & 0.350444525974743 \tabularnewline
37 & 0.583746010559743 & 0.832507978880514 & 0.416253989440257 \tabularnewline
38 & 0.487899793404532 & 0.975799586809064 & 0.512100206595468 \tabularnewline
39 & 0.412647576214355 & 0.825295152428709 & 0.587352423785645 \tabularnewline
40 & 0.313542094258642 & 0.627084188517284 & 0.686457905741358 \tabularnewline
41 & 0.227899764598937 & 0.455799529197874 & 0.772100235401063 \tabularnewline
42 & 0.160248327951017 & 0.320496655902034 & 0.839751672048983 \tabularnewline
43 & 0.107322358884908 & 0.214644717769816 & 0.892677641115092 \tabularnewline
44 & 0.0540735552047762 & 0.108147110409552 & 0.945926444795224 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=59630&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.0260356253292302[/C][C]0.0520712506584604[/C][C]0.97396437467077[/C][/ROW]
[ROW][C]17[/C][C]0.0177052556515251[/C][C]0.0354105113030503[/C][C]0.982294744348475[/C][/ROW]
[ROW][C]18[/C][C]0.0195832449421587[/C][C]0.0391664898843175[/C][C]0.980416755057841[/C][/ROW]
[ROW][C]19[/C][C]0.0185891664020576[/C][C]0.0371783328041152[/C][C]0.981410833597942[/C][/ROW]
[ROW][C]20[/C][C]0.0357056445972754[/C][C]0.0714112891945508[/C][C]0.964294355402725[/C][/ROW]
[ROW][C]21[/C][C]0.0269332443137380[/C][C]0.0538664886274761[/C][C]0.973066755686262[/C][/ROW]
[ROW][C]22[/C][C]0.0135731993444336[/C][C]0.0271463986888672[/C][C]0.986426800655566[/C][/ROW]
[ROW][C]23[/C][C]0.0133401153186102[/C][C]0.0266802306372205[/C][C]0.98665988468139[/C][/ROW]
[ROW][C]24[/C][C]0.0300301079921946[/C][C]0.0600602159843892[/C][C]0.969969892007805[/C][/ROW]
[ROW][C]25[/C][C]0.0313305910906898[/C][C]0.0626611821813795[/C][C]0.96866940890931[/C][/ROW]
[ROW][C]26[/C][C]0.0194156002054765[/C][C]0.0388312004109531[/C][C]0.980584399794523[/C][/ROW]
[ROW][C]27[/C][C]0.0150835011996666[/C][C]0.0301670023993332[/C][C]0.984916498800333[/C][/ROW]
[ROW][C]28[/C][C]0.0106636471950221[/C][C]0.0213272943900441[/C][C]0.989336352804978[/C][/ROW]
[ROW][C]29[/C][C]0.00644859414466569[/C][C]0.0128971882893314[/C][C]0.993551405855334[/C][/ROW]
[ROW][C]30[/C][C]0.00465363711349979[/C][C]0.00930727422699958[/C][C]0.9953463628865[/C][/ROW]
[ROW][C]31[/C][C]0.0086922297835737[/C][C]0.0173844595671474[/C][C]0.991307770216426[/C][/ROW]
[ROW][C]32[/C][C]0.0279623899324669[/C][C]0.0559247798649337[/C][C]0.972037610067533[/C][/ROW]
[ROW][C]33[/C][C]0.0517542429340556[/C][C]0.103508485868111[/C][C]0.948245757065944[/C][/ROW]
[ROW][C]34[/C][C]0.211861924464144[/C][C]0.423723848928288[/C][C]0.788138075535856[/C][/ROW]
[ROW][C]35[/C][C]0.618881821674431[/C][C]0.762236356651138[/C][C]0.381118178325569[/C][/ROW]
[ROW][C]36[/C][C]0.649555474025257[/C][C]0.700889051949486[/C][C]0.350444525974743[/C][/ROW]
[ROW][C]37[/C][C]0.583746010559743[/C][C]0.832507978880514[/C][C]0.416253989440257[/C][/ROW]
[ROW][C]38[/C][C]0.487899793404532[/C][C]0.975799586809064[/C][C]0.512100206595468[/C][/ROW]
[ROW][C]39[/C][C]0.412647576214355[/C][C]0.825295152428709[/C][C]0.587352423785645[/C][/ROW]
[ROW][C]40[/C][C]0.313542094258642[/C][C]0.627084188517284[/C][C]0.686457905741358[/C][/ROW]
[ROW][C]41[/C][C]0.227899764598937[/C][C]0.455799529197874[/C][C]0.772100235401063[/C][/ROW]
[ROW][C]42[/C][C]0.160248327951017[/C][C]0.320496655902034[/C][C]0.839751672048983[/C][/ROW]
[ROW][C]43[/C][C]0.107322358884908[/C][C]0.214644717769816[/C][C]0.892677641115092[/C][/ROW]
[ROW][C]44[/C][C]0.0540735552047762[/C][C]0.108147110409552[/C][C]0.945926444795224[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=59630&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=59630&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.02603562532923020.05207125065846040.97396437467077
170.01770525565152510.03541051130305030.982294744348475
180.01958324494215870.03916648988431750.980416755057841
190.01858916640205760.03717833280411520.981410833597942
200.03570564459727540.07141128919455080.964294355402725
210.02693324431373800.05386648862747610.973066755686262
220.01357319934443360.02714639868886720.986426800655566
230.01334011531861020.02668023063722050.98665988468139
240.03003010799219460.06006021598438920.969969892007805
250.03133059109068980.06266118218137950.96866940890931
260.01941560020547650.03883120041095310.980584399794523
270.01508350119966660.03016700239933320.984916498800333
280.01066364719502210.02132729439004410.989336352804978
290.006448594144665690.01289718828933140.993551405855334
300.004653637113499790.009307274226999580.9953463628865
310.00869222978357370.01738445956714740.991307770216426
320.02796238993246690.05592477986493370.972037610067533
330.05175424293405560.1035084858681110.948245757065944
340.2118619244641440.4237238489282880.788138075535856
350.6188818216744310.7622363566511380.381118178325569
360.6495554740252570.7008890519494860.350444525974743
370.5837460105597430.8325079788805140.416253989440257
380.4878997934045320.9757995868090640.512100206595468
390.4126475762143550.8252951524287090.587352423785645
400.3135420942586420.6270841885172840.686457905741358
410.2278997645989370.4557995291978740.772100235401063
420.1602483279510170.3204966559020340.839751672048983
430.1073223588849080.2146447177698160.892677641115092
440.05407355520477620.1081471104095520.945926444795224







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

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

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



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