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 10:52:33 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/20/t1258739613gjonqgxg195ln40.htm/, Retrieved Fri, 19 Apr 2024 00:42:04 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58371, Retrieved Fri, 19 Apr 2024 00:42:04 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact107
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [ws7 Multiple Regr...] [2009-11-20 16:50:31] [95cead3ebb75668735f848316249436a]
-   PD        [Multiple Regression] [WS7 Multiple Regr...] [2009-11-20 17:52:33] [95523ebdb89b97dbf680ec91e0b4bca2] [Current]
Feedback Forum

Post a new message
Dataseries X:
2.08	1.00	2.05	2.09
2.06	1.00	2.08	2.05
2.06	1.00	2.06	2.08
2.08	1.00	2.06	2.06
2.07	1.00	2.08	2.06
2.06	1.00	2.07	2.08
2.07	1.00	2.06	2.07
2.06	1.00	2.07	2.06
2.09	1.00	2.06	2.07
2.07	1.00	2.09	2.06
2.09	1.00	2.07	2.09
2.28	1.25	2.09	2.07
2.33	1.25	2.28	2.09
2.35	1.25	2.33	2.28
2.52	1.50	2.35	2.33
2.63	1.50	2.52	2.35
2.58	1.50	2.63	2.52
2.70	1.75	2.58	2.63
2.81	1.75	2.70	2.58
2.97	2.00	2.81	2.70
3.04	2.00	2.97	2.81
3.28	2.25	3.04	2.97
3.33	2.25	3.28	3.04
3.50	2.50	3.33	3.28
3.56	2.50	3.50	3.33
3.57	2.50	3.56	3.50
3.69	2.75	3.57	3.56
3.82	2.75	3.69	3.57
3.79	2.75	3.82	3.69
3.96	3.00	3.79	3.82
4.06	3.00	3.96	3.79
4.05	3.00	4.06	3.96
4.03	3.00	4.05	4.06
3.94	3.00	4.03	4.05
4.02	3.00	3.94	4.03
3.88	3.00	4.02	3.94
4.02	3.00	3.88	4.02
4.03	3.00	4.02	3.88
4.09	3.00	4.03	4.02
3.99	3.00	4.09	4.03
4.01	3.00	3.99	4.09
4.01	3.00	4.01	3.99
4.19	3.25	4.01	4.01
4.30	3.25	4.19	4.01
4.27	3.25	4.30	4.19
3.82	3.25	4.27	4.30
3.15	2.75	3.82	4.27
2.49	2.00	3.15	3.82
1.81	1.00	2.49	3.15
1.26	1.00	1.81	2.49
1.06	0.50	1.26	1.81
0.84	0.25	1.06	1.26
0.78	0.25	0.84	1.06
0.70	0.25	0.78	0.84
0.36	0.25	0.70	0.78
0.35	0.25	0.36	0.70




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 0.599180932557525 + 0.690170760852934X[t] + 0.799964668425404`Y-1`[t] -0.415248318667088`Y-2`[t] + 0.0905745590290102M1[t] + 0.0163192906230318M2[t] + 0.105507076694788M3[t] + 0.0676117496179909M4[t] + 0.0712801719111382M5[t] + 0.0656905940929301M6[t] + 0.00799840973995277M7[t] + 0.0361116251349147M8[t] + 0.0549776843366118M9[t] -0.0445931299432913M10[t] -0.0115226106672737M11[t] -0.00761139671202985t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  0.599180932557525 +  0.690170760852934X[t] +  0.799964668425404`Y-1`[t] -0.415248318667088`Y-2`[t] +  0.0905745590290102M1[t] +  0.0163192906230318M2[t] +  0.105507076694788M3[t] +  0.0676117496179909M4[t] +  0.0712801719111382M5[t] +  0.0656905940929301M6[t] +  0.00799840973995277M7[t] +  0.0361116251349147M8[t] +  0.0549776843366118M9[t] -0.0445931299432913M10[t] -0.0115226106672737M11[t] -0.00761139671202985t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58371&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  0.599180932557525 +  0.690170760852934X[t] +  0.799964668425404`Y-1`[t] -0.415248318667088`Y-2`[t] +  0.0905745590290102M1[t] +  0.0163192906230318M2[t] +  0.105507076694788M3[t] +  0.0676117496179909M4[t] +  0.0712801719111382M5[t] +  0.0656905940929301M6[t] +  0.00799840973995277M7[t] +  0.0361116251349147M8[t] +  0.0549776843366118M9[t] -0.0445931299432913M10[t] -0.0115226106672737M11[t] -0.00761139671202985t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58371&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58371&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] = + 0.599180932557525 + 0.690170760852934X[t] + 0.799964668425404`Y-1`[t] -0.415248318667088`Y-2`[t] + 0.0905745590290102M1[t] + 0.0163192906230318M2[t] + 0.105507076694788M3[t] + 0.0676117496179909M4[t] + 0.0712801719111382M5[t] + 0.0656905940929301M6[t] + 0.00799840973995277M7[t] + 0.0361116251349147M8[t] + 0.0549776843366118M9[t] -0.0445931299432913M10[t] -0.0115226106672737M11[t] -0.00761139671202985t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)0.5991809325575250.1163115.15157e-064e-06
X0.6901707608529340.1177265.86251e-060
`Y-1`0.7999646684254040.1795964.45436.6e-053.3e-05
`Y-2`-0.4152483186670880.110474-3.75880.0005460.000273
M10.09057455902901020.0732311.23680.2233630.111682
M20.01631929062303180.0722250.2260.822390.411195
M30.1055070766947880.0715391.47480.1480910.074046
M40.06761174961799090.0752840.89810.3745110.187255
M50.07128017191113820.0740970.9620.3418380.170919
M60.06569059409293010.0728070.90230.3723220.186161
M70.007998409739952770.074430.10750.9149590.45748
M80.03611162513491470.0739090.48860.6277980.313899
M90.05497768433661180.0775430.7090.4824370.241218
M10-0.04459312994329130.07592-0.58740.5602570.280128
M11-0.01152261066727370.075387-0.15280.8792880.439644
t-0.007611396712029850.001516-5.01951.1e-056e-06

