Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationFri, 20 Nov 2009 14:01:44 -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/t1258750995n8m07p5gji3p6gn.htm/, Retrieved Fri, 19 Apr 2024 16:05:06 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58466, Retrieved Fri, 19 Apr 2024 16:05:06 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact127
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] [2009-11-19 16:50:09] [b5908418e3090fddbd22f5f0f774653d]
-             [Multiple Regression] [WS 7-3] [2009-11-20 21:01:44] [a53416c107f5e7e1e12bb9940270d09d] [Current]
Feedback Forum

Post a new message
Dataseries X:
9,3	98,3
9,3	112,3
8,7	113,9
8,2	106,2
8,3	98,6
8,5	96,5
8,6	95,9
8,5	103,7
8,2	103,1
8,1	103,7
7,9	112,1
8,6	86,9
8,7	95
8,7	111,8
8,5	108,8
8,4	109,3
8,5	101,4
8,7	100,5
8,7	100,7
8,6	113,5
8,5	106,1
8,3	111,6
8	114,9
8,2	88,6
8,1	99,5
8,1	115,1
8	118
7,9	111,4
7,9	107,3
8	105,3
8	105,3
7,9	117,9
8	110,2
7,7	112,4
7,2	117,5
7,5	93
7,3	103,5
7	116,3
7	120
7	114,3
7,2	104,7
7,3	109,8
7,1	112,6
6,8	114,4
6,4	115,7
6,1	114,7
6,5	118,4
7,7	94,9
7,9	103,8
7,5	115,1
6,9	113,7
6,6	104
6,9	94,3
7,7	92,5
8	93,2
8	104,7
7,7	94
7,3	98,1
7,4	102,7
8,1	82,4




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time9 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 & 9 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58466&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]9 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=58466&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58466&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 time9 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 12.1462142797098 -0.0462787604274321X[t] + 0.742587338241901M1[t] + 1.25511786026870M2[t] + 0.990289718193554M3[t] + 0.520021757297351M4[t] + 0.299973001171929M5[t] + 0.564238222626601M6[t] + 0.63293105409161M7[t] + 0.943323526066729M8[t] + 0.511004148721019M9[t] + 0.356519722495564M10[t] + 0.488839099841274M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  12.1462142797098 -0.0462787604274321X[t] +  0.742587338241901M1[t] +  1.25511786026870M2[t] +  0.990289718193554M3[t] +  0.520021757297351M4[t] +  0.299973001171929M5[t] +  0.564238222626601M6[t] +  0.63293105409161M7[t] +  0.943323526066729M8[t] +  0.511004148721019M9[t] +  0.356519722495564M10[t] +  0.488839099841274M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58466&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  12.1462142797098 -0.0462787604274321X[t] +  0.742587338241901M1[t] +  1.25511786026870M2[t] +  0.990289718193554M3[t] +  0.520021757297351M4[t] +  0.299973001171929M5[t] +  0.564238222626601M6[t] +  0.63293105409161M7[t] +  0.943323526066729M8[t] +  0.511004148721019M9[t] +  0.356519722495564M10[t] +  0.488839099841274M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58466&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58466&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] = + 12.1462142797098 -0.0462787604274321X[t] + 0.742587338241901M1[t] + 1.25511786026870M2[t] + 0.990289718193554M3[t] + 0.520021757297351M4[t] + 0.299973001171929M5[t] + 0.564238222626601M6[t] + 0.63293105409161M7[t] + 0.943323526066729M8[t] + 0.511004148721019M9[t] + 0.356519722495564M10[t] + 0.488839099841274M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)12.14621427970981.557477.798700
X-0.04627876042743210.017123-2.70270.0095410.004771
M10.7425873382419010.473631.56790.1236220.061811
M21.255117860268700.6102562.05670.0452890.022645
M30.9902897181935540.619441.59870.1165920.058296
M40.5200217572973510.5528330.94060.3516940.175847
M50.2999730011719290.4823620.62190.5370240.268512
M60.5642382226266010.479891.17580.245610.122805
M70.632931054091610.4844411.30650.1977340.098867
M80.9433235260667290.5723271.64820.1059760.052988
M90.5110041487210190.5206970.98140.3314280.165714
M100.3565197224955640.543070.65650.5147110.257355
M110.4888390998412740.5983880.81690.4180920.209046

