Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationThu, 27 Nov 2008 11:49:28 -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/2008/Nov/27/t1227811878p52ye7ers7ryuti.htm/, Retrieved Sun, 19 May 2024 12:34:52 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=25878, Retrieved Sun, 19 May 2024 12:34:52 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact147
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F     [Multiple Regression] [] [2007-11-19 19:55:31] [b731da8b544846036771bbf9bf2f34ce]
- R PD    [Multiple Regression] [] [2008-11-27 18:49:28] [8fe13e00c5696af38d958e9734b9d18e] [Current]
Feedback Forum

Post a new message
Dataseries X:
99,90	0
99,80	0
99,80	0
100,30	0
99,90	0
99,90	0
100,00	0
100,10	0
100,10	0
100,20	0
100,30	0
100,60	0
100,00	0
100,10	0
100,20	0
100,00	0
100,10	0
100,10	0
100,10	0
100,50	0
100,50	0
100,50	0
96,30	1
96,30	1
96,80	1
96,80	1
96,90	1
96,80	1
96,80	1
96,80	1
96,80	1
97,00	1
97,00	1
97,00	1
96,80	1
96,90	1
97,20	1
97,30	1
97,30	1
97,20	1
97,30	1
97,30	1
97,30	1
97,30	1
97,30	1
97,30	1
98,10	1
96,80	1
96,80	1
96,80	1
96,80	1
96,80	1
96,80	1
96,80	1
96,80	1
96,80	1
96,80	1
96,80	1
96,90	1
97,10	1
97,10	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24

\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 & 5 seconds \tabularnewline
R Server & 'Sir Ronald Aylmer Fisher' @ 193.190.124.24 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25878&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]5 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Sir Ronald Aylmer Fisher' @ 193.190.124.24[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25878&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25878&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 time5 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24







Multiple Linear Regression - Estimated Regression Equation
x[t] = + 99.987186311787 -3.39458174904943d[t] + 0.0113445289395954M1[t] + 0.0156611744824651M2[t] + 0.0482034220532331M3[t] + 0.0607456696239968M4[t] + 0.0132879171947611M5[t] + 0.00583016476552596M6[t] + 0.0183724123362896M7[t] + 0.150914659907055M8[t] + 0.14345690747782M9[t] + 0.155999155048586M10[t] + 0.147457752429236M11[t] + 0.00745775242923516t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
x[t] =  +  99.987186311787 -3.39458174904943d[t] +  0.0113445289395954M1[t] +  0.0156611744824651M2[t] +  0.0482034220532331M3[t] +  0.0607456696239968M4[t] +  0.0132879171947611M5[t] +  0.00583016476552596M6[t] +  0.0183724123362896M7[t] +  0.150914659907055M8[t] +  0.14345690747782M9[t] +  0.155999155048586M10[t] +  0.147457752429236M11[t] +  0.00745775242923516t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25878&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]x[t] =  +  99.987186311787 -3.39458174904943d[t] +  0.0113445289395954M1[t] +  0.0156611744824651M2[t] +  0.0482034220532331M3[t] +  0.0607456696239968M4[t] +  0.0132879171947611M5[t] +  0.00583016476552596M6[t] +  0.0183724123362896M7[t] +  0.150914659907055M8[t] +  0.14345690747782M9[t] +  0.155999155048586M10[t] +  0.147457752429236M11[t] +  0.00745775242923516t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25878&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25878&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
x[t] = + 99.987186311787 -3.39458174904943d[t] + 0.0113445289395954M1[t] + 0.0156611744824651M2[t] + 0.0482034220532331M3[t] + 0.0607456696239968M4[t] + 0.0132879171947611M5[t] + 0.00583016476552596M6[t] + 0.0183724123362896M7[t] + 0.150914659907055M8[t] + 0.14345690747782M9[t] + 0.155999155048586M10[t] + 0.147457752429236M11[t] + 0.00745775242923516t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)99.9871863117870.155868641.484400
d-3.394581749049430.147489-23.015900
M10.01134452893959540.1817560.06240.9504960.475248
M20.01566117448246510.1907960.08210.9349290.467465
M30.04820342205323310.1905080.2530.8013510.400676
M40.06074566962399680.1903040.31920.7509870.375493
M50.01328791719476110.1901860.06990.9445950.472298
M60.005830164765525960.1901530.03070.975670.487835
M70.01837241233628960.1902060.09660.9234610.46173
M80.1509146599070550.1903440.79290.4318480.215924
M90.143456907477820.1905670.75280.4553310.227666
M100.1559991550485860.1908760.81730.4178920.208946
M110.1474577524292360.1895070.77810.4404020.220201
t0.007457752429235160.0040341.84880.0707770.035389