\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) & 0.599180932557525 & 0.116311 & 5.1515 & 7e-06 & 4e-06 \tabularnewline
X & 0.690170760852934 & 0.117726 & 5.8625 & 1e-06 & 0 \tabularnewline
`Y-1` & 0.799964668425404 & 0.179596 & 4.4543 & 6.6e-05 & 3.3e-05 \tabularnewline
`Y-2` & -0.415248318667088 & 0.110474 & -3.7588 & 0.000546 & 0.000273 \tabularnewline
M1 & 0.0905745590290102 & 0.073231 & 1.2368 & 0.223363 & 0.111682 \tabularnewline
M2 & 0.0163192906230318 & 0.072225 & 0.226 & 0.82239 & 0.411195 \tabularnewline
M3 & 0.105507076694788 & 0.071539 & 1.4748 & 0.148091 & 0.074046 \tabularnewline
M4 & 0.0676117496179909 & 0.075284 & 0.8981 & 0.374511 & 0.187255 \tabularnewline
M5 & 0.0712801719111382 & 0.074097 & 0.962 & 0.341838 & 0.170919 \tabularnewline
M6 & 0.0656905940929301 & 0.072807 & 0.9023 & 0.372322 & 0.186161 \tabularnewline
M7 & 0.00799840973995277 & 0.07443 & 0.1075 & 0.914959 & 0.45748 \tabularnewline
M8 & 0.0361116251349147 & 0.073909 & 0.4886 & 0.627798 & 0.313899 \tabularnewline
M9 & 0.0549776843366118 & 0.077543 & 0.709 & 0.482437 & 0.241218 \tabularnewline
M10 & -0.0445931299432913 & 0.07592 & -0.5874 & 0.560257 & 0.280128 \tabularnewline
M11 & -0.0115226106672737 & 0.075387 & -0.1528 & 0.879288 & 0.439644 \tabularnewline
t & -0.00761139671202985 & 0.001516 & -5.0195 & 1.1e-05 & 6e-06 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58371&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]0.599180932557525[/C][C]0.116311[/C][C]5.1515[/C][C]7e-06[/C][C]4e-06[/C][/ROW]
[ROW][C]X[/C][C]0.690170760852934[/C][C]0.117726[/C][C]5.8625[/C][C]1e-06[/C][C]0[/C][/ROW]
[ROW][C]`Y-1`[/C][C]0.799964668425404[/C][C]0.179596[/C][C]4.4543[/C][C]6.6e-05[/C][C]3.3e-05[/C][/ROW]
[ROW][C]`Y-2`[/C][C]-0.415248318667088[/C][C]0.110474[/C][C]-3.7588[/C][C]0.000546[/C][C]0.000273[/C][/ROW]
[ROW][C]M1[/C][C]0.0905745590290102[/C][C]0.073231[/C][C]1.2368[/C][C]0.223363[/C][C]0.111682[/C][/ROW]
[ROW][C]M2[/C][C]0.0163192906230318[/C][C]0.072225[/C][C]0.226[/C][C]0.82239[/C][C]0.411195[/C][/ROW]
[ROW][C]M3[/C][C]0.105507076694788[/C][C]0.071539[/C][C]1.4748[/C][C]0.148091[/C][C]0.074046[/C][/ROW]
[ROW][C]M4[/C][C]0.0676117496179909[/C][C]0.075284[/C][C]0.8981[/C][C]0.374511[/C][C]0.187255[/C][/ROW]
[ROW][C]M5[/C][C]0.0712801719111382[/C][C]0.074097[/C][C]0.962[/C][C]0.341838[/C][C]0.170919[/C][/ROW]
[ROW][C]M6[/C][C]0.0656905940929301[/C][C]0.072807[/C][C]0.9023[/C][C]0.372322[/C][C]0.186161[/C][/ROW]
[ROW][C]M7[/C][C]0.00799840973995277[/C][C]0.07443[/C][C]0.1075[/C][C]0.914959[/C][C]0.45748[/C][/ROW]
[ROW][C]M8[/C][C]0.0361116251349147[/C][C]0.073909[/C][C]0.4886[/C][C]0.627798[/C][C]0.313899[/C][/ROW]
[ROW][C]M9[/C][C]0.0549776843366118[/C][C]0.077543[/C][C]0.709[/C][C]0.482437[/C][C]0.241218[/C][/ROW]
[ROW][C]M10[/C][C]-0.0445931299432913[/C][C]0.07592[/C][C]-0.5874[/C][C]0.560257[/C][C]0.280128[/C][/ROW]
[ROW][C]M11[/C][C]-0.0115226106672737[/C][C]0.075387[/C][C]-0.1528[/C][C]0.879288[/C][C]0.439644[/C][/ROW]
[ROW][C]t[/C][C]-0.00761139671202985[/C][C]0.001516[/C][C]-5.0195[/C][C]1.1e-05[/C][C]6e-06[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58371&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58371&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)0.5991809325575250.1163115.15157e-064e-06
X0.6901707608529340.1177265.86251e-060
`Y-1`0.7999646684254040.1795964.45436.6e-053.3e-05
`Y-2`-0.4152483186670880.110474-3.75880.0005460.000273
M10.09057455902901020.0732311.23680.2233630.111682
M20.01631929062303180.0722250.2260.822390.411195
M30.1055070766947880.0715391.47480.1480910.074046
M40.06761174961799090.0752840.89810.3745110.187255
M50.07128017191113820.0740970.9620.3418380.170919
M60.06569059409293010.0728070.90230.3723220.186161
M70.007998409739952770.074430.10750.9149590.45748
M80.03611162513491470.0739090.48860.6277980.313899
M90.05497768433661180.0775430.7090.4824370.241218
M10-0.04459312994329130.07592-0.58740.5602570.280128
M11-0.01152261066727370.075387-0.15280.8792880.439644
t-0.007611396712029850.001516-5.01951.1e-056e-06