\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) & 12.1462142797098 & 1.55747 & 7.7987 & 0 & 0 \tabularnewline
X & -0.0462787604274321 & 0.017123 & -2.7027 & 0.009541 & 0.004771 \tabularnewline
M1 & 0.742587338241901 & 0.47363 & 1.5679 & 0.123622 & 0.061811 \tabularnewline
M2 & 1.25511786026870 & 0.610256 & 2.0567 & 0.045289 & 0.022645 \tabularnewline
M3 & 0.990289718193554 & 0.61944 & 1.5987 & 0.116592 & 0.058296 \tabularnewline
M4 & 0.520021757297351 & 0.552833 & 0.9406 & 0.351694 & 0.175847 \tabularnewline
M5 & 0.299973001171929 & 0.482362 & 0.6219 & 0.537024 & 0.268512 \tabularnewline
M6 & 0.564238222626601 & 0.47989 & 1.1758 & 0.24561 & 0.122805 \tabularnewline
M7 & 0.63293105409161 & 0.484441 & 1.3065 & 0.197734 & 0.098867 \tabularnewline
M8 & 0.943323526066729 & 0.572327 & 1.6482 & 0.105976 & 0.052988 \tabularnewline
M9 & 0.511004148721019 & 0.520697 & 0.9814 & 0.331428 & 0.165714 \tabularnewline
M10 & 0.356519722495564 & 0.54307 & 0.6565 & 0.514711 & 0.257355 \tabularnewline
M11 & 0.488839099841274 & 0.598388 & 0.8169 & 0.418092 & 0.209046 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58466&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]12.1462142797098[/C][C]1.55747[/C][C]7.7987[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]-0.0462787604274321[/C][C]0.017123[/C][C]-2.7027[/C][C]0.009541[/C][C]0.004771[/C][/ROW]
[ROW][C]M1[/C][C]0.742587338241901[/C][C]0.47363[/C][C]1.5679[/C][C]0.123622[/C][C]0.061811[/C][/ROW]
[ROW][C]M2[/C][C]1.25511786026870[/C][C]0.610256[/C][C]2.0567[/C][C]0.045289[/C][C]0.022645[/C][/ROW]
[ROW][C]M3[/C][C]0.990289718193554[/C][C]0.61944[/C][C]1.5987[/C][C]0.116592[/C][C]0.058296[/C][/ROW]
[ROW][C]M4[/C][C]0.520021757297351[/C][C]0.552833[/C][C]0.9406[/C][C]0.351694[/C][C]0.175847[/C][/ROW]
[ROW][C]M5[/C][C]0.299973001171929[/C][C]0.482362[/C][C]0.6219[/C][C]0.537024[/C][C]0.268512[/C][/ROW]
[ROW][C]M6[/C][C]0.564238222626601[/C][C]0.47989[/C][C]1.1758[/C][C]0.24561[/C][C]0.122805[/C][/ROW]
[ROW][C]M7[/C][C]0.63293105409161[/C][C]0.484441[/C][C]1.3065[/C][C]0.197734[/C][C]0.098867[/C][/ROW]
[ROW][C]M8[/C][C]0.943323526066729[/C][C]0.572327[/C][C]1.6482[/C][C]0.105976[/C][C]0.052988[/C][/ROW]
[ROW][C]M9[/C][C]0.511004148721019[/C][C]0.520697[/C][C]0.9814[/C][C]0.331428[/C][C]0.165714[/C][/ROW]
[ROW][C]M10[/C][C]0.356519722495564[/C][C]0.54307[/C][C]0.6565[/C][C]0.514711[/C][C]0.257355[/C][/ROW]
[ROW][C]M11[/C][C]0.488839099841274[/C][C]0.598388[/C][C]0.8169[/C][C]0.418092[/C][C]0.209046[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58466&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58466&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)12.14621427970981.557477.798700
X-0.04627876042743210.017123-2.70270.0095410.004771
M10.7425873382419010.473631.56790.1236220.061811
M21.255117860268700.6102562.05670.0452890.022645
M30.9902897181935540.619441.59870.1165920.058296
M40.5200217572973510.5528330.94060.3516940.175847
M50.2999730011719290.4823620.62190.5370240.268512
M60.5642382226266010.479891.17580.245610.122805
M70.632931054091610.4844411.30650.1977340.098867
M80.9433235260667290.5723271.64820.1059760.052988
M90.5110041487210190.5206970.98140.3314280.165714
M100.3565197224955640.543070.65650.5147110.257355
M110.4888390998412740.5983880.81690.4180920.209046