\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) & 99.987186311787 & 0.155868 & 641.4844 & 0 & 0 \tabularnewline
d & -3.39458174904943 & 0.147489 & -23.0159 & 0 & 0 \tabularnewline
M1 & 0.0113445289395954 & 0.181756 & 0.0624 & 0.950496 & 0.475248 \tabularnewline
M2 & 0.0156611744824651 & 0.190796 & 0.0821 & 0.934929 & 0.467465 \tabularnewline
M3 & 0.0482034220532331 & 0.190508 & 0.253 & 0.801351 & 0.400676 \tabularnewline
M4 & 0.0607456696239968 & 0.190304 & 0.3192 & 0.750987 & 0.375493 \tabularnewline
M5 & 0.0132879171947611 & 0.190186 & 0.0699 & 0.944595 & 0.472298 \tabularnewline
M6 & 0.00583016476552596 & 0.190153 & 0.0307 & 0.97567 & 0.487835 \tabularnewline
M7 & 0.0183724123362896 & 0.190206 & 0.0966 & 0.923461 & 0.46173 \tabularnewline
M8 & 0.150914659907055 & 0.190344 & 0.7929 & 0.431848 & 0.215924 \tabularnewline
M9 & 0.14345690747782 & 0.190567 & 0.7528 & 0.455331 & 0.227666 \tabularnewline
M10 & 0.155999155048586 & 0.190876 & 0.8173 & 0.417892 & 0.208946 \tabularnewline
M11 & 0.147457752429236 & 0.189507 & 0.7781 & 0.440402 & 0.220201 \tabularnewline
t & 0.00745775242923516 & 0.004034 & 1.8488 & 0.070777 & 0.035389 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25878&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]99.987186311787[/C][C]0.155868[/C][C]641.4844[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]d[/C][C]-3.39458174904943[/C][C]0.147489[/C][C]-23.0159[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]0.0113445289395954[/C][C]0.181756[/C][C]0.0624[/C][C]0.950496[/C][C]0.475248[/C][/ROW]
[ROW][C]M2[/C][C]0.0156611744824651[/C][C]0.190796[/C][C]0.0821[/C][C]0.934929[/C][C]0.467465[/C][/ROW]
[ROW][C]M3[/C][C]0.0482034220532331[/C][C]0.190508[/C][C]0.253[/C][C]0.801351[/C][C]0.400676[/C][/ROW]
[ROW][C]M4[/C][C]0.0607456696239968[/C][C]0.190304[/C][C]0.3192[/C][C]0.750987[/C][C]0.375493[/C][/ROW]
[ROW][C]M5[/C][C]0.0132879171947611[/C][C]0.190186[/C][C]0.0699[/C][C]0.944595[/C][C]0.472298[/C][/ROW]
[ROW][C]M6[/C][C]0.00583016476552596[/C][C]0.190153[/C][C]0.0307[/C][C]0.97567[/C][C]0.487835[/C][/ROW]
[ROW][C]M7[/C][C]0.0183724123362896[/C][C]0.190206[/C][C]0.0966[/C][C]0.923461[/C][C]0.46173[/C][/ROW]
[ROW][C]M8[/C][C]0.150914659907055[/C][C]0.190344[/C][C]0.7929[/C][C]0.431848[/C][C]0.215924[/C][/ROW]
[ROW][C]M9[/C][C]0.14345690747782[/C][C]0.190567[/C][C]0.7528[/C][C]0.455331[/C][C]0.227666[/C][/ROW]
[ROW][C]M10[/C][C]0.155999155048586[/C][C]0.190876[/C][C]0.8173[/C][C]0.417892[/C][C]0.208946[/C][/ROW]
[ROW][C]M11[/C][C]0.147457752429236[/C][C]0.189507[/C][C]0.7781[/C][C]0.440402[/C][C]0.220201[/C][/ROW]
[ROW][C]t[/C][C]0.00745775242923516[/C][C]0.004034[/C][C]1.8488[/C][C]0.070777[/C][C]0.035389[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25878&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25878&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)99.9871863117870.155868641.484400
d-3.394581749049430.147489-23.015900
M10.01134452893959540.1817560.06240.9504960.475248
M20.01566117448246510.1907960.08210.9349290.467465
M30.04820342205323310.1905080.2530.8013510.400676
M40.06074566962399680.1903040.31920.7509870.375493
M50.01328791719476110.1901860.06990.9445950.472298
M60.005830164765525960.1901530.03070.975670.487835
M70.01837241233628960.1902060.09660.9234610.46173
M80.1509146599070550.1903440.79290.4318480.215924
M90.143456907477820.1905670.75280.4553310.227666
M100.1559991550485860.1908760.81730.4178920.208946
M110.1474577524292360.1895070.77810.4404020.220201
t0.007457752429235160.0040341.84880.0707770.035389







