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 computationThu, 19 Nov 2009 14:16:20 -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/19/t1258665473785sosjwpmbi5se.htm/, Retrieved Thu, 18 Apr 2024 14:01:01 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57961, Retrieved Thu, 18 Apr 2024 14:01:01 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact138
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [Model 3] [2009-11-19 21:16:20] [e458b4e05bf28a297f8af8d9f96e59d6] [Current]
Feedback Forum

Post a new message
Dataseries X:
4.3	96.2
4.1	96.8
3.9	109.9
3.8	88
3.7	91.1
3.7	106.4
4.1	68.6
4.1	100.1
3.8	108
3.7	106
3.5	108.6
3.6	91.5
4.1	99.2
3.8	98
3.7	96.6
3.6	102.8
3.3	96.9
3.4	110
3.7	70.5
3.7	101.9
3.4	109.6
3.3	107.8
3	113
3	93.8
3.3	108
3	102.8
2.9	116.3
2.8	89.2
2.5	106.7
2.6	112.1
2.8	74.2
2.7	108.8
2.4	111.5
2.2	118.8
2.1	118.9
2.1	97.6
2.3	116.4
2.1	107.9
2	121.2
1.9	97.9
1.7	113.4
1.8	117.6
2.1	79.6
2	115.9
1.8	115.7
1.7	129.1
1.6	123.3
1.6	96.7
1.8	121.2
1.7	118.2
1.7	102.1
1.5	125.4
1.5	116.7
1.5	121.3
1.8	85.3
1.8	114.2
1.7	124.4
1.7	131
1.8	118.3
2	99.6




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57961&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
unempl[t] = + 5.27350954525389 -0.0126416256269494proman[t] + 0.366770003948042M1[t] + 0.147528205533444M2[t] + 0.148660914596817M3[t] -0.0350531745152288M4[t] -0.116195958064706M5[t] + 0.0960089185315434M6[t] -0.0378519689375812M7[t] + 0.378004755217993M8[t] + 0.254054582521167M9[t] + 0.257968449222469M10[t] + 0.155666429147978M11[t] -0.0444982262546406t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
unempl[t] =  +  5.27350954525389 -0.0126416256269494proman[t] +  0.366770003948042M1[t] +  0.147528205533444M2[t] +  0.148660914596817M3[t] -0.0350531745152288M4[t] -0.116195958064706M5[t] +  0.0960089185315434M6[t] -0.0378519689375812M7[t] +  0.378004755217993M8[t] +  0.254054582521167M9[t] +  0.257968449222469M10[t] +  0.155666429147978M11[t] -0.0444982262546406t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57961&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]unempl[t] =  +  5.27350954525389 -0.0126416256269494proman[t] +  0.366770003948042M1[t] +  0.147528205533444M2[t] +  0.148660914596817M3[t] -0.0350531745152288M4[t] -0.116195958064706M5[t] +  0.0960089185315434M6[t] -0.0378519689375812M7[t] +  0.378004755217993M8[t] +  0.254054582521167M9[t] +  0.257968449222469M10[t] +  0.155666429147978M11[t] -0.0444982262546406t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57961&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57961&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
unempl[t] = + 5.27350954525389 -0.0126416256269494proman[t] + 0.366770003948042M1[t] + 0.147528205533444M2[t] + 0.148660914596817M3[t] -0.0350531745152288M4[t] -0.116195958064706M5[t] + 0.0960089185315434M6[t] -0.0378519689375812M7[t] + 0.378004755217993M8[t] + 0.254054582521167M9[t] + 0.257968449222469M10[t] + 0.155666429147978M11[t] -0.0444982262546406t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)5.273509545253890.5340879.873900
proman-0.01264162562694940.006315-2.00180.0512270.025614
M10.3667700039480420.1863941.96770.0551470.027573
M20.1475282055334440.1737590.8490.4002570.200128
M30.1486609145968170.1869550.79520.4305980.215299
M4-0.03505317451522880.161555-0.2170.8291890.414594
M5-0.1161959580647060.170646-0.68090.4993380.249669
M60.09600891853154340.1984140.48390.6307650.315383
M7-0.03785196893758120.191981-0.19720.8445670.422284
M80.3780047552179930.176452.14230.0374980.018749
M90.2540545825211670.195091.30220.1993160.099658
M100.2579684492224690.2130321.21090.2321040.116052
M110.1556664291479780.2023440.76930.4456370.222819
t-0.04449822625464060.003026-14.706300