Multiple Linear Regression - Regression Statistics
Multiple R0.496313832173041
R-squared0.24632742000629
Adjusted R-squared0.0539003783057682
F-TEST (value)1.28010812736837
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.261695716134239
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.68873946915187
Sum Squared Residuals22.2950166492772

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.496313832173041 \tabularnewline
R-squared & 0.24632742000629 \tabularnewline
Adjusted R-squared & 0.0539003783057682 \tabularnewline
F-TEST (value) & 1.28010812736837 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.261695716134239 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.68873946915187 \tabularnewline
Sum Squared Residuals & 22.2950166492772 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58466&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.496313832173041[/C][/ROW]
[ROW][C]R-squared[/C][C]0.24632742000629[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.0539003783057682[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]1.28010812736837[/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.261695716134239[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.68873946915187[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]22.2950166492772[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58466&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58466&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.496313832173041
R-squared0.24632742000629
Adjusted R-squared0.0539003783057682
F-TEST (value)1.28010812736837
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.261695716134239
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.68873946915187
Sum Squared Residuals22.2950166492772







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
19.38.339599467935230.960400532064768
29.38.204227343977931.09577265602207
38.77.865353185218880.834646814781115
48.27.75143167961390.448568320386093
58.37.883101502736970.416898497263031
68.58.244552121089250.25544787891075
78.68.341012208810720.258987791189283
88.58.290430349451870.209569650548135
98.27.885878228362620.314121771637384
108.17.70362654588070.396373454119299
117.97.447204335635980.452795664364019
128.68.1245899985660.475410001434004
138.78.49231937734570.207680622654303
148.78.227366724191640.472633275808357
158.58.101374863398790.398625136601213
168.47.607967522288870.792032477711132
178.57.753520973540160.74647902645984
188.78.059437079379520.640562920620478
198.78.118874158759040.581125841240957
208.67.836898497263030.763101502736969
218.57.747041947080320.752958052919681
228.37.338024338503990.961975661496013
2387.317623806439170.682376193560829
248.28.045916105839360.154083894160637
258.18.28406495542225-0.184064955422253
268.18.074646814781120.0253531852188832
2787.675610267466410.324389732533588
287.97.510782125391260.38921787460874
297.97.480476287018310.419523712981690
3087.837299029327850.162700970672153
3187.905991860792850.0940081392071448
327.97.633271951382330.266728048617671
3387.557299029327850.442700970672153
347.77.301001330162040.398998669837959
357.27.197299029327850.00270097067215272
367.57.84228955995866-0.342289559958661
377.38.09894991371252-0.798949913712524
3878.0191123022682-1.01911230226820
3977.58305274661155-0.583052746611547
4077.37657372015171-0.376573720151707
417.27.60080106412963-0.400801064129633
427.37.6290446074044-0.329044607404403
437.17.5681569096726-0.468156909672601
446.87.79524761287834-0.995247612878342
456.47.30276584697697-0.90276584697697
466.17.19456018117895-1.09456018117895
476.57.15564814494316-0.655648144943159
487.77.75435991514654-0.054359915146539
497.98.0850662855843-0.185066285584294
507.58.07464681478112-0.574646814781117
516.97.87460893730437-0.97460893730437
526.67.85324495255426-1.25324495255426
536.98.08210017257493-1.18210017257493
547.78.42966716279898-0.729667162798978
5588.46596486196478-0.465964861964783
5688.24415158902443-0.244151589024433
577.78.30701494825225-0.607014948252247
587.37.96278760427432-0.662787604274321
597.47.88222468365384-0.482224683653842
608.18.33284442048944-0.232844420489441

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 9.3 & 8.33959946793523 & 0.960400532064768 \tabularnewline
2 & 9.3 & 8.20422734397793 & 1.09577265602207 \tabularnewline
3 & 8.7 & 7.86535318521888 & 0.834646814781115 \tabularnewline
4 & 8.2 & 7.7514316796139 & 0.448568320386093 \tabularnewline
5 & 8.3 & 7.88310150273697 & 0.416898497263031 \tabularnewline
6 & 8.5 & 8.24455212108925 & 0.25544787891075 \tabularnewline
7 & 8.6 & 8.34101220881072 & 0.258987791189283 \tabularnewline
8 & 8.5 & 8.29043034945187 & 0.209569650548135 \tabularnewline
9 & 8.2 & 7.88587822836262 & 0.314121771637384 \tabularnewline
10 & 8.1 & 7.7036265458807 & 0.396373454119299 \tabularnewline
11 & 7.9 & 7.44720433563598 & 0.452795664364019 \tabularnewline
12 & 8.6 & 8.124589998566 & 0.475410001434004 \tabularnewline
13 & 8.7 & 8.4923193773457 & 0.207680622654303 \tabularnewline
14 & 8.7 & 8.22736672419164 & 0.472633275808357 \tabularnewline
15 & 8.5 & 8.10137486339879 & 0.398625136601213 \tabularnewline
16 & 8.4 & 7.60796752228887 & 0.792032477711132 \tabularnewline
17 & 8.5 & 7.75352097354016 & 0.74647902645984 \tabularnewline
18 & 8.7 & 8.05943707937952 & 0.640562920620478 \tabularnewline
19 & 8.7 & 8.11887415875904 & 0.581125841240957 \tabularnewline
20 & 8.6 & 7.83689849726303 & 0.763101502736969 \tabularnewline
21 & 8.5 & 7.74704194708032 & 0.752958052919681 \tabularnewline
22 & 8.3 & 7.33802433850399 & 0.961975661496013 \tabularnewline
23 & 8 & 7.31762380643917 & 0.682376193560829 \tabularnewline
24 & 8.2 & 8.04591610583936 & 0.154083894160637 \tabularnewline
25 & 8.1 & 8.28406495542225 & -0.184064955422253 \tabularnewline
26 & 8.1 & 8.07464681478112 & 0.0253531852188832 \tabularnewline
27 & 8 & 7.67561026746641 & 0.324389732533588 \tabularnewline
28 & 7.9 & 7.51078212539126 & 0.38921787460874 \tabularnewline
29 & 7.9 & 7.48047628701831 & 0.419523712981690 \tabularnewline
30 & 8 & 7.83729902932785 & 0.162700970672153 \tabularnewline
31 & 8 & 7.90599186079285 & 0.0940081392071448 \tabularnewline
32 & 7.9 & 7.63327195138233 & 0.266728048617671 \tabularnewline
33 & 8 & 7.55729902932785 & 0.442700970672153 \tabularnewline
34 & 7.7 & 7.30100133016204 & 0.398998669837959 \tabularnewline
35 & 7.2 & 7.19729902932785 & 0.00270097067215272 \tabularnewline
36 & 7.5 & 7.84228955995866 & -0.342289559958661 \tabularnewline
37 & 7.3 & 8.09894991371252 & -0.798949913712524 \tabularnewline
38 & 7 & 8.0191123022682 & -1.01911230226820 \tabularnewline
39 & 7 & 7.58305274661155 & -0.583052746611547 \tabularnewline
40 & 7 & 7.37657372015171 & -0.376573720151707 \tabularnewline
41 & 7.2 & 7.60080106412963 & -0.400801064129633 \tabularnewline
42 & 7.3 & 7.6290446074044 & -0.329044607404403 \tabularnewline
43 & 7.1 & 7.5681569096726 & -0.468156909672601 \tabularnewline
44 & 6.8 & 7.79524761287834 & -0.995247612878342 \tabularnewline
45 & 6.4 & 7.30276584697697 & -0.90276584697697 \tabularnewline
46 & 6.1 & 7.19456018117895 & -1.09456018117895 \tabularnewline
47 & 6.5 & 7.15564814494316 & -0.655648144943159 \tabularnewline
48 & 7.7 & 7.75435991514654 & -0.054359915146539 \tabularnewline
49 & 7.9 & 8.0850662855843 & -0.185066285584294 \tabularnewline
50 & 7.5 & 8.07464681478112 & -0.574646814781117 \tabularnewline
51 & 6.9 & 7.87460893730437 & -0.97460893730437 \tabularnewline
52 & 6.6 & 7.85324495255426 & -1.25324495255426 \tabularnewline
53 & 6.9 & 8.08210017257493 & -1.18210017257493 \tabularnewline
54 & 7.7 & 8.42966716279898 & -0.729667162798978 \tabularnewline
55 & 8 & 8.46596486196478 & -0.465964861964783 \tabularnewline
56 & 8 & 8.24415158902443 & -0.244151589024433 \tabularnewline
57 & 7.7 & 8.30701494825225 & -0.607014948252247 \tabularnewline
58 & 7.3 & 7.96278760427432 & -0.662787604274321 \tabularnewline
59 & 7.4 & 7.88222468365384 & -0.482224683653842 \tabularnewline
60 & 8.1 & 8.33284442048944 & -0.232844420489441 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58466&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]9.3[/C][C]8.33959946793523[/C][C]0.960400532064768[/C][/ROW]
[ROW][C]2[/C][C]9.3[/C][C]8.20422734397793[/C][C]1.09577265602207[/C][/ROW]
[ROW][C]3[/C][C]8.7[/C][C]7.86535318521888[/C][C]0.834646814781115[/C][/ROW]
[ROW][C]4[/C][C]8.2[/C][C]7.7514316796139[/C][C]0.448568320386093[/C][/ROW]
[ROW][C]5[/C][C]8.3[/C][C]7.88310150273697[/C][C]0.416898497263031[/C][/ROW]
[ROW][C]6[/C][C]8.5[/C][C]8.24455212108925[/C][C]0.25544787891075[/C][/ROW]
[ROW][C]7[/C][C]8.6[/C][C]8.34101220881072[/C][C]0.258987791189283[/C][/ROW]
[ROW][C]8[/C][C]8.5[/C][C]8.29043034945187[/C][C]0.209569650548135[/C][/ROW]
[ROW][C]9[/C][C]8.2[/C][C]7.88587822836262[/C][C]0.314121771637384[/C][/ROW]
[ROW][C]10[/C][C]8.1[/C][C]7.7036265458807[/C][C]0.396373454119299[/C][/ROW]
[ROW][C]11[/C][C]7.9[/C][C]7.44720433563598[/C][C]0.452795664364019[/C][/ROW]
[ROW][C]12[/C][C]8.6[/C][C]8.124589998566[/C][C]0.475410001434004[/C][/ROW]
[ROW][C]13[/C][C]8.7[/C][C]8.4923193773457[/C][C]0.207680622654303[/C][/ROW]
[ROW][C]14[/C][C]8.7[/C][C]8.22736672419164[/C][C]0.472633275808357[/C][/ROW]
[ROW][C]15[/C][C]8.5[/C][C]8.10137486339879[/C][C]0.398625136601213[/C][/ROW]
[ROW][C]16[/C][C]8.4[/C][C]7.60796752228887[/C][C]0.792032477711132[/C][/ROW]
[ROW][C]17[/C][C]8.5[/C][C]7.75352097354016[/C][C]0.74647902645984[/C][/ROW]
[ROW][C]18[/C][C]8.7[/C][C]8.05943707937952[/C][C]0.640562920620478[/C][/ROW]
[ROW][C]19[/C][C]8.7[/C][C]8.11887415875904[/C][C]0.581125841240957[/C][/ROW]
[ROW][C]20[/C][C]8.6[/C][C]7.83689849726303[/C][C]0.763101502736969[/C][/ROW]
[ROW][C]21[/C][C]8.5[/C][C]7.74704194708032[/C][C]0.752958052919681[/C][/ROW]
[ROW][C]22[/C][C]8.3[/C][C]7.33802433850399[/C][C]0.961975661496013[/C][/ROW]
[ROW][C]23[/C][C]8[/C][C]7.31762380643917[/C][C]0.682376193560829[/C][/ROW]
[ROW][C]24[/C][C]8.2[/C][C]8.04591610583936[/C][C]0.154083894160637[/C][/ROW]
[ROW][C]25[/C][C]8.1[/C][C]8.28406495542225[/C][C]-0.184064955422253[/C][/ROW]
[ROW][C]26[/C][C]8.1[/C][C]8.07464681478112[/C][C]0.0253531852188832[/C][/ROW]
[ROW][C]27[/C][C]8[/C][C]7.67561026746641[/C][C]0.324389732533588[/C][/ROW]
[ROW][C]28[/C][C]7.9[/C][C]7.51078212539126[/C][C]0.38921787460874[/C][/ROW]
[ROW][C]29[/C][C]7.9[/C][C]7.48047628701831[/C][C]0.419523712981690[/C][/ROW]
[ROW][C]30[/C][C]8[/C][C]7.83729902932785[/C][C]0.162700970672153[/C][/ROW]
[ROW][C]31[/C][C]8[/C][C]7.90599186079285[/C][C]0.0940081392071448[/C][/ROW]
[ROW][C]32[/C][C]7.9[/C][C]7.63327195138233[/C][C]0.266728048617671[/C][/ROW]
[ROW][C]33[/C][C]8[/C][C]7.55729902932785[/C][C]0.442700970672153[/C][/ROW]
[ROW][C]34[/C][C]7.7[/C][C]7.30100133016204[/C][C]0.398998669837959[/C][/ROW]
[ROW][C]35[/C][C]7.2[/C][C]7.19729902932785[/C][C]0.00270097067215272[/C][/ROW]
[ROW][C]36[/C][C]7.5[/C][C]7.84228955995866[/C][C]-0.342289559958661[/C][/ROW]
[ROW][C]37[/C][C]7.3[/C][C]8.09894991371252[/C][C]-0.798949913712524[/C][/ROW]
[ROW][C]38[/C][C]7[/C][C]8.0191123022682[/C][C]-1.01911230226820[/C][/ROW]
[ROW][C]39[/C][C]7[/C][C]7.58305274661155[/C][C]-0.583052746611547[/C][/ROW]
[ROW][C]40[/C][C]7[/C][C]7.37657372015171[/C][C]-0.376573720151707[/C][/ROW]
[ROW][C]41[/C][C]7.2[/C][C]7.60080106412963[/C][C]-0.400801064129633[/C][/ROW]
[ROW][C]42[/C][C]7.3[/C][C]7.6290446074044[/C][C]-0.329044607404403[/C][/ROW]
[ROW][C]43[/C][C]7.1[/C][C]7.5681569096726[/C][C]-0.468156909672601[/C][/ROW]
[ROW][C]44[/C][C]6.8[/C][C]7.79524761287834[/C][C]-0.995247612878342[/C][/ROW]
[ROW][C]45[/C][C]6.4[/C][C]7.30276584697697[/C][C]-0.90276584697697[/C][/ROW]
[ROW][C]46[/C][C]6.1[/C][C]7.19456018117895[/C][C]-1.09456018117895[/C][/ROW]
[ROW][C]47[/C][C]6.5[/C][C]7.15564814494316[/C][C]-0.655648144943159[/C][/ROW]
[ROW][C]48[/C][C]7.7[/C][C]7.75435991514654[/C][C]-0.054359915146539[/C][/ROW]
[ROW][C]49[/C][C]7.9[/C][C]8.0850662855843[/C][C]-0.185066285584294[/C][/ROW]
[ROW][C]50[/C][C]7.5[/C][C]8.07464681478112[/C][C]-0.574646814781117[/C][/ROW]
[ROW][C]51[/C][C]6.9[/C][C]7.87460893730437[/C][C]-0.97460893730437[/C][/ROW]
[ROW][C]52[/C][C]6.6[/C][C]7.85324495255426[/C][C]-1.25324495255426[/C][/ROW]
[ROW][C]53[/C][C]6.9[/C][C]8.08210017257493[/C][C]-1.18210017257493[/C][/ROW]
[ROW][C]54[/C][C]7.7[/C][C]8.42966716279898[/C][C]-0.729667162798978[/C][/ROW]
[ROW][C]55[/C][C]8[/C][C]8.46596486196478[/C][C]-0.465964861964783[/C][/ROW]
[ROW][C]56[/C][C]8[/C][C]8.24415158902443[/C][C]-0.244151589024433[/C][/ROW]
[ROW][C]57[/C][C]7.7[/C][C]8.30701494825225[/C][C]-0.607014948252247[/C][/ROW]
[ROW][C]58[/C][C]7.3[/C][C]7.96278760427432[/C][C]-0.662787604274321[/C][/ROW]
[ROW][C]59[/C][C]7.4[/C][C]7.88222468365384[/C][C]-0.482224683653842[/C][/ROW]
[ROW][C]60[/C][C]8.1[/C][C]8.33284442048944[/C][C]-0.232844420489441[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58466&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58466&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
19.38.339599467935230.960400532064768
29.38.204227343977931.09577265602207
38.77.865353185218880.834646814781115
48.27.75143167961390.448568320386093
58.37.883101502736970.416898497263031
68.58.244552121089250.25544787891075
78.68.341012208810720.258987791189283
88.58.290430349451870.209569650548135
98.27.885878228362620.314121771637384
108.17.70362654588070.396373454119299
117.97.447204335635980.452795664364019
128.68.1245899985660.475410001434004
138.78.49231937734570.207680622654303
148.78.227366724191640.472633275808357
158.58.101374863398790.398625136601213
168.47.607967522288870.792032477711132
178.57.753520973540160.74647902645984
188.78.059437079379520.640562920620478
198.78.118874158759040.581125841240957
208.67.836898497263030.763101502736969
218.57.747041947080320.752958052919681
228.37.338024338503990.961975661496013
2387.317623806439170.682376193560829
248.28.045916105839360.154083894160637
258.18.28406495542225-0.184064955422253
268.18.074646814781120.0253531852188832
2787.675610267466410.324389732533588
287.97.510782125391260.38921787460874
297.97.480476287018310.419523712981690
3087.837299029327850.162700970672153
3187.905991860792850.0940081392071448
327.97.633271951382330.266728048617671
3387.557299029327850.442700970672153
347.77.301001330162040.398998669837959
357.27.197299029327850.00270097067215272
367.57.84228955995866-0.342289559958661
377.38.09894991371252-0.798949913712524
3878.0191123022682-1.01911230226820
3977.58305274661155-0.583052746611547
4077.37657372015171-0.376573720151707
417.27.60080106412963-0.400801064129633
427.37.6290446074044-0.329044607404403
437.17.5681569096726-0.468156909672601
446.87.79524761287834-0.995247612878342
456.47.30276584697697-0.90276584697697
466.17.19456018117895-1.09456018117895
476.57.15564814494316-0.655648144943159
487.77.75435991514654-0.054359915146539
497.98.0850662855843-0.185066285584294
507.58.07464681478112-0.574646814781117
516.97.87460893730437-0.97460893730437
526.67.85324495255426-1.25324495255426
536.98.08210017257493-1.18210017257493
547.78.42966716279898-0.729667162798978
5588.46596486196478-0.465964861964783
5688.24415158902443-0.244151589024433
577.78.30701494825225-0.607014948252247
587.37.96278760427432-0.662787604274321
597.47.88222468365384-0.482224683653842
608.18.33284442048944-0.232844420489441







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.08744041911205980.1748808382241200.91255958088794
170.03268684774918200.06537369549836390.967313152250818
180.01199408711200980.02398817422401960.98800591288799
190.005239877592589850.01047975518517970.99476012240741
200.003645347079042280.007290694158084550.996354652920958
210.001838001379686090.003676002759372180.998161998620314
220.001039448919318840.002078897838637690.998960551080681
230.0004803609903442150.000960721980688430.999519639009656
240.0005339893050062990.001067978610012600.999466010694994
250.01115780306856980.02231560613713950.98884219693143
260.04176692729584610.08353385459169230.958233072704154
270.05986559823008740.1197311964601750.940134401769913
280.07423421160639680.1484684232127940.925765788393603
290.09244252170944470.1848850434188890.907557478290555
300.0872233291688260.1744466583376520.912776670831174
310.07708764446873860.1541752889374770.922912355531261
320.07649940989450290.1529988197890060.923500590105497
330.1290950299803920.2581900599607840.870904970019608
340.3332933599656310.6665867199312610.66670664003437
350.3859723519175480.7719447038350960.614027648082452
360.3685619446846450.737123889369290.631438055315355
370.5386920662872640.9226158674254720.461307933712736
380.7205500360794320.5588999278411360.279449963920568
390.708978411896670.5820431762066610.291021588103331
400.8181588165677770.3636823668644460.181841183432223
410.9158554565546550.1682890868906890.0841445434453446
420.9292040742574570.1415918514850870.0707959257425433
430.8797713144392040.2404573711215910.120228685560796
440.9562144881062740.08757102378745240.0437855118937262

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.0874404191120598 & 0.174880838224120 & 0.91255958088794 \tabularnewline
17 & 0.0326868477491820 & 0.0653736954983639 & 0.967313152250818 \tabularnewline
18 & 0.0119940871120098 & 0.0239881742240196 & 0.98800591288799 \tabularnewline
19 & 0.00523987759258985 & 0.0104797551851797 & 0.99476012240741 \tabularnewline
20 & 0.00364534707904228 & 0.00729069415808455 & 0.996354652920958 \tabularnewline
21 & 0.00183800137968609 & 0.00367600275937218 & 0.998161998620314 \tabularnewline
22 & 0.00103944891931884 & 0.00207889783863769 & 0.998960551080681 \tabularnewline
23 & 0.000480360990344215 & 0.00096072198068843 & 0.999519639009656 \tabularnewline
24 & 0.000533989305006299 & 0.00106797861001260 & 0.999466010694994 \tabularnewline
25 & 0.0111578030685698 & 0.0223156061371395 & 0.98884219693143 \tabularnewline
26 & 0.0417669272958461 & 0.0835338545916923 & 0.958233072704154 \tabularnewline
27 & 0.0598655982300874 & 0.119731196460175 & 0.940134401769913 \tabularnewline
28 & 0.0742342116063968 & 0.148468423212794 & 0.925765788393603 \tabularnewline
29 & 0.0924425217094447 & 0.184885043418889 & 0.907557478290555 \tabularnewline
30 & 0.087223329168826 & 0.174446658337652 & 0.912776670831174 \tabularnewline
31 & 0.0770876444687386 & 0.154175288937477 & 0.922912355531261 \tabularnewline
32 & 0.0764994098945029 & 0.152998819789006 & 0.923500590105497 \tabularnewline
33 & 0.129095029980392 & 0.258190059960784 & 0.870904970019608 \tabularnewline
34 & 0.333293359965631 & 0.666586719931261 & 0.66670664003437 \tabularnewline
35 & 0.385972351917548 & 0.771944703835096 & 0.614027648082452 \tabularnewline
36 & 0.368561944684645 & 0.73712388936929 & 0.631438055315355 \tabularnewline
37 & 0.538692066287264 & 0.922615867425472 & 0.461307933712736 \tabularnewline
38 & 0.720550036079432 & 0.558899927841136 & 0.279449963920568 \tabularnewline
39 & 0.70897841189667 & 0.582043176206661 & 0.291021588103331 \tabularnewline
40 & 0.818158816567777 & 0.363682366864446 & 0.181841183432223 \tabularnewline
41 & 0.915855456554655 & 0.168289086890689 & 0.0841445434453446 \tabularnewline
42 & 0.929204074257457 & 0.141591851485087 & 0.0707959257425433 \tabularnewline
43 & 0.879771314439204 & 0.240457371121591 & 0.120228685560796 \tabularnewline
44 & 0.956214488106274 & 0.0875710237874524 & 0.0437855118937262 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58466&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.0874404191120598[/C][C]0.174880838224120[/C][C]0.91255958088794[/C][/ROW]
[ROW][C]17[/C][C]0.0326868477491820[/C][C]0.0653736954983639[/C][C]0.967313152250818[/C][/ROW]
[ROW][C]18[/C][C]0.0119940871120098[/C][C]0.0239881742240196[/C][C]0.98800591288799[/C][/ROW]
[ROW][C]19[/C][C]0.00523987759258985[/C][C]0.0104797551851797[/C][C]0.99476012240741[/C][/ROW]
[ROW][C]20[/C][C]0.00364534707904228[/C][C]0.00729069415808455[/C][C]0.996354652920958[/C][/ROW]
[ROW][C]21[/C][C]0.00183800137968609[/C][C]0.00367600275937218[/C][C]0.998161998620314[/C][/ROW]
[ROW][C]22[/C][C]0.00103944891931884[/C][C]0.00207889783863769[/C][C]0.998960551080681[/C][/ROW]
[ROW][C]23[/C][C]0.000480360990344215[/C][C]0.00096072198068843[/C][C]0.999519639009656[/C][/ROW]
[ROW][C]24[/C][C]0.000533989305006299[/C][C]0.00106797861001260[/C][C]0.999466010694994[/C][/ROW]
[ROW][C]25[/C][C]0.0111578030685698[/C][C]0.0223156061371395[/C][C]0.98884219693143[/C][/ROW]
[ROW][C]26[/C][C]0.0417669272958461[/C][C]0.0835338545916923[/C][C]0.958233072704154[/C][/ROW]
[ROW][C]27[/C][C]0.0598655982300874[/C][C]0.119731196460175[/C][C]0.940134401769913[/C][/ROW]
[ROW][C]28[/C][C]0.0742342116063968[/C][C]0.148468423212794[/C][C]0.925765788393603[/C][/ROW]
[ROW][C]29[/C][C]0.0924425217094447[/C][C]0.184885043418889[/C][C]0.907557478290555[/C][/ROW]
[ROW][C]30[/C][C]0.087223329168826[/C][C]0.174446658337652[/C][C]0.912776670831174[/C][/ROW]
[ROW][C]31[/C][C]0.0770876444687386[/C][C]0.154175288937477[/C][C]0.922912355531261[/C][/ROW]
[ROW][C]32[/C][C]0.0764994098945029[/C][C]0.152998819789006[/C][C]0.923500590105497[/C][/ROW]
[ROW][C]33[/C][C]0.129095029980392[/C][C]0.258190059960784[/C][C]0.870904970019608[/C][/ROW]
[ROW][C]34[/C][C]0.333293359965631[/C][C]0.666586719931261[/C][C]0.66670664003437[/C][/ROW]
[ROW][C]35[/C][C]0.385972351917548[/C][C]0.771944703835096[/C][C]0.614027648082452[/C][/ROW]
[ROW][C]36[/C][C]0.368561944684645[/C][C]0.73712388936929[/C][C]0.631438055315355[/C][/ROW]
[ROW][C]37[/C][C]0.538692066287264[/C][C]0.922615867425472[/C][C]0.461307933712736[/C][/ROW]
[ROW][C]38[/C][C]0.720550036079432[/C][C]0.558899927841136[/C][C]0.279449963920568[/C][/ROW]
[ROW][C]39[/C][C]0.70897841189667[/C][C]0.582043176206661[/C][C]0.291021588103331[/C][/ROW]
[ROW][C]40[/C][C]0.818158816567777[/C][C]0.363682366864446[/C][C]0.181841183432223[/C][/ROW]
[ROW][C]41[/C][C]0.915855456554655[/C][C]0.168289086890689[/C][C]0.0841445434453446[/C][/ROW]
[ROW][C]42[/C][C]0.929204074257457[/C][C]0.141591851485087[/C][C]0.0707959257425433[/C][/ROW]
[ROW][C]43[/C][C]0.879771314439204[/C][C]0.240457371121591[/C][C]0.120228685560796[/C][/ROW]
[ROW][C]44[/C][C]0.956214488106274[/C][C]0.0875710237874524[/C][C]0.0437855118937262[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58466&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58466&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.08744041911205980.1748808382241200.91255958088794
170.03268684774918200.06537369549836390.967313152250818
180.01199408711200980.02398817422401960.98800591288799
190.005239877592589850.01047975518517970.99476012240741
200.003645347079042280.007290694158084550.996354652920958
210.001838001379686090.003676002759372180.998161998620314
220.001039448919318840.002078897838637690.998960551080681
230.0004803609903442150.000960721980688430.999519639009656
240.0005339893050062990.001067978610012600.999466010694994
250.01115780306856980.02231560613713950.98884219693143
260.04176692729584610.08353385459169230.958233072704154
270.05986559823008740.1197311964601750.940134401769913
280.07423421160639680.1484684232127940.925765788393603
290.09244252170944470.1848850434188890.907557478290555
300.0872233291688260.1744466583376520.912776670831174
310.07708764446873860.1541752889374770.922912355531261
320.07649940989450290.1529988197890060.923500590105497
330.1290950299803920.2581900599607840.870904970019608
340.3332933599656310.6665867199312610.66670664003437
350.3859723519175480.7719447038350960.614027648082452
360.3685619446846450.737123889369290.631438055315355
370.5386920662872640.9226158674254720.461307933712736
380.7205500360794320.5588999278411360.279449963920568
390.708978411896670.5820431762066610.291021588103331
400.8181588165677770.3636823668644460.181841183432223
410.9158554565546550.1682890868906890.0841445434453446
420.9292040742574570.1415918514850870.0707959257425433
430.8797713144392040.2404573711215910.120228685560796
440.9562144881062740.08757102378745240.0437855118937262







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

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

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



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 ; par4 = ; par5 = ; par6 = ; par7 = ; par8 = ; par9 = ; par10 = ; par11 = ; par12 = ; par13 = ; par14 = ; par15 = ; par16 = ; par17 = ; par18 = ; par19 = ; par20 = ;
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')
}