Multiple Linear Regression - Regression Statistics
Multiple R0.996738388731846
R-squared0.993487415571757
Adjusted R-squared0.991045196411166
F-TEST (value)406.796994963937
F-TEST (DF numerator)15
F-TEST (DF denominator)40
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.105929688689683
Sum Squared Residuals0.44884395783573

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.996738388731846 \tabularnewline
R-squared & 0.993487415571757 \tabularnewline
Adjusted R-squared & 0.991045196411166 \tabularnewline
F-TEST (value) & 406.796994963937 \tabularnewline
F-TEST (DF numerator) & 15 \tabularnewline
F-TEST (DF denominator) & 40 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.105929688689683 \tabularnewline
Sum Squared Residuals & 0.44884395783573 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58371&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.996738388731846[/C][/ROW]
[ROW][C]R-squared[/C][C]0.993487415571757[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.991045196411166[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]406.796994963937[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]15[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]40[/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.105929688689683[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]0.44884395783573[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58371&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58371&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.996738388731846
R-squared0.993487415571757
Adjusted R-squared0.991045196411166
F-TEST (value)406.796994963937
F-TEST (DF numerator)15
F-TEST (DF denominator)40
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.105929688689683
Sum Squared Residuals0.44884395783573







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
12.082.14437343998530-0.0643734399853037
22.062.10311564766674-0.0431156476667425
32.062.15623529409795-0.0962352940979458
42.082.11903353668246-0.0390335366824608
52.072.13108985563209-0.0610898556320865
62.062.10158426804425-0.0415842680442524
72.072.032433523481660.0375664765183375
82.062.06508747203552-0.00508747203551918
92.092.064190004654260.0258099953457381
102.071.985159216901760.0848407830982383
112.091.982161596537230.107838403462771
122.282.182919760447560.0970802395524438
132.332.40957124339202-0.079571243392021
142.352.288805631148540.0611943688514634
152.522.53816158815665-0.0181615881566496
162.632.62034389162680.00965610837320004
172.582.63380481656131-0.0538048165613066
182.72.70747098376965-0.00747098376965239
192.812.758925578849050.0510744211509518
202.972.99013640303196-0.0201364030319573
213.043.08370809741631-0.0437080974163098
223.283.138626372440650.141373627559345
233.333.327009633120040.00299036687995733
243.53.443802174229690.0561978257703104
253.563.64199691424563-0.081996914245634
263.573.537535915059740.0324640849402547
273.693.77473974219693-0.0847397421969333
283.823.82107629543248-0.00107629543248452
293.793.87129892966885-0.0812989296688536
303.963.952659423872370.0073405761276342
314.064.035807285999690.0241927140003100
324.054.06571335735176-0.0157133573517571
334.034.027443541290460.00255645870953857
343.943.908414520116690.0315854798833081
354.023.870181788895730.149818211104265
363.883.97546252500505-0.0954625250050485
374.023.913210768249110.106789231750894
384.034.001473921324050.0285260786759544
394.094.032915192754630.0570848072453656
403.994.03125386588466-0.0412538658846602
414.013.922399525503210.0876004744967872
424.013.966722676208190.0432773237918087
434.194.065656818983080.124343181016924
444.34.230152277982580.0698477220174186
454.274.254658356638970.0153416433610332
463.824.07779989054089-0.257799890540892
473.153.41064698144699-0.260646981446994
482.492.54781554031771-0.0578155403177057
491.811.690847634127940.119152365872065
501.261.33906888480093-0.07906888480093
511.060.9179481827938370.142051817206163
520.840.7682924103735940.0717075896264055
530.780.671406872634540.108593127365460
540.70.701562648105538-0.00156264810553799
550.360.597176792686524-0.237176792686524
560.350.378910489598185-0.028910489598185

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 2.08 & 2.14437343998530 & -0.0643734399853037 \tabularnewline
2 & 2.06 & 2.10311564766674 & -0.0431156476667425 \tabularnewline
3 & 2.06 & 2.15623529409795 & -0.0962352940979458 \tabularnewline
4 & 2.08 & 2.11903353668246 & -0.0390335366824608 \tabularnewline
5 & 2.07 & 2.13108985563209 & -0.0610898556320865 \tabularnewline
6 & 2.06 & 2.10158426804425 & -0.0415842680442524 \tabularnewline
7 & 2.07 & 2.03243352348166 & 0.0375664765183375 \tabularnewline
8 & 2.06 & 2.06508747203552 & -0.00508747203551918 \tabularnewline
9 & 2.09 & 2.06419000465426 & 0.0258099953457381 \tabularnewline
10 & 2.07 & 1.98515921690176 & 0.0848407830982383 \tabularnewline
11 & 2.09 & 1.98216159653723 & 0.107838403462771 \tabularnewline
12 & 2.28 & 2.18291976044756 & 0.0970802395524438 \tabularnewline
13 & 2.33 & 2.40957124339202 & -0.079571243392021 \tabularnewline
14 & 2.35 & 2.28880563114854 & 0.0611943688514634 \tabularnewline
15 & 2.52 & 2.53816158815665 & -0.0181615881566496 \tabularnewline
16 & 2.63 & 2.6203438916268 & 0.00965610837320004 \tabularnewline
17 & 2.58 & 2.63380481656131 & -0.0538048165613066 \tabularnewline
18 & 2.7 & 2.70747098376965 & -0.00747098376965239 \tabularnewline
19 & 2.81 & 2.75892557884905 & 0.0510744211509518 \tabularnewline
20 & 2.97 & 2.99013640303196 & -0.0201364030319573 \tabularnewline
21 & 3.04 & 3.08370809741631 & -0.0437080974163098 \tabularnewline
22 & 3.28 & 3.13862637244065 & 0.141373627559345 \tabularnewline
23 & 3.33 & 3.32700963312004 & 0.00299036687995733 \tabularnewline
24 & 3.5 & 3.44380217422969 & 0.0561978257703104 \tabularnewline
25 & 3.56 & 3.64199691424563 & -0.081996914245634 \tabularnewline
26 & 3.57 & 3.53753591505974 & 0.0324640849402547 \tabularnewline
27 & 3.69 & 3.77473974219693 & -0.0847397421969333 \tabularnewline
28 & 3.82 & 3.82107629543248 & -0.00107629543248452 \tabularnewline
29 & 3.79 & 3.87129892966885 & -0.0812989296688536 \tabularnewline
30 & 3.96 & 3.95265942387237 & 0.0073405761276342 \tabularnewline
31 & 4.06 & 4.03580728599969 & 0.0241927140003100 \tabularnewline
32 & 4.05 & 4.06571335735176 & -0.0157133573517571 \tabularnewline
33 & 4.03 & 4.02744354129046 & 0.00255645870953857 \tabularnewline
34 & 3.94 & 3.90841452011669 & 0.0315854798833081 \tabularnewline
35 & 4.02 & 3.87018178889573 & 0.149818211104265 \tabularnewline
36 & 3.88 & 3.97546252500505 & -0.0954625250050485 \tabularnewline
37 & 4.02 & 3.91321076824911 & 0.106789231750894 \tabularnewline
38 & 4.03 & 4.00147392132405 & 0.0285260786759544 \tabularnewline
39 & 4.09 & 4.03291519275463 & 0.0570848072453656 \tabularnewline
40 & 3.99 & 4.03125386588466 & -0.0412538658846602 \tabularnewline
41 & 4.01 & 3.92239952550321 & 0.0876004744967872 \tabularnewline
42 & 4.01 & 3.96672267620819 & 0.0432773237918087 \tabularnewline
43 & 4.19 & 4.06565681898308 & 0.124343181016924 \tabularnewline
44 & 4.3 & 4.23015227798258 & 0.0698477220174186 \tabularnewline
45 & 4.27 & 4.25465835663897 & 0.0153416433610332 \tabularnewline
46 & 3.82 & 4.07779989054089 & -0.257799890540892 \tabularnewline
47 & 3.15 & 3.41064698144699 & -0.260646981446994 \tabularnewline
48 & 2.49 & 2.54781554031771 & -0.0578155403177057 \tabularnewline
49 & 1.81 & 1.69084763412794 & 0.119152365872065 \tabularnewline
50 & 1.26 & 1.33906888480093 & -0.07906888480093 \tabularnewline
51 & 1.06 & 0.917948182793837 & 0.142051817206163 \tabularnewline
52 & 0.84 & 0.768292410373594 & 0.0717075896264055 \tabularnewline
53 & 0.78 & 0.67140687263454 & 0.108593127365460 \tabularnewline
54 & 0.7 & 0.701562648105538 & -0.00156264810553799 \tabularnewline
55 & 0.36 & 0.597176792686524 & -0.237176792686524 \tabularnewline
56 & 0.35 & 0.378910489598185 & -0.028910489598185 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58371&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]2.08[/C][C]2.14437343998530[/C][C]-0.0643734399853037[/C][/ROW]
[ROW][C]2[/C][C]2.06[/C][C]2.10311564766674[/C][C]-0.0431156476667425[/C][/ROW]
[ROW][C]3[/C][C]2.06[/C][C]2.15623529409795[/C][C]-0.0962352940979458[/C][/ROW]
[ROW][C]4[/C][C]2.08[/C][C]2.11903353668246[/C][C]-0.0390335366824608[/C][/ROW]
[ROW][C]5[/C][C]2.07[/C][C]2.13108985563209[/C][C]-0.0610898556320865[/C][/ROW]
[ROW][C]6[/C][C]2.06[/C][C]2.10158426804425[/C][C]-0.0415842680442524[/C][/ROW]
[ROW][C]7[/C][C]2.07[/C][C]2.03243352348166[/C][C]0.0375664765183375[/C][/ROW]
[ROW][C]8[/C][C]2.06[/C][C]2.06508747203552[/C][C]-0.00508747203551918[/C][/ROW]
[ROW][C]9[/C][C]2.09[/C][C]2.06419000465426[/C][C]0.0258099953457381[/C][/ROW]
[ROW][C]10[/C][C]2.07[/C][C]1.98515921690176[/C][C]0.0848407830982383[/C][/ROW]
[ROW][C]11[/C][C]2.09[/C][C]1.98216159653723[/C][C]0.107838403462771[/C][/ROW]
[ROW][C]12[/C][C]2.28[/C][C]2.18291976044756[/C][C]0.0970802395524438[/C][/ROW]
[ROW][C]13[/C][C]2.33[/C][C]2.40957124339202[/C][C]-0.079571243392021[/C][/ROW]
[ROW][C]14[/C][C]2.35[/C][C]2.28880563114854[/C][C]0.0611943688514634[/C][/ROW]
[ROW][C]15[/C][C]2.52[/C][C]2.53816158815665[/C][C]-0.0181615881566496[/C][/ROW]
[ROW][C]16[/C][C]2.63[/C][C]2.6203438916268[/C][C]0.00965610837320004[/C][/ROW]
[ROW][C]17[/C][C]2.58[/C][C]2.63380481656131[/C][C]-0.0538048165613066[/C][/ROW]
[ROW][C]18[/C][C]2.7[/C][C]2.70747098376965[/C][C]-0.00747098376965239[/C][/ROW]
[ROW][C]19[/C][C]2.81[/C][C]2.75892557884905[/C][C]0.0510744211509518[/C][/ROW]
[ROW][C]20[/C][C]2.97[/C][C]2.99013640303196[/C][C]-0.0201364030319573[/C][/ROW]
[ROW][C]21[/C][C]3.04[/C][C]3.08370809741631[/C][C]-0.0437080974163098[/C][/ROW]
[ROW][C]22[/C][C]3.28[/C][C]3.13862637244065[/C][C]0.141373627559345[/C][/ROW]
[ROW][C]23[/C][C]3.33[/C][C]3.32700963312004[/C][C]0.00299036687995733[/C][/ROW]
[ROW][C]24[/C][C]3.5[/C][C]3.44380217422969[/C][C]0.0561978257703104[/C][/ROW]
[ROW][C]25[/C][C]3.56[/C][C]3.64199691424563[/C][C]-0.081996914245634[/C][/ROW]
[ROW][C]26[/C][C]3.57[/C][C]3.53753591505974[/C][C]0.0324640849402547[/C][/ROW]
[ROW][C]27[/C][C]3.69[/C][C]3.77473974219693[/C][C]-0.0847397421969333[/C][/ROW]
[ROW][C]28[/C][C]3.82[/C][C]3.82107629543248[/C][C]-0.00107629543248452[/C][/ROW]
[ROW][C]29[/C][C]3.79[/C][C]3.87129892966885[/C][C]-0.0812989296688536[/C][/ROW]
[ROW][C]30[/C][C]3.96[/C][C]3.95265942387237[/C][C]0.0073405761276342[/C][/ROW]
[ROW][C]31[/C][C]4.06[/C][C]4.03580728599969[/C][C]0.0241927140003100[/C][/ROW]
[ROW][C]32[/C][C]4.05[/C][C]4.06571335735176[/C][C]-0.0157133573517571[/C][/ROW]
[ROW][C]33[/C][C]4.03[/C][C]4.02744354129046[/C][C]0.00255645870953857[/C][/ROW]
[ROW][C]34[/C][C]3.94[/C][C]3.90841452011669[/C][C]0.0315854798833081[/C][/ROW]
[ROW][C]35[/C][C]4.02[/C][C]3.87018178889573[/C][C]0.149818211104265[/C][/ROW]
[ROW][C]36[/C][C]3.88[/C][C]3.97546252500505[/C][C]-0.0954625250050485[/C][/ROW]
[ROW][C]37[/C][C]4.02[/C][C]3.91321076824911[/C][C]0.106789231750894[/C][/ROW]
[ROW][C]38[/C][C]4.03[/C][C]4.00147392132405[/C][C]0.0285260786759544[/C][/ROW]
[ROW][C]39[/C][C]4.09[/C][C]4.03291519275463[/C][C]0.0570848072453656[/C][/ROW]
[ROW][C]40[/C][C]3.99[/C][C]4.03125386588466[/C][C]-0.0412538658846602[/C][/ROW]
[ROW][C]41[/C][C]4.01[/C][C]3.92239952550321[/C][C]0.0876004744967872[/C][/ROW]
[ROW][C]42[/C][C]4.01[/C][C]3.96672267620819[/C][C]0.0432773237918087[/C][/ROW]
[ROW][C]43[/C][C]4.19[/C][C]4.06565681898308[/C][C]0.124343181016924[/C][/ROW]
[ROW][C]44[/C][C]4.3[/C][C]4.23015227798258[/C][C]0.0698477220174186[/C][/ROW]
[ROW][C]45[/C][C]4.27[/C][C]4.25465835663897[/C][C]0.0153416433610332[/C][/ROW]
[ROW][C]46[/C][C]3.82[/C][C]4.07779989054089[/C][C]-0.257799890540892[/C][/ROW]
[ROW][C]47[/C][C]3.15[/C][C]3.41064698144699[/C][C]-0.260646981446994[/C][/ROW]
[ROW][C]48[/C][C]2.49[/C][C]2.54781554031771[/C][C]-0.0578155403177057[/C][/ROW]
[ROW][C]49[/C][C]1.81[/C][C]1.69084763412794[/C][C]0.119152365872065[/C][/ROW]
[ROW][C]50[/C][C]1.26[/C][C]1.33906888480093[/C][C]-0.07906888480093[/C][/ROW]
[ROW][C]51[/C][C]1.06[/C][C]0.917948182793837[/C][C]0.142051817206163[/C][/ROW]
[ROW][C]52[/C][C]0.84[/C][C]0.768292410373594[/C][C]0.0717075896264055[/C][/ROW]
[ROW][C]53[/C][C]0.78[/C][C]0.67140687263454[/C][C]0.108593127365460[/C][/ROW]
[ROW][C]54[/C][C]0.7[/C][C]0.701562648105538[/C][C]-0.00156264810553799[/C][/ROW]
[ROW][C]55[/C][C]0.36[/C][C]0.597176792686524[/C][C]-0.237176792686524[/C][/ROW]
[ROW][C]56[/C][C]0.35[/C][C]0.378910489598185[/C][C]-0.028910489598185[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58371&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58371&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
12.082.14437343998530-0.0643734399853037
22.062.10311564766674-0.0431156476667425
32.062.15623529409795-0.0962352940979458
42.082.11903353668246-0.0390335366824608
52.072.13108985563209-0.0610898556320865
62.062.10158426804425-0.0415842680442524
72.072.032433523481660.0375664765183375
82.062.06508747203552-0.00508747203551918
92.092.064190004654260.0258099953457381
102.071.985159216901760.0848407830982383
112.091.982161596537230.107838403462771
122.282.182919760447560.0970802395524438
132.332.40957124339202-0.079571243392021
142.352.288805631148540.0611943688514634
152.522.53816158815665-0.0181615881566496
162.632.62034389162680.00965610837320004
172.582.63380481656131-0.0538048165613066
182.72.70747098376965-0.00747098376965239
192.812.758925578849050.0510744211509518
202.972.99013640303196-0.0201364030319573
213.043.08370809741631-0.0437080974163098
223.283.138626372440650.141373627559345
233.333.327009633120040.00299036687995733
243.53.443802174229690.0561978257703104
253.563.64199691424563-0.081996914245634
263.573.537535915059740.0324640849402547
273.693.77473974219693-0.0847397421969333
283.823.82107629543248-0.00107629543248452
293.793.87129892966885-0.0812989296688536
303.963.952659423872370.0073405761276342
314.064.035807285999690.0241927140003100
324.054.06571335735176-0.0157133573517571
334.034.027443541290460.00255645870953857
343.943.908414520116690.0315854798833081
354.023.870181788895730.149818211104265
363.883.97546252500505-0.0954625250050485
374.023.913210768249110.106789231750894
384.034.001473921324050.0285260786759544
394.094.032915192754630.0570848072453656
403.994.03125386588466-0.0412538658846602
414.013.922399525503210.0876004744967872
424.013.966722676208190.0432773237918087
434.194.065656818983080.124343181016924
444.34.230152277982580.0698477220174186
454.274.254658356638970.0153416433610332
463.824.07779989054089-0.257799890540892
473.153.41064698144699-0.260646981446994
482.492.54781554031771-0.0578155403177057
491.811.690847634127940.119152365872065
501.261.33906888480093-0.07906888480093
511.060.9179481827938370.142051817206163
520.840.7682924103735940.0717075896264055
530.780.671406872634540.108593127365460
540.70.701562648105538-0.00156264810553799
550.360.597176792686524-0.237176792686524
560.350.378910489598185-0.028910489598185







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.01433843467414440.02867686934828870.985661565325856
200.002529299989600380.005058599979200760.9974707000104
210.0004688397016436760.0009376794032873530.999531160298356
220.0005129492999288060.001025898599857610.999487050700071
239.58819342595953e-050.0001917638685191910.99990411806574
242.08509321733568e-054.17018643467136e-050.999979149067827
254.62565115711951e-069.25130231423902e-060.999995374348843
267.49288453113313e-071.49857690622663e-060.999999250711547
276.8412628114168e-071.36825256228336e-060.999999315873719
281.29571307738209e-072.59142615476419e-070.999999870428692
296.43024642337561e-081.28604928467512e-070.999999935697536
302.03833527143946e-084.07667054287893e-080.999999979616647
314.24973295087452e-098.49946590174904e-090.999999995750267
322.80244334143799e-095.60488668287597e-090.999999997197557
337.76124823151533e-091.55224964630307e-080.999999992238752
342.44315118144257e-074.88630236288515e-070.999999755684882
355.04340426487219e-071.00868085297444e-060.999999495659573
361.25946645896411e-052.51893291792822e-050.99998740533541
373.73895208304896e-067.47790416609791e-060.999996261047917

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
19 & 0.0143384346741444 & 0.0286768693482887 & 0.985661565325856 \tabularnewline
20 & 0.00252929998960038 & 0.00505859997920076 & 0.9974707000104 \tabularnewline
21 & 0.000468839701643676 & 0.000937679403287353 & 0.999531160298356 \tabularnewline
22 & 0.000512949299928806 & 0.00102589859985761 & 0.999487050700071 \tabularnewline
23 & 9.58819342595953e-05 & 0.000191763868519191 & 0.99990411806574 \tabularnewline
24 & 2.08509321733568e-05 & 4.17018643467136e-05 & 0.999979149067827 \tabularnewline
25 & 4.62565115711951e-06 & 9.25130231423902e-06 & 0.999995374348843 \tabularnewline
26 & 7.49288453113313e-07 & 1.49857690622663e-06 & 0.999999250711547 \tabularnewline
27 & 6.8412628114168e-07 & 1.36825256228336e-06 & 0.999999315873719 \tabularnewline
28 & 1.29571307738209e-07 & 2.59142615476419e-07 & 0.999999870428692 \tabularnewline
29 & 6.43024642337561e-08 & 1.28604928467512e-07 & 0.999999935697536 \tabularnewline
30 & 2.03833527143946e-08 & 4.07667054287893e-08 & 0.999999979616647 \tabularnewline
31 & 4.24973295087452e-09 & 8.49946590174904e-09 & 0.999999995750267 \tabularnewline
32 & 2.80244334143799e-09 & 5.60488668287597e-09 & 0.999999997197557 \tabularnewline
33 & 7.76124823151533e-09 & 1.55224964630307e-08 & 0.999999992238752 \tabularnewline
34 & 2.44315118144257e-07 & 4.88630236288515e-07 & 0.999999755684882 \tabularnewline
35 & 5.04340426487219e-07 & 1.00868085297444e-06 & 0.999999495659573 \tabularnewline
36 & 1.25946645896411e-05 & 2.51893291792822e-05 & 0.99998740533541 \tabularnewline
37 & 3.73895208304896e-06 & 7.47790416609791e-06 & 0.999996261047917 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58371&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]19[/C][C]0.0143384346741444[/C][C]0.0286768693482887[/C][C]0.985661565325856[/C][/ROW]
[ROW][C]20[/C][C]0.00252929998960038[/C][C]0.00505859997920076[/C][C]0.9974707000104[/C][/ROW]
[ROW][C]21[/C][C]0.000468839701643676[/C][C]0.000937679403287353[/C][C]0.999531160298356[/C][/ROW]
[ROW][C]22[/C][C]0.000512949299928806[/C][C]0.00102589859985761[/C][C]0.999487050700071[/C][/ROW]
[ROW][C]23[/C][C]9.58819342595953e-05[/C][C]0.000191763868519191[/C][C]0.99990411806574[/C][/ROW]
[ROW][C]24[/C][C]2.08509321733568e-05[/C][C]4.17018643467136e-05[/C][C]0.999979149067827[/C][/ROW]
[ROW][C]25[/C][C]4.62565115711951e-06[/C][C]9.25130231423902e-06[/C][C]0.999995374348843[/C][/ROW]
[ROW][C]26[/C][C]7.49288453113313e-07[/C][C]1.49857690622663e-06[/C][C]0.999999250711547[/C][/ROW]
[ROW][C]27[/C][C]6.8412628114168e-07[/C][C]1.36825256228336e-06[/C][C]0.999999315873719[/C][/ROW]
[ROW][C]28[/C][C]1.29571307738209e-07[/C][C]2.59142615476419e-07[/C][C]0.999999870428692[/C][/ROW]
[ROW][C]29[/C][C]6.43024642337561e-08[/C][C]1.28604928467512e-07[/C][C]0.999999935697536[/C][/ROW]
[ROW][C]30[/C][C]2.03833527143946e-08[/C][C]4.07667054287893e-08[/C][C]0.999999979616647[/C][/ROW]
[ROW][C]31[/C][C]4.24973295087452e-09[/C][C]8.49946590174904e-09[/C][C]0.999999995750267[/C][/ROW]
[ROW][C]32[/C][C]2.80244334143799e-09[/C][C]5.60488668287597e-09[/C][C]0.999999997197557[/C][/ROW]
[ROW][C]33[/C][C]7.76124823151533e-09[/C][C]1.55224964630307e-08[/C][C]0.999999992238752[/C][/ROW]
[ROW][C]34[/C][C]2.44315118144257e-07[/C][C]4.88630236288515e-07[/C][C]0.999999755684882[/C][/ROW]
[ROW][C]35[/C][C]5.04340426487219e-07[/C][C]1.00868085297444e-06[/C][C]0.999999495659573[/C][/ROW]
[ROW][C]36[/C][C]1.25946645896411e-05[/C][C]2.51893291792822e-05[/C][C]0.99998740533541[/C][/ROW]
[ROW][C]37[/C][C]3.73895208304896e-06[/C][C]7.47790416609791e-06[/C][C]0.999996261047917[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58371&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58371&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
190.01433843467414440.02867686934828870.985661565325856
200.002529299989600380.005058599979200760.9974707000104
210.0004688397016436760.0009376794032873530.999531160298356
220.0005129492999288060.001025898599857610.999487050700071
239.58819342595953e-050.0001917638685191910.99990411806574
242.08509321733568e-054.17018643467136e-050.999979149067827
254.62565115711951e-069.25130231423902e-060.999995374348843
267.49288453113313e-071.49857690622663e-060.999999250711547
276.8412628114168e-071.36825256228336e-060.999999315873719
281.29571307738209e-072.59142615476419e-070.999999870428692
296.43024642337561e-081.28604928467512e-070.999999935697536
302.03833527143946e-084.07667054287893e-080.999999979616647
314.24973295087452e-098.49946590174904e-090.999999995750267
322.80244334143799e-095.60488668287597e-090.999999997197557
337.76124823151533e-091.55224964630307e-080.999999992238752
342.44315118144257e-074.88630236288515e-070.999999755684882
355.04340426487219e-071.00868085297444e-060.999999495659573
361.25946645896411e-052.51893291792822e-050.99998740533541
373.73895208304896e-067.47790416609791e-060.999996261047917







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level180.947368421052632NOK
5% type I error level191NOK
10% type I error level191NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58371&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 level180.947368421052632NOK
5% type I error level191NOK
10% type I error level191NOK



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