Multiple Linear Regression - Regression Statistics
Multiple R0.98544365620693
R-squared0.971099199558481
Adjusted R-squared0.963105361138487
F-TEST (value)121.480964279878
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.299568472280454
Sum Squared Residuals4.21783967046893

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.98544365620693 \tabularnewline
R-squared & 0.971099199558481 \tabularnewline
Adjusted R-squared & 0.963105361138487 \tabularnewline
F-TEST (value) & 121.480964279878 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.299568472280454 \tabularnewline
Sum Squared Residuals & 4.21783967046893 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25878&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.98544365620693[/C][/ROW]
[ROW][C]R-squared[/C][C]0.971099199558481[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.963105361138487[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]121.480964279878[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.299568472280454[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]4.21783967046893[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25878&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25878&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.98544365620693
R-squared0.971099199558481
Adjusted R-squared0.963105361138487
F-TEST (value)121.480964279878
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.299568472280454
Sum Squared Residuals4.21783967046893







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
199.9100.005988593156-0.10598859315585
299.8100.017762991128-0.217762991128012
399.8100.057762991128-0.257762991128016
4100.3100.0777629911280.222237008871985
599.9100.037762991128-0.137762991128005
699.9100.037762991128-0.137762991128005
7100100.057762991128-0.05776299112801
8100.1100.197762991128-0.0977629911280163
9100.1100.197762991128-0.0977629911280163
10100.2100.217762991128-0.0177629911280094
11100.3100.2166793409380.0833206590621004
12100.6100.0766793409380.523320659062098
13100100.095481622307-0.0954816223067267
14100.1100.107256020279-0.00725602027883717
15100.2100.1472560202790.0527439797211681
16100100.167256020279-0.167256020278834
17100.1100.127256020279-0.0272560202788387
18100.1100.127256020279-0.0272560202788388
19100.1100.147256020279-0.0472560202788376
20100.5100.2872560202790.212743979721167
21100.5100.2872560202790.212743979721168
22100.5100.3072560202790.192743979721166
2396.396.9115906210393-0.611590621039294
2496.396.7715906210393-0.471590621039293
2596.896.79039290240810.0096070975918763
2696.896.8021673003802-0.00216730038022850
2796.996.84216730038020.0578326996197768
2896.896.8621673003802-0.0621673003802306
2996.896.8221673003802-0.02216730038023
3096.896.8221673003802-0.02216730038023
3196.896.8421673003802-0.0421673003802289
329796.98216730038020.0178326996197734
339796.98216730038020.0178326996197734
349797.0021673003802-0.00216730038022829
3596.897.0010836501901-0.201083650190116
3696.996.86108365019010.0389163498098936
3797.296.8798859315590.32011406844106
3897.396.8916603295310.408339670468949
3997.396.9316603295310.368339670468946
4097.296.9516603295310.248339670468953
4197.396.9116603295310.388339670468948
4297.396.9116603295310.388339670468948
4397.396.9316603295310.368339670468949
4497.397.0716603295310.228339670468949
4597.397.0716603295310.228339670468949
4697.397.0916603295310.208339670468947
4798.197.0905766793411.00942332065906
4896.896.950576679341-0.150576679340937
4996.896.9693789607098-0.169378960709768
5096.896.9811533586819-0.181153358681872
5196.897.0211533586819-0.221153358681876
5296.897.0411533586819-0.241153358681874
5396.897.0011533586819-0.201153358681874
5496.897.0011533586819-0.201153358681874
5596.897.0211533586819-0.221153358681873
5696.897.1611533586819-0.361153358681873
5796.897.1611533586819-0.361153358681873
5896.897.1811533586819-0.381153358681875
5996.997.1800697084918-0.280069708491751
6097.197.04006970849180.0599302915082384
6197.197.05887198986060.0411280101394078

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 99.9 & 100.005988593156 & -0.10598859315585 \tabularnewline
2 & 99.8 & 100.017762991128 & -0.217762991128012 \tabularnewline
3 & 99.8 & 100.057762991128 & -0.257762991128016 \tabularnewline
4 & 100.3 & 100.077762991128 & 0.222237008871985 \tabularnewline
5 & 99.9 & 100.037762991128 & -0.137762991128005 \tabularnewline
6 & 99.9 & 100.037762991128 & -0.137762991128005 \tabularnewline
7 & 100 & 100.057762991128 & -0.05776299112801 \tabularnewline
8 & 100.1 & 100.197762991128 & -0.0977629911280163 \tabularnewline
9 & 100.1 & 100.197762991128 & -0.0977629911280163 \tabularnewline
10 & 100.2 & 100.217762991128 & -0.0177629911280094 \tabularnewline
11 & 100.3 & 100.216679340938 & 0.0833206590621004 \tabularnewline
12 & 100.6 & 100.076679340938 & 0.523320659062098 \tabularnewline
13 & 100 & 100.095481622307 & -0.0954816223067267 \tabularnewline
14 & 100.1 & 100.107256020279 & -0.00725602027883717 \tabularnewline
15 & 100.2 & 100.147256020279 & 0.0527439797211681 \tabularnewline
16 & 100 & 100.167256020279 & -0.167256020278834 \tabularnewline
17 & 100.1 & 100.127256020279 & -0.0272560202788387 \tabularnewline
18 & 100.1 & 100.127256020279 & -0.0272560202788388 \tabularnewline
19 & 100.1 & 100.147256020279 & -0.0472560202788376 \tabularnewline
20 & 100.5 & 100.287256020279 & 0.212743979721167 \tabularnewline
21 & 100.5 & 100.287256020279 & 0.212743979721168 \tabularnewline
22 & 100.5 & 100.307256020279 & 0.192743979721166 \tabularnewline
23 & 96.3 & 96.9115906210393 & -0.611590621039294 \tabularnewline
24 & 96.3 & 96.7715906210393 & -0.471590621039293 \tabularnewline
25 & 96.8 & 96.7903929024081 & 0.0096070975918763 \tabularnewline
26 & 96.8 & 96.8021673003802 & -0.00216730038022850 \tabularnewline
27 & 96.9 & 96.8421673003802 & 0.0578326996197768 \tabularnewline
28 & 96.8 & 96.8621673003802 & -0.0621673003802306 \tabularnewline
29 & 96.8 & 96.8221673003802 & -0.02216730038023 \tabularnewline
30 & 96.8 & 96.8221673003802 & -0.02216730038023 \tabularnewline
31 & 96.8 & 96.8421673003802 & -0.0421673003802289 \tabularnewline
32 & 97 & 96.9821673003802 & 0.0178326996197734 \tabularnewline
33 & 97 & 96.9821673003802 & 0.0178326996197734 \tabularnewline
34 & 97 & 97.0021673003802 & -0.00216730038022829 \tabularnewline
35 & 96.8 & 97.0010836501901 & -0.201083650190116 \tabularnewline
36 & 96.9 & 96.8610836501901 & 0.0389163498098936 \tabularnewline
37 & 97.2 & 96.879885931559 & 0.32011406844106 \tabularnewline
38 & 97.3 & 96.891660329531 & 0.408339670468949 \tabularnewline
39 & 97.3 & 96.931660329531 & 0.368339670468946 \tabularnewline
40 & 97.2 & 96.951660329531 & 0.248339670468953 \tabularnewline
41 & 97.3 & 96.911660329531 & 0.388339670468948 \tabularnewline
42 & 97.3 & 96.911660329531 & 0.388339670468948 \tabularnewline
43 & 97.3 & 96.931660329531 & 0.368339670468949 \tabularnewline
44 & 97.3 & 97.071660329531 & 0.228339670468949 \tabularnewline
45 & 97.3 & 97.071660329531 & 0.228339670468949 \tabularnewline
46 & 97.3 & 97.091660329531 & 0.208339670468947 \tabularnewline
47 & 98.1 & 97.090576679341 & 1.00942332065906 \tabularnewline
48 & 96.8 & 96.950576679341 & -0.150576679340937 \tabularnewline
49 & 96.8 & 96.9693789607098 & -0.169378960709768 \tabularnewline
50 & 96.8 & 96.9811533586819 & -0.181153358681872 \tabularnewline
51 & 96.8 & 97.0211533586819 & -0.221153358681876 \tabularnewline
52 & 96.8 & 97.0411533586819 & -0.241153358681874 \tabularnewline
53 & 96.8 & 97.0011533586819 & -0.201153358681874 \tabularnewline
54 & 96.8 & 97.0011533586819 & -0.201153358681874 \tabularnewline
55 & 96.8 & 97.0211533586819 & -0.221153358681873 \tabularnewline
56 & 96.8 & 97.1611533586819 & -0.361153358681873 \tabularnewline
57 & 96.8 & 97.1611533586819 & -0.361153358681873 \tabularnewline
58 & 96.8 & 97.1811533586819 & -0.381153358681875 \tabularnewline
59 & 96.9 & 97.1800697084918 & -0.280069708491751 \tabularnewline
60 & 97.1 & 97.0400697084918 & 0.0599302915082384 \tabularnewline
61 & 97.1 & 97.0588719898606 & 0.0411280101394078 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25878&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]99.9[/C][C]100.005988593156[/C][C]-0.10598859315585[/C][/ROW]
[ROW][C]2[/C][C]99.8[/C][C]100.017762991128[/C][C]-0.217762991128012[/C][/ROW]
[ROW][C]3[/C][C]99.8[/C][C]100.057762991128[/C][C]-0.257762991128016[/C][/ROW]
[ROW][C]4[/C][C]100.3[/C][C]100.077762991128[/C][C]0.222237008871985[/C][/ROW]
[ROW][C]5[/C][C]99.9[/C][C]100.037762991128[/C][C]-0.137762991128005[/C][/ROW]
[ROW][C]6[/C][C]99.9[/C][C]100.037762991128[/C][C]-0.137762991128005[/C][/ROW]
[ROW][C]7[/C][C]100[/C][C]100.057762991128[/C][C]-0.05776299112801[/C][/ROW]
[ROW][C]8[/C][C]100.1[/C][C]100.197762991128[/C][C]-0.0977629911280163[/C][/ROW]
[ROW][C]9[/C][C]100.1[/C][C]100.197762991128[/C][C]-0.0977629911280163[/C][/ROW]
[ROW][C]10[/C][C]100.2[/C][C]100.217762991128[/C][C]-0.0177629911280094[/C][/ROW]
[ROW][C]11[/C][C]100.3[/C][C]100.216679340938[/C][C]0.0833206590621004[/C][/ROW]
[ROW][C]12[/C][C]100.6[/C][C]100.076679340938[/C][C]0.523320659062098[/C][/ROW]
[ROW][C]13[/C][C]100[/C][C]100.095481622307[/C][C]-0.0954816223067267[/C][/ROW]
[ROW][C]14[/C][C]100.1[/C][C]100.107256020279[/C][C]-0.00725602027883717[/C][/ROW]
[ROW][C]15[/C][C]100.2[/C][C]100.147256020279[/C][C]0.0527439797211681[/C][/ROW]
[ROW][C]16[/C][C]100[/C][C]100.167256020279[/C][C]-0.167256020278834[/C][/ROW]
[ROW][C]17[/C][C]100.1[/C][C]100.127256020279[/C][C]-0.0272560202788387[/C][/ROW]
[ROW][C]18[/C][C]100.1[/C][C]100.127256020279[/C][C]-0.0272560202788388[/C][/ROW]
[ROW][C]19[/C][C]100.1[/C][C]100.147256020279[/C][C]-0.0472560202788376[/C][/ROW]
[ROW][C]20[/C][C]100.5[/C][C]100.287256020279[/C][C]0.212743979721167[/C][/ROW]
[ROW][C]21[/C][C]100.5[/C][C]100.287256020279[/C][C]0.212743979721168[/C][/ROW]
[ROW][C]22[/C][C]100.5[/C][C]100.307256020279[/C][C]0.192743979721166[/C][/ROW]
[ROW][C]23[/C][C]96.3[/C][C]96.9115906210393[/C][C]-0.611590621039294[/C][/ROW]
[ROW][C]24[/C][C]96.3[/C][C]96.7715906210393[/C][C]-0.471590621039293[/C][/ROW]
[ROW][C]25[/C][C]96.8[/C][C]96.7903929024081[/C][C]0.0096070975918763[/C][/ROW]
[ROW][C]26[/C][C]96.8[/C][C]96.8021673003802[/C][C]-0.00216730038022850[/C][/ROW]
[ROW][C]27[/C][C]96.9[/C][C]96.8421673003802[/C][C]0.0578326996197768[/C][/ROW]
[ROW][C]28[/C][C]96.8[/C][C]96.8621673003802[/C][C]-0.0621673003802306[/C][/ROW]
[ROW][C]29[/C][C]96.8[/C][C]96.8221673003802[/C][C]-0.02216730038023[/C][/ROW]
[ROW][C]30[/C][C]96.8[/C][C]96.8221673003802[/C][C]-0.02216730038023[/C][/ROW]
[ROW][C]31[/C][C]96.8[/C][C]96.8421673003802[/C][C]-0.0421673003802289[/C][/ROW]
[ROW][C]32[/C][C]97[/C][C]96.9821673003802[/C][C]0.0178326996197734[/C][/ROW]
[ROW][C]33[/C][C]97[/C][C]96.9821673003802[/C][C]0.0178326996197734[/C][/ROW]
[ROW][C]34[/C][C]97[/C][C]97.0021673003802[/C][C]-0.00216730038022829[/C][/ROW]
[ROW][C]35[/C][C]96.8[/C][C]97.0010836501901[/C][C]-0.201083650190116[/C][/ROW]
[ROW][C]36[/C][C]96.9[/C][C]96.8610836501901[/C][C]0.0389163498098936[/C][/ROW]
[ROW][C]37[/C][C]97.2[/C][C]96.879885931559[/C][C]0.32011406844106[/C][/ROW]
[ROW][C]38[/C][C]97.3[/C][C]96.891660329531[/C][C]0.408339670468949[/C][/ROW]
[ROW][C]39[/C][C]97.3[/C][C]96.931660329531[/C][C]0.368339670468946[/C][/ROW]
[ROW][C]40[/C][C]97.2[/C][C]96.951660329531[/C][C]0.248339670468953[/C][/ROW]
[ROW][C]41[/C][C]97.3[/C][C]96.911660329531[/C][C]0.388339670468948[/C][/ROW]
[ROW][C]42[/C][C]97.3[/C][C]96.911660329531[/C][C]0.388339670468948[/C][/ROW]
[ROW][C]43[/C][C]97.3[/C][C]96.931660329531[/C][C]0.368339670468949[/C][/ROW]
[ROW][C]44[/C][C]97.3[/C][C]97.071660329531[/C][C]0.228339670468949[/C][/ROW]
[ROW][C]45[/C][C]97.3[/C][C]97.071660329531[/C][C]0.228339670468949[/C][/ROW]
[ROW][C]46[/C][C]97.3[/C][C]97.091660329531[/C][C]0.208339670468947[/C][/ROW]
[ROW][C]47[/C][C]98.1[/C][C]97.090576679341[/C][C]1.00942332065906[/C][/ROW]
[ROW][C]48[/C][C]96.8[/C][C]96.950576679341[/C][C]-0.150576679340937[/C][/ROW]
[ROW][C]49[/C][C]96.8[/C][C]96.9693789607098[/C][C]-0.169378960709768[/C][/ROW]
[ROW][C]50[/C][C]96.8[/C][C]96.9811533586819[/C][C]-0.181153358681872[/C][/ROW]
[ROW][C]51[/C][C]96.8[/C][C]97.0211533586819[/C][C]-0.221153358681876[/C][/ROW]
[ROW][C]52[/C][C]96.8[/C][C]97.0411533586819[/C][C]-0.241153358681874[/C][/ROW]
[ROW][C]53[/C][C]96.8[/C][C]97.0011533586819[/C][C]-0.201153358681874[/C][/ROW]
[ROW][C]54[/C][C]96.8[/C][C]97.0011533586819[/C][C]-0.201153358681874[/C][/ROW]
[ROW][C]55[/C][C]96.8[/C][C]97.0211533586819[/C][C]-0.221153358681873[/C][/ROW]
[ROW][C]56[/C][C]96.8[/C][C]97.1611533586819[/C][C]-0.361153358681873[/C][/ROW]
[ROW][C]57[/C][C]96.8[/C][C]97.1611533586819[/C][C]-0.361153358681873[/C][/ROW]
[ROW][C]58[/C][C]96.8[/C][C]97.1811533586819[/C][C]-0.381153358681875[/C][/ROW]
[ROW][C]59[/C][C]96.9[/C][C]97.1800697084918[/C][C]-0.280069708491751[/C][/ROW]
[ROW][C]60[/C][C]97.1[/C][C]97.0400697084918[/C][C]0.0599302915082384[/C][/ROW]
[ROW][C]61[/C][C]97.1[/C][C]97.0588719898606[/C][C]0.0411280101394078[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25878&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25878&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
199.9100.005988593156-0.10598859315585
299.8100.017762991128-0.217762991128012
399.8100.057762991128-0.257762991128016
4100.3100.0777629911280.222237008871985
599.9100.037762991128-0.137762991128005
699.9100.037762991128-0.137762991128005
7100100.057762991128-0.05776299112801
8100.1100.197762991128-0.0977629911280163
9100.1100.197762991128-0.0977629911280163
10100.2100.217762991128-0.0177629911280094
11100.3100.2166793409380.0833206590621004
12100.6100.0766793409380.523320659062098
13100100.095481622307-0.0954816223067267
14100.1100.107256020279-0.00725602027883717
15100.2100.1472560202790.0527439797211681
16100100.167256020279-0.167256020278834
17100.1100.127256020279-0.0272560202788387
18100.1100.127256020279-0.0272560202788388
19100.1100.147256020279-0.0472560202788376
20100.5100.2872560202790.212743979721167
21100.5100.2872560202790.212743979721168
22100.5100.3072560202790.192743979721166
2396.396.9115906210393-0.611590621039294
2496.396.7715906210393-0.471590621039293
2596.896.79039290240810.0096070975918763
2696.896.8021673003802-0.00216730038022850
2796.996.84216730038020.0578326996197768
2896.896.8621673003802-0.0621673003802306
2996.896.8221673003802-0.02216730038023
3096.896.8221673003802-0.02216730038023
3196.896.8421673003802-0.0421673003802289
329796.98216730038020.0178326996197734
339796.98216730038020.0178326996197734
349797.0021673003802-0.00216730038022829
3596.897.0010836501901-0.201083650190116
3696.996.86108365019010.0389163498098936
3797.296.8798859315590.32011406844106
3897.396.8916603295310.408339670468949
3997.396.9316603295310.368339670468946
4097.296.9516603295310.248339670468953
4197.396.9116603295310.388339670468948
4297.396.9116603295310.388339670468948
4397.396.9316603295310.368339670468949
4497.397.0716603295310.228339670468949
4597.397.0716603295310.228339670468949
4697.397.0916603295310.208339670468947
4798.197.0905766793411.00942332065906
4896.896.950576679341-0.150576679340937
4996.896.9693789607098-0.169378960709768
5096.896.9811533586819-0.181153358681872
5196.897.0211533586819-0.221153358681876
5296.897.0411533586819-0.241153358681874
5396.897.0011533586819-0.201153358681874
5496.897.0011533586819-0.201153358681874
5596.897.0211533586819-0.221153358681873
5696.897.1611533586819-0.361153358681873
5796.897.1611533586819-0.361153358681873
5896.897.1811533586819-0.381153358681875
5996.997.1800697084918-0.280069708491751
6097.197.04006970849180.0599302915082384
6197.197.05887198986060.0411280101394078







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.2611955475905240.5223910951810480.738804452409476
180.1325638090713660.2651276181427320.867436190928634
190.0624145639968040.1248291279936080.937585436003196
200.03978075261487260.07956150522974520.960219247385127
210.02302520532090930.04605041064181850.97697479467909
220.01001022640107560.02002045280215130.989989773598924
230.00751707951924340.01503415903848680.992482920480757
240.00674431797473320.01348863594946640.993255682025267
250.07951293381521170.1590258676304230.920487066184788
260.1009895222779200.2019790445558410.89901047772208
270.0975882879163260.1951765758326520.902411712083674
280.06494209967559530.1298841993511910.935057900324405
290.04938786238979880.09877572477959760.950612137610201
300.03714669320416820.07429338640833640.962853306795832
310.02727525602960520.05455051205921040.972724743970395
320.01631347073026590.03262694146053180.983686529269734
330.009650887884559130.01930177576911830.99034911211544
340.005737967469489090.01147593493897820.99426203253051
350.03861273944193190.07722547888386390.961387260558068
360.05214423442598480.1042884688519700.947855765574015
370.05293090256195630.1058618051239130.947069097438044
380.04210101904917740.08420203809835480.957898980950823
390.02701234027522620.05402468055045240.972987659724774
400.01365608520182830.02731217040365670.986343914798172
410.007774463129418980.01554892625883800.992225536870581
420.003976495973645020.007952991947290040.996023504026355
430.001728575121850650.00345715024370130.99827142487815
440.0006243220464796070.001248644092959210.99937567795352

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.261195547590524 & 0.522391095181048 & 0.738804452409476 \tabularnewline
18 & 0.132563809071366 & 0.265127618142732 & 0.867436190928634 \tabularnewline
19 & 0.062414563996804 & 0.124829127993608 & 0.937585436003196 \tabularnewline
20 & 0.0397807526148726 & 0.0795615052297452 & 0.960219247385127 \tabularnewline
21 & 0.0230252053209093 & 0.0460504106418185 & 0.97697479467909 \tabularnewline
22 & 0.0100102264010756 & 0.0200204528021513 & 0.989989773598924 \tabularnewline
23 & 0.0075170795192434 & 0.0150341590384868 & 0.992482920480757 \tabularnewline
24 & 0.0067443179747332 & 0.0134886359494664 & 0.993255682025267 \tabularnewline
25 & 0.0795129338152117 & 0.159025867630423 & 0.920487066184788 \tabularnewline
26 & 0.100989522277920 & 0.201979044555841 & 0.89901047772208 \tabularnewline
27 & 0.097588287916326 & 0.195176575832652 & 0.902411712083674 \tabularnewline
28 & 0.0649420996755953 & 0.129884199351191 & 0.935057900324405 \tabularnewline
29 & 0.0493878623897988 & 0.0987757247795976 & 0.950612137610201 \tabularnewline
30 & 0.0371466932041682 & 0.0742933864083364 & 0.962853306795832 \tabularnewline
31 & 0.0272752560296052 & 0.0545505120592104 & 0.972724743970395 \tabularnewline
32 & 0.0163134707302659 & 0.0326269414605318 & 0.983686529269734 \tabularnewline
33 & 0.00965088788455913 & 0.0193017757691183 & 0.99034911211544 \tabularnewline
34 & 0.00573796746948909 & 0.0114759349389782 & 0.99426203253051 \tabularnewline
35 & 0.0386127394419319 & 0.0772254788838639 & 0.961387260558068 \tabularnewline
36 & 0.0521442344259848 & 0.104288468851970 & 0.947855765574015 \tabularnewline
37 & 0.0529309025619563 & 0.105861805123913 & 0.947069097438044 \tabularnewline
38 & 0.0421010190491774 & 0.0842020380983548 & 0.957898980950823 \tabularnewline
39 & 0.0270123402752262 & 0.0540246805504524 & 0.972987659724774 \tabularnewline
40 & 0.0136560852018283 & 0.0273121704036567 & 0.986343914798172 \tabularnewline
41 & 0.00777446312941898 & 0.0155489262588380 & 0.992225536870581 \tabularnewline
42 & 0.00397649597364502 & 0.00795299194729004 & 0.996023504026355 \tabularnewline
43 & 0.00172857512185065 & 0.0034571502437013 & 0.99827142487815 \tabularnewline
44 & 0.000624322046479607 & 0.00124864409295921 & 0.99937567795352 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25878&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]17[/C][C]0.261195547590524[/C][C]0.522391095181048[/C][C]0.738804452409476[/C][/ROW]
[ROW][C]18[/C][C]0.132563809071366[/C][C]0.265127618142732[/C][C]0.867436190928634[/C][/ROW]
[ROW][C]19[/C][C]0.062414563996804[/C][C]0.124829127993608[/C][C]0.937585436003196[/C][/ROW]
[ROW][C]20[/C][C]0.0397807526148726[/C][C]0.0795615052297452[/C][C]0.960219247385127[/C][/ROW]
[ROW][C]21[/C][C]0.0230252053209093[/C][C]0.0460504106418185[/C][C]0.97697479467909[/C][/ROW]
[ROW][C]22[/C][C]0.0100102264010756[/C][C]0.0200204528021513[/C][C]0.989989773598924[/C][/ROW]
[ROW][C]23[/C][C]0.0075170795192434[/C][C]0.0150341590384868[/C][C]0.992482920480757[/C][/ROW]
[ROW][C]24[/C][C]0.0067443179747332[/C][C]0.0134886359494664[/C][C]0.993255682025267[/C][/ROW]
[ROW][C]25[/C][C]0.0795129338152117[/C][C]0.159025867630423[/C][C]0.920487066184788[/C][/ROW]
[ROW][C]26[/C][C]0.100989522277920[/C][C]0.201979044555841[/C][C]0.89901047772208[/C][/ROW]
[ROW][C]27[/C][C]0.097588287916326[/C][C]0.195176575832652[/C][C]0.902411712083674[/C][/ROW]
[ROW][C]28[/C][C]0.0649420996755953[/C][C]0.129884199351191[/C][C]0.935057900324405[/C][/ROW]
[ROW][C]29[/C][C]0.0493878623897988[/C][C]0.0987757247795976[/C][C]0.950612137610201[/C][/ROW]
[ROW][C]30[/C][C]0.0371466932041682[/C][C]0.0742933864083364[/C][C]0.962853306795832[/C][/ROW]
[ROW][C]31[/C][C]0.0272752560296052[/C][C]0.0545505120592104[/C][C]0.972724743970395[/C][/ROW]
[ROW][C]32[/C][C]0.0163134707302659[/C][C]0.0326269414605318[/C][C]0.983686529269734[/C][/ROW]
[ROW][C]33[/C][C]0.00965088788455913[/C][C]0.0193017757691183[/C][C]0.99034911211544[/C][/ROW]
[ROW][C]34[/C][C]0.00573796746948909[/C][C]0.0114759349389782[/C][C]0.99426203253051[/C][/ROW]
[ROW][C]35[/C][C]0.0386127394419319[/C][C]0.0772254788838639[/C][C]0.961387260558068[/C][/ROW]
[ROW][C]36[/C][C]0.0521442344259848[/C][C]0.104288468851970[/C][C]0.947855765574015[/C][/ROW]
[ROW][C]37[/C][C]0.0529309025619563[/C][C]0.105861805123913[/C][C]0.947069097438044[/C][/ROW]
[ROW][C]38[/C][C]0.0421010190491774[/C][C]0.0842020380983548[/C][C]0.957898980950823[/C][/ROW]
[ROW][C]39[/C][C]0.0270123402752262[/C][C]0.0540246805504524[/C][C]0.972987659724774[/C][/ROW]
[ROW][C]40[/C][C]0.0136560852018283[/C][C]0.0273121704036567[/C][C]0.986343914798172[/C][/ROW]
[ROW][C]41[/C][C]0.00777446312941898[/C][C]0.0155489262588380[/C][C]0.992225536870581[/C][/ROW]
[ROW][C]42[/C][C]0.00397649597364502[/C][C]0.00795299194729004[/C][C]0.996023504026355[/C][/ROW]
[ROW][C]43[/C][C]0.00172857512185065[/C][C]0.0034571502437013[/C][C]0.99827142487815[/C][/ROW]
[ROW][C]44[/C][C]0.000624322046479607[/C][C]0.00124864409295921[/C][C]0.99937567795352[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25878&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25878&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
170.2611955475905240.5223910951810480.738804452409476
180.1325638090713660.2651276181427320.867436190928634
190.0624145639968040.1248291279936080.937585436003196
200.03978075261487260.07956150522974520.960219247385127
210.02302520532090930.04605041064181850.97697479467909
220.01001022640107560.02002045280215130.989989773598924
230.00751707951924340.01503415903848680.992482920480757
240.00674431797473320.01348863594946640.993255682025267
250.07951293381521170.1590258676304230.920487066184788
260.1009895222779200.2019790445558410.89901047772208
270.0975882879163260.1951765758326520.902411712083674
280.06494209967559530.1298841993511910.935057900324405
290.04938786238979880.09877572477959760.950612137610201
300.03714669320416820.07429338640833640.962853306795832
310.02727525602960520.05455051205921040.972724743970395
320.01631347073026590.03262694146053180.983686529269734
330.009650887884559130.01930177576911830.99034911211544
340.005737967469489090.01147593493897820.99426203253051
350.03861273944193190.07722547888386390.961387260558068
360.05214423442598480.1042884688519700.947855765574015
370.05293090256195630.1058618051239130.947069097438044
380.04210101904917740.08420203809835480.957898980950823
390.02701234027522620.05402468055045240.972987659724774
400.01365608520182830.02731217040365670.986343914798172
410.007774463129418980.01554892625883800.992225536870581
420.003976495973645020.007952991947290040.996023504026355
430.001728575121850650.00345715024370130.99827142487815
440.0006243220464796070.001248644092959210.99937567795352







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level30.107142857142857NOK
5% type I error level120.428571428571429NOK
10% type I error level190.678571428571429NOK

\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 & 3 & 0.107142857142857 & NOK \tabularnewline
5% type I error level & 12 & 0.428571428571429 & NOK \tabularnewline
10% type I error level & 19 & 0.678571428571429 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=25878&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]3[/C][C]0.107142857142857[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]12[/C][C]0.428571428571429[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]19[/C][C]0.678571428571429[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=25878&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=25878&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 level30.107142857142857NOK
5% type I error level120.428571428571429NOK
10% type I error level190.678571428571429NOK



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