\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) & 5.27350954525389 & 0.534087 & 9.8739 & 0 & 0 \tabularnewline
proman & -0.0126416256269494 & 0.006315 & -2.0018 & 0.051227 & 0.025614 \tabularnewline
M1 & 0.366770003948042 & 0.186394 & 1.9677 & 0.055147 & 0.027573 \tabularnewline
M2 & 0.147528205533444 & 0.173759 & 0.849 & 0.400257 & 0.200128 \tabularnewline
M3 & 0.148660914596817 & 0.186955 & 0.7952 & 0.430598 & 0.215299 \tabularnewline
M4 & -0.0350531745152288 & 0.161555 & -0.217 & 0.829189 & 0.414594 \tabularnewline
M5 & -0.116195958064706 & 0.170646 & -0.6809 & 0.499338 & 0.249669 \tabularnewline
M6 & 0.0960089185315434 & 0.198414 & 0.4839 & 0.630765 & 0.315383 \tabularnewline
M7 & -0.0378519689375812 & 0.191981 & -0.1972 & 0.844567 & 0.422284 \tabularnewline
M8 & 0.378004755217993 & 0.17645 & 2.1423 & 0.037498 & 0.018749 \tabularnewline
M9 & 0.254054582521167 & 0.19509 & 1.3022 & 0.199316 & 0.099658 \tabularnewline
M10 & 0.257968449222469 & 0.213032 & 1.2109 & 0.232104 & 0.116052 \tabularnewline
M11 & 0.155666429147978 & 0.202344 & 0.7693 & 0.445637 & 0.222819 \tabularnewline
t & -0.0444982262546406 & 0.003026 & -14.7063 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57961&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]5.27350954525389[/C][C]0.534087[/C][C]9.8739[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]proman[/C][C]-0.0126416256269494[/C][C]0.006315[/C][C]-2.0018[/C][C]0.051227[/C][C]0.025614[/C][/ROW]
[ROW][C]M1[/C][C]0.366770003948042[/C][C]0.186394[/C][C]1.9677[/C][C]0.055147[/C][C]0.027573[/C][/ROW]
[ROW][C]M2[/C][C]0.147528205533444[/C][C]0.173759[/C][C]0.849[/C][C]0.400257[/C][C]0.200128[/C][/ROW]
[ROW][C]M3[/C][C]0.148660914596817[/C][C]0.186955[/C][C]0.7952[/C][C]0.430598[/C][C]0.215299[/C][/ROW]
[ROW][C]M4[/C][C]-0.0350531745152288[/C][C]0.161555[/C][C]-0.217[/C][C]0.829189[/C][C]0.414594[/C][/ROW]
[ROW][C]M5[/C][C]-0.116195958064706[/C][C]0.170646[/C][C]-0.6809[/C][C]0.499338[/C][C]0.249669[/C][/ROW]
[ROW][C]M6[/C][C]0.0960089185315434[/C][C]0.198414[/C][C]0.4839[/C][C]0.630765[/C][C]0.315383[/C][/ROW]
[ROW][C]M7[/C][C]-0.0378519689375812[/C][C]0.191981[/C][C]-0.1972[/C][C]0.844567[/C][C]0.422284[/C][/ROW]
[ROW][C]M8[/C][C]0.378004755217993[/C][C]0.17645[/C][C]2.1423[/C][C]0.037498[/C][C]0.018749[/C][/ROW]
[ROW][C]M9[/C][C]0.254054582521167[/C][C]0.19509[/C][C]1.3022[/C][C]0.199316[/C][C]0.099658[/C][/ROW]
[ROW][C]M10[/C][C]0.257968449222469[/C][C]0.213032[/C][C]1.2109[/C][C]0.232104[/C][C]0.116052[/C][/ROW]
[ROW][C]M11[/C][C]0.155666429147978[/C][C]0.202344[/C][C]0.7693[/C][C]0.445637[/C][C]0.222819[/C][/ROW]
[ROW][C]t[/C][C]-0.0444982262546406[/C][C]0.003026[/C][C]-14.7063[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57961&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57961&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)5.273509545253890.5340879.873900
proman-0.01264162562694940.006315-2.00180.0512270.025614
M10.3667700039480420.1863941.96770.0551470.027573
M20.1475282055334440.1737590.8490.4002570.200128
M30.1486609145968170.1869550.79520.4305980.215299
M4-0.03505317451522880.161555-0.2170.8291890.414594
M5-0.1161959580647060.170646-0.68090.4993380.249669
M60.09600891853154340.1984140.48390.6307650.315383
M7-0.03785196893758120.191981-0.19720.8445670.422284
M80.3780047552179930.176452.14230.0374980.018749
M90.2540545825211670.195091.30220.1993160.099658
M100.2579684492224690.2130321.21090.2321040.116052
M110.1556664291479780.2023440.76930.4456370.222819
t-0.04449822625464060.003026-14.706300







Multiple Linear Regression - Regression Statistics
Multiple R0.971427086516528
R-squared0.94367058441799
Adjusted R-squared0.92775140175351
F-TEST (value)59.2788338639719
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.241960821749243
Sum Squared Residuals2.69307180603216

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.971427086516528 \tabularnewline
R-squared & 0.94367058441799 \tabularnewline
Adjusted R-squared & 0.92775140175351 \tabularnewline
F-TEST (value) & 59.2788338639719 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.241960821749243 \tabularnewline
Sum Squared Residuals & 2.69307180603216 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57961&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.971427086516528[/C][/ROW]
[ROW][C]R-squared[/C][C]0.94367058441799[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.92775140175351[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]59.2788338639719[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/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.241960821749243[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]2.69307180603216[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57961&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57961&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.971427086516528
R-squared0.94367058441799
Adjusted R-squared0.92775140175351
F-TEST (value)59.2788338639719
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.241960821749243
Sum Squared Residuals2.69307180603216







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
14.34.37965693763479-0.0796569376347907
24.14.10833193758935-0.00833193758935118
33.93.899361124685050.000638875314950401
43.83.94800041054855-0.148000410548554
53.73.78317036130089-0.0831703613008928
63.73.75746013955018-0.057460139550176
74.14.05695447452510.0430455254749015
84.14.030101765177130.0698982348228741
93.83.761784523772760.0382154762272423
103.73.74648341547332-0.0464834154733195
113.53.56681494251412-0.0668149425141187
123.63.582822085332340.0171779146676650
134.13.807753345698220.292246654301775
143.83.559183271781330.240816728218674
153.73.533516030467790.166483969532212
163.63.226925636214020.373074363785985
173.33.17587021760890.124129782391101
183.43.177971572237470.222028427762529
193.73.498956670778210.201043329221793
203.73.473368123992930.226631876007071
213.43.207579207713950.192420792286047
223.33.189749774289120.110250225710876
2332.977213074699850.022786925300146
2433.01976763133466-0.0197676313346639
253.33.162528325125380.137471674874616
2632.964524753716280.035475246283718
272.92.75049729056120.149502709438802
282.82.86487302968484-0.0648730296848397
292.52.51800357140911-0.0180035714091081
302.62.61744544336519-0.0174454433651901
312.82.91820394090281-0.118203940902807
322.72.85216219211129-0.152162192111291
332.42.64958140396706-0.249581403967062
342.22.51671317733699-0.316713177336993
352.12.36864876844517-0.268648768445165
362.12.43775073889657-0.337750738896569
372.32.52235995480332-0.222359954803322
382.12.36607374796315-0.266073747963153
3922.15457460993346-0.154574609933459
401.92.22091217167469-0.320912171674693
411.71.89932596465286-0.19932596465286
421.82.01393778736128-0.213937787361281
432.12.31596044746159-0.215960447461593
4422.22842793510426-0.228427935104264
451.82.06250786127819-0.262507861278187
461.71.85252571832373-0.152525718323727
471.61.7790469006309-0.179046900630901
481.61.91514948690514-0.315149486905136
491.81.92770143673828-0.127701436738278
501.71.70188628894989-0.00188628894988755
511.71.86205094435251-0.162050944352505
521.51.339288751877900.160711248122102
531.51.323629885028240.17637011497176
541.51.433185057485880.0668149425141189
551.81.709924466332300.090075533667705
561.81.715939983614390.0840600163856097
571.71.418547003268040.281452996731960
581.71.294527914576840.405472085423163
591.81.308276313709960.491723686290039
6021.344510057531300.655489942468704

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 4.3 & 4.37965693763479 & -0.0796569376347907 \tabularnewline
2 & 4.1 & 4.10833193758935 & -0.00833193758935118 \tabularnewline
3 & 3.9 & 3.89936112468505 & 0.000638875314950401 \tabularnewline
4 & 3.8 & 3.94800041054855 & -0.148000410548554 \tabularnewline
5 & 3.7 & 3.78317036130089 & -0.0831703613008928 \tabularnewline
6 & 3.7 & 3.75746013955018 & -0.057460139550176 \tabularnewline
7 & 4.1 & 4.0569544745251 & 0.0430455254749015 \tabularnewline
8 & 4.1 & 4.03010176517713 & 0.0698982348228741 \tabularnewline
9 & 3.8 & 3.76178452377276 & 0.0382154762272423 \tabularnewline
10 & 3.7 & 3.74648341547332 & -0.0464834154733195 \tabularnewline
11 & 3.5 & 3.56681494251412 & -0.0668149425141187 \tabularnewline
12 & 3.6 & 3.58282208533234 & 0.0171779146676650 \tabularnewline
13 & 4.1 & 3.80775334569822 & 0.292246654301775 \tabularnewline
14 & 3.8 & 3.55918327178133 & 0.240816728218674 \tabularnewline
15 & 3.7 & 3.53351603046779 & 0.166483969532212 \tabularnewline
16 & 3.6 & 3.22692563621402 & 0.373074363785985 \tabularnewline
17 & 3.3 & 3.1758702176089 & 0.124129782391101 \tabularnewline
18 & 3.4 & 3.17797157223747 & 0.222028427762529 \tabularnewline
19 & 3.7 & 3.49895667077821 & 0.201043329221793 \tabularnewline
20 & 3.7 & 3.47336812399293 & 0.226631876007071 \tabularnewline
21 & 3.4 & 3.20757920771395 & 0.192420792286047 \tabularnewline
22 & 3.3 & 3.18974977428912 & 0.110250225710876 \tabularnewline
23 & 3 & 2.97721307469985 & 0.022786925300146 \tabularnewline
24 & 3 & 3.01976763133466 & -0.0197676313346639 \tabularnewline
25 & 3.3 & 3.16252832512538 & 0.137471674874616 \tabularnewline
26 & 3 & 2.96452475371628 & 0.035475246283718 \tabularnewline
27 & 2.9 & 2.7504972905612 & 0.149502709438802 \tabularnewline
28 & 2.8 & 2.86487302968484 & -0.0648730296848397 \tabularnewline
29 & 2.5 & 2.51800357140911 & -0.0180035714091081 \tabularnewline
30 & 2.6 & 2.61744544336519 & -0.0174454433651901 \tabularnewline
31 & 2.8 & 2.91820394090281 & -0.118203940902807 \tabularnewline
32 & 2.7 & 2.85216219211129 & -0.152162192111291 \tabularnewline
33 & 2.4 & 2.64958140396706 & -0.249581403967062 \tabularnewline
34 & 2.2 & 2.51671317733699 & -0.316713177336993 \tabularnewline
35 & 2.1 & 2.36864876844517 & -0.268648768445165 \tabularnewline
36 & 2.1 & 2.43775073889657 & -0.337750738896569 \tabularnewline
37 & 2.3 & 2.52235995480332 & -0.222359954803322 \tabularnewline
38 & 2.1 & 2.36607374796315 & -0.266073747963153 \tabularnewline
39 & 2 & 2.15457460993346 & -0.154574609933459 \tabularnewline
40 & 1.9 & 2.22091217167469 & -0.320912171674693 \tabularnewline
41 & 1.7 & 1.89932596465286 & -0.19932596465286 \tabularnewline
42 & 1.8 & 2.01393778736128 & -0.213937787361281 \tabularnewline
43 & 2.1 & 2.31596044746159 & -0.215960447461593 \tabularnewline
44 & 2 & 2.22842793510426 & -0.228427935104264 \tabularnewline
45 & 1.8 & 2.06250786127819 & -0.262507861278187 \tabularnewline
46 & 1.7 & 1.85252571832373 & -0.152525718323727 \tabularnewline
47 & 1.6 & 1.7790469006309 & -0.179046900630901 \tabularnewline
48 & 1.6 & 1.91514948690514 & -0.315149486905136 \tabularnewline
49 & 1.8 & 1.92770143673828 & -0.127701436738278 \tabularnewline
50 & 1.7 & 1.70188628894989 & -0.00188628894988755 \tabularnewline
51 & 1.7 & 1.86205094435251 & -0.162050944352505 \tabularnewline
52 & 1.5 & 1.33928875187790 & 0.160711248122102 \tabularnewline
53 & 1.5 & 1.32362988502824 & 0.17637011497176 \tabularnewline
54 & 1.5 & 1.43318505748588 & 0.0668149425141189 \tabularnewline
55 & 1.8 & 1.70992446633230 & 0.090075533667705 \tabularnewline
56 & 1.8 & 1.71593998361439 & 0.0840600163856097 \tabularnewline
57 & 1.7 & 1.41854700326804 & 0.281452996731960 \tabularnewline
58 & 1.7 & 1.29452791457684 & 0.405472085423163 \tabularnewline
59 & 1.8 & 1.30827631370996 & 0.491723686290039 \tabularnewline
60 & 2 & 1.34451005753130 & 0.655489942468704 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57961&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]4.3[/C][C]4.37965693763479[/C][C]-0.0796569376347907[/C][/ROW]
[ROW][C]2[/C][C]4.1[/C][C]4.10833193758935[/C][C]-0.00833193758935118[/C][/ROW]
[ROW][C]3[/C][C]3.9[/C][C]3.89936112468505[/C][C]0.000638875314950401[/C][/ROW]
[ROW][C]4[/C][C]3.8[/C][C]3.94800041054855[/C][C]-0.148000410548554[/C][/ROW]
[ROW][C]5[/C][C]3.7[/C][C]3.78317036130089[/C][C]-0.0831703613008928[/C][/ROW]
[ROW][C]6[/C][C]3.7[/C][C]3.75746013955018[/C][C]-0.057460139550176[/C][/ROW]
[ROW][C]7[/C][C]4.1[/C][C]4.0569544745251[/C][C]0.0430455254749015[/C][/ROW]
[ROW][C]8[/C][C]4.1[/C][C]4.03010176517713[/C][C]0.0698982348228741[/C][/ROW]
[ROW][C]9[/C][C]3.8[/C][C]3.76178452377276[/C][C]0.0382154762272423[/C][/ROW]
[ROW][C]10[/C][C]3.7[/C][C]3.74648341547332[/C][C]-0.0464834154733195[/C][/ROW]
[ROW][C]11[/C][C]3.5[/C][C]3.56681494251412[/C][C]-0.0668149425141187[/C][/ROW]
[ROW][C]12[/C][C]3.6[/C][C]3.58282208533234[/C][C]0.0171779146676650[/C][/ROW]
[ROW][C]13[/C][C]4.1[/C][C]3.80775334569822[/C][C]0.292246654301775[/C][/ROW]
[ROW][C]14[/C][C]3.8[/C][C]3.55918327178133[/C][C]0.240816728218674[/C][/ROW]
[ROW][C]15[/C][C]3.7[/C][C]3.53351603046779[/C][C]0.166483969532212[/C][/ROW]
[ROW][C]16[/C][C]3.6[/C][C]3.22692563621402[/C][C]0.373074363785985[/C][/ROW]
[ROW][C]17[/C][C]3.3[/C][C]3.1758702176089[/C][C]0.124129782391101[/C][/ROW]
[ROW][C]18[/C][C]3.4[/C][C]3.17797157223747[/C][C]0.222028427762529[/C][/ROW]
[ROW][C]19[/C][C]3.7[/C][C]3.49895667077821[/C][C]0.201043329221793[/C][/ROW]
[ROW][C]20[/C][C]3.7[/C][C]3.47336812399293[/C][C]0.226631876007071[/C][/ROW]
[ROW][C]21[/C][C]3.4[/C][C]3.20757920771395[/C][C]0.192420792286047[/C][/ROW]
[ROW][C]22[/C][C]3.3[/C][C]3.18974977428912[/C][C]0.110250225710876[/C][/ROW]
[ROW][C]23[/C][C]3[/C][C]2.97721307469985[/C][C]0.022786925300146[/C][/ROW]
[ROW][C]24[/C][C]3[/C][C]3.01976763133466[/C][C]-0.0197676313346639[/C][/ROW]
[ROW][C]25[/C][C]3.3[/C][C]3.16252832512538[/C][C]0.137471674874616[/C][/ROW]
[ROW][C]26[/C][C]3[/C][C]2.96452475371628[/C][C]0.035475246283718[/C][/ROW]
[ROW][C]27[/C][C]2.9[/C][C]2.7504972905612[/C][C]0.149502709438802[/C][/ROW]
[ROW][C]28[/C][C]2.8[/C][C]2.86487302968484[/C][C]-0.0648730296848397[/C][/ROW]
[ROW][C]29[/C][C]2.5[/C][C]2.51800357140911[/C][C]-0.0180035714091081[/C][/ROW]
[ROW][C]30[/C][C]2.6[/C][C]2.61744544336519[/C][C]-0.0174454433651901[/C][/ROW]
[ROW][C]31[/C][C]2.8[/C][C]2.91820394090281[/C][C]-0.118203940902807[/C][/ROW]
[ROW][C]32[/C][C]2.7[/C][C]2.85216219211129[/C][C]-0.152162192111291[/C][/ROW]
[ROW][C]33[/C][C]2.4[/C][C]2.64958140396706[/C][C]-0.249581403967062[/C][/ROW]
[ROW][C]34[/C][C]2.2[/C][C]2.51671317733699[/C][C]-0.316713177336993[/C][/ROW]
[ROW][C]35[/C][C]2.1[/C][C]2.36864876844517[/C][C]-0.268648768445165[/C][/ROW]
[ROW][C]36[/C][C]2.1[/C][C]2.43775073889657[/C][C]-0.337750738896569[/C][/ROW]
[ROW][C]37[/C][C]2.3[/C][C]2.52235995480332[/C][C]-0.222359954803322[/C][/ROW]
[ROW][C]38[/C][C]2.1[/C][C]2.36607374796315[/C][C]-0.266073747963153[/C][/ROW]
[ROW][C]39[/C][C]2[/C][C]2.15457460993346[/C][C]-0.154574609933459[/C][/ROW]
[ROW][C]40[/C][C]1.9[/C][C]2.22091217167469[/C][C]-0.320912171674693[/C][/ROW]
[ROW][C]41[/C][C]1.7[/C][C]1.89932596465286[/C][C]-0.19932596465286[/C][/ROW]
[ROW][C]42[/C][C]1.8[/C][C]2.01393778736128[/C][C]-0.213937787361281[/C][/ROW]
[ROW][C]43[/C][C]2.1[/C][C]2.31596044746159[/C][C]-0.215960447461593[/C][/ROW]
[ROW][C]44[/C][C]2[/C][C]2.22842793510426[/C][C]-0.228427935104264[/C][/ROW]
[ROW][C]45[/C][C]1.8[/C][C]2.06250786127819[/C][C]-0.262507861278187[/C][/ROW]
[ROW][C]46[/C][C]1.7[/C][C]1.85252571832373[/C][C]-0.152525718323727[/C][/ROW]
[ROW][C]47[/C][C]1.6[/C][C]1.7790469006309[/C][C]-0.179046900630901[/C][/ROW]
[ROW][C]48[/C][C]1.6[/C][C]1.91514948690514[/C][C]-0.315149486905136[/C][/ROW]
[ROW][C]49[/C][C]1.8[/C][C]1.92770143673828[/C][C]-0.127701436738278[/C][/ROW]
[ROW][C]50[/C][C]1.7[/C][C]1.70188628894989[/C][C]-0.00188628894988755[/C][/ROW]
[ROW][C]51[/C][C]1.7[/C][C]1.86205094435251[/C][C]-0.162050944352505[/C][/ROW]
[ROW][C]52[/C][C]1.5[/C][C]1.33928875187790[/C][C]0.160711248122102[/C][/ROW]
[ROW][C]53[/C][C]1.5[/C][C]1.32362988502824[/C][C]0.17637011497176[/C][/ROW]
[ROW][C]54[/C][C]1.5[/C][C]1.43318505748588[/C][C]0.0668149425141189[/C][/ROW]
[ROW][C]55[/C][C]1.8[/C][C]1.70992446633230[/C][C]0.090075533667705[/C][/ROW]
[ROW][C]56[/C][C]1.8[/C][C]1.71593998361439[/C][C]0.0840600163856097[/C][/ROW]
[ROW][C]57[/C][C]1.7[/C][C]1.41854700326804[/C][C]0.281452996731960[/C][/ROW]
[ROW][C]58[/C][C]1.7[/C][C]1.29452791457684[/C][C]0.405472085423163[/C][/ROW]
[ROW][C]59[/C][C]1.8[/C][C]1.30827631370996[/C][C]0.491723686290039[/C][/ROW]
[ROW][C]60[/C][C]2[/C][C]1.34451005753130[/C][C]0.655489942468704[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57961&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57961&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
14.34.37965693763479-0.0796569376347907
24.14.10833193758935-0.00833193758935118
33.93.899361124685050.000638875314950401
43.83.94800041054855-0.148000410548554
53.73.78317036130089-0.0831703613008928
63.73.75746013955018-0.057460139550176
74.14.05695447452510.0430455254749015
84.14.030101765177130.0698982348228741
93.83.761784523772760.0382154762272423
103.73.74648341547332-0.0464834154733195
113.53.56681494251412-0.0668149425141187
123.63.582822085332340.0171779146676650
134.13.807753345698220.292246654301775
143.83.559183271781330.240816728218674
153.73.533516030467790.166483969532212
163.63.226925636214020.373074363785985
173.33.17587021760890.124129782391101
183.43.177971572237470.222028427762529
193.73.498956670778210.201043329221793
203.73.473368123992930.226631876007071
213.43.207579207713950.192420792286047
223.33.189749774289120.110250225710876
2332.977213074699850.022786925300146
2433.01976763133466-0.0197676313346639
253.33.162528325125380.137471674874616
2632.964524753716280.035475246283718
272.92.75049729056120.149502709438802
282.82.86487302968484-0.0648730296848397
292.52.51800357140911-0.0180035714091081
302.62.61744544336519-0.0174454433651901
312.82.91820394090281-0.118203940902807
322.72.85216219211129-0.152162192111291
332.42.64958140396706-0.249581403967062
342.22.51671317733699-0.316713177336993
352.12.36864876844517-0.268648768445165
362.12.43775073889657-0.337750738896569
372.32.52235995480332-0.222359954803322
382.12.36607374796315-0.266073747963153
3922.15457460993346-0.154574609933459
401.92.22091217167469-0.320912171674693
411.71.89932596465286-0.19932596465286
421.82.01393778736128-0.213937787361281
432.12.31596044746159-0.215960447461593
4422.22842793510426-0.228427935104264
451.82.06250786127819-0.262507861278187
461.71.85252571832373-0.152525718323727
471.61.7790469006309-0.179046900630901
481.61.91514948690514-0.315149486905136
491.81.92770143673828-0.127701436738278
501.71.70188628894989-0.00188628894988755
511.71.86205094435251-0.162050944352505
521.51.339288751877900.160711248122102
531.51.323629885028240.17637011497176
541.51.433185057485880.0668149425141189
551.81.709924466332300.090075533667705
561.81.715939983614390.0840600163856097
571.71.418547003268040.281452996731960
581.71.294527914576840.405472085423163
591.81.308276313709960.491723686290039
6021.344510057531300.655489942468704







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.02367472835283510.04734945670567010.976325271647165
180.005696191037369950.01139238207473990.99430380896263
190.003142603253888350.006285206507776690.996857396746112
200.00157817627187270.00315635254374540.998421823728127
210.0007512908832666640.001502581766533330.999248709116733
220.0003111785357947320.0006223570715894630.999688821464205
230.0003078868773524750.0006157737547049510.999692113122647
240.0007586627362637020.001517325472527400.999241337263736
250.004902881759901240.009805763519802480.995097118240099
260.01516974093097480.03033948186194950.984830259069025
270.02498922382272630.04997844764545270.975010776177274
280.04068347817314180.08136695634628350.959316521826858
290.05326913889535460.1065382777907090.946730861104645
300.08754588551256770.1750917710251350.912454114487432
310.1785072759305180.3570145518610360.821492724069482
320.3672345792190250.734469158438050.632765420780975
330.4954330920535720.9908661841071430.504566907946428
340.5347150979765110.9305698040469780.465284902023489
350.4883566254935120.9767132509870250.511643374506488
360.4404501429088680.8809002858177370.559549857091132
370.4943203795430810.9886407590861620.505679620456919
380.4752597747191810.9505195494383630.524740225280819
390.5823879434887190.8352241130225630.417612056511281
400.4872443495589290.9744886991178580.512755650441071
410.376970895768280.753941791536560.62302910423172
420.3377185971179640.6754371942359270.662281402882037
430.3229813289991800.6459626579983590.67701867100082

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0236747283528351 & 0.0473494567056701 & 0.976325271647165 \tabularnewline
18 & 0.00569619103736995 & 0.0113923820747399 & 0.99430380896263 \tabularnewline
19 & 0.00314260325388835 & 0.00628520650777669 & 0.996857396746112 \tabularnewline
20 & 0.0015781762718727 & 0.0031563525437454 & 0.998421823728127 \tabularnewline
21 & 0.000751290883266664 & 0.00150258176653333 & 0.999248709116733 \tabularnewline
22 & 0.000311178535794732 & 0.000622357071589463 & 0.999688821464205 \tabularnewline
23 & 0.000307886877352475 & 0.000615773754704951 & 0.999692113122647 \tabularnewline
24 & 0.000758662736263702 & 0.00151732547252740 & 0.999241337263736 \tabularnewline
25 & 0.00490288175990124 & 0.00980576351980248 & 0.995097118240099 \tabularnewline
26 & 0.0151697409309748 & 0.0303394818619495 & 0.984830259069025 \tabularnewline
27 & 0.0249892238227263 & 0.0499784476454527 & 0.975010776177274 \tabularnewline
28 & 0.0406834781731418 & 0.0813669563462835 & 0.959316521826858 \tabularnewline
29 & 0.0532691388953546 & 0.106538277790709 & 0.946730861104645 \tabularnewline
30 & 0.0875458855125677 & 0.175091771025135 & 0.912454114487432 \tabularnewline
31 & 0.178507275930518 & 0.357014551861036 & 0.821492724069482 \tabularnewline
32 & 0.367234579219025 & 0.73446915843805 & 0.632765420780975 \tabularnewline
33 & 0.495433092053572 & 0.990866184107143 & 0.504566907946428 \tabularnewline
34 & 0.534715097976511 & 0.930569804046978 & 0.465284902023489 \tabularnewline
35 & 0.488356625493512 & 0.976713250987025 & 0.511643374506488 \tabularnewline
36 & 0.440450142908868 & 0.880900285817737 & 0.559549857091132 \tabularnewline
37 & 0.494320379543081 & 0.988640759086162 & 0.505679620456919 \tabularnewline
38 & 0.475259774719181 & 0.950519549438363 & 0.524740225280819 \tabularnewline
39 & 0.582387943488719 & 0.835224113022563 & 0.417612056511281 \tabularnewline
40 & 0.487244349558929 & 0.974488699117858 & 0.512755650441071 \tabularnewline
41 & 0.37697089576828 & 0.75394179153656 & 0.62302910423172 \tabularnewline
42 & 0.337718597117964 & 0.675437194235927 & 0.662281402882037 \tabularnewline
43 & 0.322981328999180 & 0.645962657998359 & 0.67701867100082 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57961&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.0236747283528351[/C][C]0.0473494567056701[/C][C]0.976325271647165[/C][/ROW]
[ROW][C]18[/C][C]0.00569619103736995[/C][C]0.0113923820747399[/C][C]0.99430380896263[/C][/ROW]
[ROW][C]19[/C][C]0.00314260325388835[/C][C]0.00628520650777669[/C][C]0.996857396746112[/C][/ROW]
[ROW][C]20[/C][C]0.0015781762718727[/C][C]0.0031563525437454[/C][C]0.998421823728127[/C][/ROW]
[ROW][C]21[/C][C]0.000751290883266664[/C][C]0.00150258176653333[/C][C]0.999248709116733[/C][/ROW]
[ROW][C]22[/C][C]0.000311178535794732[/C][C]0.000622357071589463[/C][C]0.999688821464205[/C][/ROW]
[ROW][C]23[/C][C]0.000307886877352475[/C][C]0.000615773754704951[/C][C]0.999692113122647[/C][/ROW]
[ROW][C]24[/C][C]0.000758662736263702[/C][C]0.00151732547252740[/C][C]0.999241337263736[/C][/ROW]
[ROW][C]25[/C][C]0.00490288175990124[/C][C]0.00980576351980248[/C][C]0.995097118240099[/C][/ROW]
[ROW][C]26[/C][C]0.0151697409309748[/C][C]0.0303394818619495[/C][C]0.984830259069025[/C][/ROW]
[ROW][C]27[/C][C]0.0249892238227263[/C][C]0.0499784476454527[/C][C]0.975010776177274[/C][/ROW]
[ROW][C]28[/C][C]0.0406834781731418[/C][C]0.0813669563462835[/C][C]0.959316521826858[/C][/ROW]
[ROW][C]29[/C][C]0.0532691388953546[/C][C]0.106538277790709[/C][C]0.946730861104645[/C][/ROW]
[ROW][C]30[/C][C]0.0875458855125677[/C][C]0.175091771025135[/C][C]0.912454114487432[/C][/ROW]
[ROW][C]31[/C][C]0.178507275930518[/C][C]0.357014551861036[/C][C]0.821492724069482[/C][/ROW]
[ROW][C]32[/C][C]0.367234579219025[/C][C]0.73446915843805[/C][C]0.632765420780975[/C][/ROW]
[ROW][C]33[/C][C]0.495433092053572[/C][C]0.990866184107143[/C][C]0.504566907946428[/C][/ROW]
[ROW][C]34[/C][C]0.534715097976511[/C][C]0.930569804046978[/C][C]0.465284902023489[/C][/ROW]
[ROW][C]35[/C][C]0.488356625493512[/C][C]0.976713250987025[/C][C]0.511643374506488[/C][/ROW]
[ROW][C]36[/C][C]0.440450142908868[/C][C]0.880900285817737[/C][C]0.559549857091132[/C][/ROW]
[ROW][C]37[/C][C]0.494320379543081[/C][C]0.988640759086162[/C][C]0.505679620456919[/C][/ROW]
[ROW][C]38[/C][C]0.475259774719181[/C][C]0.950519549438363[/C][C]0.524740225280819[/C][/ROW]
[ROW][C]39[/C][C]0.582387943488719[/C][C]0.835224113022563[/C][C]0.417612056511281[/C][/ROW]
[ROW][C]40[/C][C]0.487244349558929[/C][C]0.974488699117858[/C][C]0.512755650441071[/C][/ROW]
[ROW][C]41[/C][C]0.37697089576828[/C][C]0.75394179153656[/C][C]0.62302910423172[/C][/ROW]
[ROW][C]42[/C][C]0.337718597117964[/C][C]0.675437194235927[/C][C]0.662281402882037[/C][/ROW]
[ROW][C]43[/C][C]0.322981328999180[/C][C]0.645962657998359[/C][C]0.67701867100082[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57961&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57961&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.02367472835283510.04734945670567010.976325271647165
180.005696191037369950.01139238207473990.99430380896263
190.003142603253888350.006285206507776690.996857396746112
200.00157817627187270.00315635254374540.998421823728127
210.0007512908832666640.001502581766533330.999248709116733
220.0003111785357947320.0006223570715894630.999688821464205
230.0003078868773524750.0006157737547049510.999692113122647
240.0007586627362637020.001517325472527400.999241337263736
250.004902881759901240.009805763519802480.995097118240099
260.01516974093097480.03033948186194950.984830259069025
270.02498922382272630.04997844764545270.975010776177274
280.04068347817314180.08136695634628350.959316521826858
290.05326913889535460.1065382777907090.946730861104645
300.08754588551256770.1750917710251350.912454114487432
310.1785072759305180.3570145518610360.821492724069482
320.3672345792190250.734469158438050.632765420780975
330.4954330920535720.9908661841071430.504566907946428
340.5347150979765110.9305698040469780.465284902023489
350.4883566254935120.9767132509870250.511643374506488
360.4404501429088680.8809002858177370.559549857091132
370.4943203795430810.9886407590861620.505679620456919
380.4752597747191810.9505195494383630.524740225280819
390.5823879434887190.8352241130225630.417612056511281
400.4872443495589290.9744886991178580.512755650441071
410.376970895768280.753941791536560.62302910423172
420.3377185971179640.6754371942359270.662281402882037
430.3229813289991800.6459626579983590.67701867100082







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level70.259259259259259NOK
5% type I error level110.407407407407407NOK
10% type I error level120.444444444444444NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57961&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 level70.259259259259259NOK
5% type I error level110.407407407407407NOK
10% type I error level120.444444444444444NOK



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