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 08:10:36 -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/t1258729892ktduf3uzd6f3r0u.htm/, Retrieved Fri, 19 Apr 2024 17:19:06 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58253, Retrieved Fri, 19 Apr 2024 17:19:06 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact134
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]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:06:21] [b98453cac15ba1066b407e146608df68]
- R  D      [Multiple Regression] [] [2009-11-20 15:10:36] [8af916b6a531ec49628252b0a0ece045] [Current]
Feedback Forum

Post a new message
Dataseries X:
100.6   71.7
104.3   77.5
120.4   89.8
107.5   80.3
102.9   78.7
125.6   93.8
107.5   57.6
108.8   60.6
128.4   91
121.1   85.3
119.5   77.4
128.7   77.3
108.7   68.3
105.5   69.9
119.8   81.7
111.3   75.1
110.6   69.9
120.1   84
97.5	   54.3
107.7   60
127.3   89.9
117.2   77
119.8   85.3
116.2   77.6
111	   69.2
112.4   75.5
130.6   85.7
109.1   72.2
118.8   79.9
123.9   85.3
101.6   52.2
112.8   61.2
128	   82.4
129.6   85.4
125.8   78.2
119.5   70.2
115.7   70.2
113.6   69.3
129.7   77.5
112	   66.1
116.8   69
127	   79.2
112.1   56.2
114.2   63.3
121.1   77.8
131.6   92
125	   78.1
120.4   65.1
117.7   71.1
117.5   70.9
120.6   72
127.5   81.9
112.3   70.6
124.5   72.5
115.2   65.1
104.7   54.9
130.9   80
129.2   77.4
113.5   59.6
125.6   57.4
107.6   50.8




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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 71.5670283035868 + 0.600308352328144X[t] -9.06114044400578M1[t] -10.8421961581726M2[t] -2.76076096387848M3[t] -10.0107189858019M4[t] -10.5541324307141M5[t] -4.46488841486347M6[t] -6.61278423001557M7[t] -5.74956059221821M8[t] -3.03290485901032M9[t] -4.19653415055227M10[t] -4.83803581103003M11[t] + 0.243875973404465t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  71.5670283035868 +  0.600308352328144X[t] -9.06114044400578M1[t] -10.8421961581726M2[t] -2.76076096387848M3[t] -10.0107189858019M4[t] -10.5541324307141M5[t] -4.46488841486347M6[t] -6.61278423001557M7[t] -5.74956059221821M8[t] -3.03290485901032M9[t] -4.19653415055227M10[t] -4.83803581103003M11[t] +  0.243875973404465t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58253&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  71.5670283035868 +  0.600308352328144X[t] -9.06114044400578M1[t] -10.8421961581726M2[t] -2.76076096387848M3[t] -10.0107189858019M4[t] -10.5541324307141M5[t] -4.46488841486347M6[t] -6.61278423001557M7[t] -5.74956059221821M8[t] -3.03290485901032M9[t] -4.19653415055227M10[t] -4.83803581103003M11[t] +  0.243875973404465t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58253&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58253&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] = + 71.5670283035868 + 0.600308352328144X[t] -9.06114044400578M1[t] -10.8421961581726M2[t] -2.76076096387848M3[t] -10.0107189858019M4[t] -10.5541324307141M5[t] -4.46488841486347M6[t] -6.61278423001557M7[t] -5.74956059221821M8[t] -3.03290485901032M9[t] -4.19653415055227M10[t] -4.83803581103003M11[t] + 0.243875973404465t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)71.56702830358687.8707869.092700
X0.6003083523281440.0995956.027500
M1-9.061140444005782.371891-3.82020.000390.000195
M2-10.84219615817262.463892-4.40046.2e-053.1e-05
M3-2.760760963878482.655728-1.03950.3038680.151934
M4-10.01071898580192.48833-4.02310.0002070.000104
M5-10.55413243071412.467976-4.27649.2e-054.6e-05
M6-4.464888414863472.739256-1.630.1097940.054897
M7-6.612784230015572.788529-2.37140.0218690.010935
M8-5.749560592218212.652871-2.16730.0353120.017656
M9-3.032904859010322.821722-1.07480.2879330.143966
M10-4.196534150552272.79126-1.50350.1394120.069706
M11-4.838035811030032.516816-1.92230.0606430.030322
t0.2438759734044650.0343017.109900

\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) & 71.5670283035868 & 7.870786 & 9.0927 & 0 & 0 \tabularnewline
X & 0.600308352328144 & 0.099595 & 6.0275 & 0 & 0 \tabularnewline
M1 & -9.06114044400578 & 2.371891 & -3.8202 & 0.00039 & 0.000195 \tabularnewline
M2 & -10.8421961581726 & 2.463892 & -4.4004 & 6.2e-05 & 3.1e-05 \tabularnewline
M3 & -2.76076096387848 & 2.655728 & -1.0395 & 0.303868 & 0.151934 \tabularnewline
M4 & -10.0107189858019 & 2.48833 & -4.0231 & 0.000207 & 0.000104 \tabularnewline
M5 & -10.5541324307141 & 2.467976 & -4.2764 & 9.2e-05 & 4.6e-05 \tabularnewline
M6 & -4.46488841486347 & 2.739256 & -1.63 & 0.109794 & 0.054897 \tabularnewline
M7 & -6.61278423001557 & 2.788529 & -2.3714 & 0.021869 & 0.010935 \tabularnewline
M8 & -5.74956059221821 & 2.652871 & -2.1673 & 0.035312 & 0.017656 \tabularnewline
M9 & -3.03290485901032 & 2.821722 & -1.0748 & 0.287933 & 0.143966 \tabularnewline
M10 & -4.19653415055227 & 2.79126 & -1.5035 & 0.139412 & 0.069706 \tabularnewline
M11 & -4.83803581103003 & 2.516816 & -1.9223 & 0.060643 & 0.030322 \tabularnewline
t & 0.243875973404465 & 0.034301 & 7.1099 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58253&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]71.5670283035868[/C][C]7.870786[/C][C]9.0927[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]0.600308352328144[/C][C]0.099595[/C][C]6.0275[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-9.06114044400578[/C][C]2.371891[/C][C]-3.8202[/C][C]0.00039[/C][C]0.000195[/C][/ROW]
[ROW][C]M2[/C][C]-10.8421961581726[/C][C]2.463892[/C][C]-4.4004[/C][C]6.2e-05[/C][C]3.1e-05[/C][/ROW]
[ROW][C]M3[/C][C]-2.76076096387848[/C][C]2.655728[/C][C]-1.0395[/C][C]0.303868[/C][C]0.151934[/C][/ROW]
[ROW][C]M4[/C][C]-10.0107189858019[/C][C]2.48833[/C][C]-4.0231[/C][C]0.000207[/C][C]0.000104[/C][/ROW]
[ROW][C]M5[/C][C]-10.5541324307141[/C][C]2.467976[/C][C]-4.2764[/C][C]9.2e-05[/C][C]4.6e-05[/C][/ROW]
[ROW][C]M6[/C][C]-4.46488841486347[/C][C]2.739256[/C][C]-1.63[/C][C]0.109794[/C][C]0.054897[/C][/ROW]
[ROW][C]M7[/C][C]-6.61278423001557[/C][C]2.788529[/C][C]-2.3714[/C][C]0.021869[/C][C]0.010935[/C][/ROW]
[ROW][C]M8[/C][C]-5.74956059221821[/C][C]2.652871[/C][C]-2.1673[/C][C]0.035312[/C][C]0.017656[/C][/ROW]
[ROW][C]M9[/C][C]-3.03290485901032[/C][C]2.821722[/C][C]-1.0748[/C][C]0.287933[/C][C]0.143966[/C][/ROW]
[ROW][C]M10[/C][C]-4.19653415055227[/C][C]2.79126[/C][C]-1.5035[/C][C]0.139412[/C][C]0.069706[/C][/ROW]
[ROW][C]M11[/C][C]-4.83803581103003[/C][C]2.516816[/C][C]-1.9223[/C][C]0.060643[/C][C]0.030322[/C][/ROW]
[ROW][C]t[/C][C]0.243875973404465[/C][C]0.034301[/C][C]7.1099[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58253&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58253&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)71.56702830358687.8707869.092700
X0.6003083523281440.0995956.027500
M1-9.061140444005782.371891-3.82020.000390.000195
M2-10.84219615817262.463892-4.40046.2e-053.1e-05
M3-2.760760963878482.655728-1.03950.3038680.151934
M4-10.01071898580192.48833-4.02310.0002070.000104
M5-10.55413243071412.467976-4.27649.2e-054.6e-05
M6-4.464888414863472.739256-1.630.1097940.054897
M7-6.612784230015572.788529-2.37140.0218690.010935
M8-5.749560592218212.652871-2.16730.0353120.017656
M9-3.032904859010322.821722-1.07480.2879330.143966
M10-4.196534150552272.79126-1.50350.1394120.069706
M11-4.838035811030032.516816-1.92230.0606430.030322
t0.2438759734044650.0343017.109900







Multiple Linear Regression - Regression Statistics
Multiple R0.920674569568137
R-squared0.847641663049474
Adjusted R-squared0.805499995382308
F-TEST (value)20.1140987049710
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value6.4392935428259e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.86504183797615
Sum Squared Residuals702.111775237386

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.920674569568137 \tabularnewline
R-squared & 0.847641663049474 \tabularnewline
Adjusted R-squared & 0.805499995382308 \tabularnewline
F-TEST (value) & 20.1140987049710 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 6.4392935428259e-15 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 3.86504183797615 \tabularnewline
Sum Squared Residuals & 702.111775237386 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58253&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.920674569568137[/C][/ROW]
[ROW][C]R-squared[/C][C]0.847641663049474[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.805499995382308[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]20.1140987049710[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]6.4392935428259e-15[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]3.86504183797615[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]702.111775237386[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58253&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58253&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.920674569568137
R-squared0.847641663049474
Adjusted R-squared0.805499995382308
F-TEST (value)20.1140987049710
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value6.4392935428259e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.86504183797615
Sum Squared Residuals702.111775237386







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1100.6105.791872694913-5.19187269491314
2104.3107.736481397654-3.43648139765421
3120.4123.445585298989-3.04558529898893
4107.5110.736573903353-3.23657390335264
5102.9109.476543068120-6.57654306811981
6125.6124.874319177530.725680822470073
7107.5101.2391369815036.26086301849652
8108.8104.1471616496904.65283835031027
9128.4125.3570672670783.04293273292234
10121.1121.0155563406700.0844436593302421
11119.5115.8754946702043.62450532979587
12128.7120.8973756194067.80262438059418
13108.7106.6773359778512.02266402214880
14105.5106.100649600814-0.600649600813876
15119.8121.509599325985-1.70959932598456
16111.3110.5414821521000.758517847900137
17110.6107.1203412484863.47965875151426
18120.1121.917809005568-1.81780900556770
1997.5102.184631099674-4.68463109967418
20107.7106.7134883191460.986511680853573
21127.3127.623239760370-0.32323976037029
22117.2118.959508697200-1.75950869719973
23119.8123.54444233445-3.74444233445004
24116.2124.003979805958-7.80397980595782
25111110.1441251758000.855874824199886
26112.4112.3888880547050.0111119452949567
27130.6126.8373444161513.76265558384929
28109.1111.727099611202-2.62709961120183
29118.8116.0499364526212.75006354737925
30123.9125.624721544448-1.72472154444785
31101.6103.850495240639-2.25049524063866
32112.8110.3603700227942.43962997720622
33128126.0474387987631.95256120123722
34129.6126.9286105376102.67138946239027
35125.8122.2087647137743.5912352862262
36119.5122.488209679583-2.98820967958314
37115.7113.6709452089822.02905479101817
38113.6111.5934879511242.00651204887586
39129.7124.8413276079134.85867239208649
40112110.9917303428541.00826965714629
41116.8112.4330870930984.36691290690245
42127124.8893522761002.11064772390024
43112.1109.1782403308052.92175966919518
44114.2114.547529243536-0.347529243536449
45121.1126.212532058907-5.1125320589069
46131.6133.817157343829-2.21715734382905
47125125.075245559395-0.0752455593945539
48120.4122.353148763563-1.95314876356317
49117.7117.1377344069310.56226559306927
50117.5115.4804929957032.01950700429726
51120.6124.466143350962-3.86614335096229
52127.5123.4031139904924.09688600950804
53112.3116.320092137676-4.02009213767615
54124.5123.7937979963550.706202003645235
55115.2117.447496347379-2.24749634737886
56104.7112.431450764834-7.73145076483362
57130.9130.4597221148820.440277885117625
58129.2127.9791670806921.22083291930827
59113.5116.896052722177-3.39605272217747
60125.6120.657286131494.94271386850995
61107.6107.877986535523-0.277986535522993

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 100.6 & 105.791872694913 & -5.19187269491314 \tabularnewline
2 & 104.3 & 107.736481397654 & -3.43648139765421 \tabularnewline
3 & 120.4 & 123.445585298989 & -3.04558529898893 \tabularnewline
4 & 107.5 & 110.736573903353 & -3.23657390335264 \tabularnewline
5 & 102.9 & 109.476543068120 & -6.57654306811981 \tabularnewline
6 & 125.6 & 124.87431917753 & 0.725680822470073 \tabularnewline
7 & 107.5 & 101.239136981503 & 6.26086301849652 \tabularnewline
8 & 108.8 & 104.147161649690 & 4.65283835031027 \tabularnewline
9 & 128.4 & 125.357067267078 & 3.04293273292234 \tabularnewline
10 & 121.1 & 121.015556340670 & 0.0844436593302421 \tabularnewline
11 & 119.5 & 115.875494670204 & 3.62450532979587 \tabularnewline
12 & 128.7 & 120.897375619406 & 7.80262438059418 \tabularnewline
13 & 108.7 & 106.677335977851 & 2.02266402214880 \tabularnewline
14 & 105.5 & 106.100649600814 & -0.600649600813876 \tabularnewline
15 & 119.8 & 121.509599325985 & -1.70959932598456 \tabularnewline
16 & 111.3 & 110.541482152100 & 0.758517847900137 \tabularnewline
17 & 110.6 & 107.120341248486 & 3.47965875151426 \tabularnewline
18 & 120.1 & 121.917809005568 & -1.81780900556770 \tabularnewline
19 & 97.5 & 102.184631099674 & -4.68463109967418 \tabularnewline
20 & 107.7 & 106.713488319146 & 0.986511680853573 \tabularnewline
21 & 127.3 & 127.623239760370 & -0.32323976037029 \tabularnewline
22 & 117.2 & 118.959508697200 & -1.75950869719973 \tabularnewline
23 & 119.8 & 123.54444233445 & -3.74444233445004 \tabularnewline
24 & 116.2 & 124.003979805958 & -7.80397980595782 \tabularnewline
25 & 111 & 110.144125175800 & 0.855874824199886 \tabularnewline
26 & 112.4 & 112.388888054705 & 0.0111119452949567 \tabularnewline
27 & 130.6 & 126.837344416151 & 3.76265558384929 \tabularnewline
28 & 109.1 & 111.727099611202 & -2.62709961120183 \tabularnewline
29 & 118.8 & 116.049936452621 & 2.75006354737925 \tabularnewline
30 & 123.9 & 125.624721544448 & -1.72472154444785 \tabularnewline
31 & 101.6 & 103.850495240639 & -2.25049524063866 \tabularnewline
32 & 112.8 & 110.360370022794 & 2.43962997720622 \tabularnewline
33 & 128 & 126.047438798763 & 1.95256120123722 \tabularnewline
34 & 129.6 & 126.928610537610 & 2.67138946239027 \tabularnewline
35 & 125.8 & 122.208764713774 & 3.5912352862262 \tabularnewline
36 & 119.5 & 122.488209679583 & -2.98820967958314 \tabularnewline
37 & 115.7 & 113.670945208982 & 2.02905479101817 \tabularnewline
38 & 113.6 & 111.593487951124 & 2.00651204887586 \tabularnewline
39 & 129.7 & 124.841327607913 & 4.85867239208649 \tabularnewline
40 & 112 & 110.991730342854 & 1.00826965714629 \tabularnewline
41 & 116.8 & 112.433087093098 & 4.36691290690245 \tabularnewline
42 & 127 & 124.889352276100 & 2.11064772390024 \tabularnewline
43 & 112.1 & 109.178240330805 & 2.92175966919518 \tabularnewline
44 & 114.2 & 114.547529243536 & -0.347529243536449 \tabularnewline
45 & 121.1 & 126.212532058907 & -5.1125320589069 \tabularnewline
46 & 131.6 & 133.817157343829 & -2.21715734382905 \tabularnewline
47 & 125 & 125.075245559395 & -0.0752455593945539 \tabularnewline
48 & 120.4 & 122.353148763563 & -1.95314876356317 \tabularnewline
49 & 117.7 & 117.137734406931 & 0.56226559306927 \tabularnewline
50 & 117.5 & 115.480492995703 & 2.01950700429726 \tabularnewline
51 & 120.6 & 124.466143350962 & -3.86614335096229 \tabularnewline
52 & 127.5 & 123.403113990492 & 4.09688600950804 \tabularnewline
53 & 112.3 & 116.320092137676 & -4.02009213767615 \tabularnewline
54 & 124.5 & 123.793797996355 & 0.706202003645235 \tabularnewline
55 & 115.2 & 117.447496347379 & -2.24749634737886 \tabularnewline
56 & 104.7 & 112.431450764834 & -7.73145076483362 \tabularnewline
57 & 130.9 & 130.459722114882 & 0.440277885117625 \tabularnewline
58 & 129.2 & 127.979167080692 & 1.22083291930827 \tabularnewline
59 & 113.5 & 116.896052722177 & -3.39605272217747 \tabularnewline
60 & 125.6 & 120.65728613149 & 4.94271386850995 \tabularnewline
61 & 107.6 & 107.877986535523 & -0.277986535522993 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58253&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]100.6[/C][C]105.791872694913[/C][C]-5.19187269491314[/C][/ROW]
[ROW][C]2[/C][C]104.3[/C][C]107.736481397654[/C][C]-3.43648139765421[/C][/ROW]
[ROW][C]3[/C][C]120.4[/C][C]123.445585298989[/C][C]-3.04558529898893[/C][/ROW]
[ROW][C]4[/C][C]107.5[/C][C]110.736573903353[/C][C]-3.23657390335264[/C][/ROW]
[ROW][C]5[/C][C]102.9[/C][C]109.476543068120[/C][C]-6.57654306811981[/C][/ROW]
[ROW][C]6[/C][C]125.6[/C][C]124.87431917753[/C][C]0.725680822470073[/C][/ROW]
[ROW][C]7[/C][C]107.5[/C][C]101.239136981503[/C][C]6.26086301849652[/C][/ROW]
[ROW][C]8[/C][C]108.8[/C][C]104.147161649690[/C][C]4.65283835031027[/C][/ROW]
[ROW][C]9[/C][C]128.4[/C][C]125.357067267078[/C][C]3.04293273292234[/C][/ROW]
[ROW][C]10[/C][C]121.1[/C][C]121.015556340670[/C][C]0.0844436593302421[/C][/ROW]
[ROW][C]11[/C][C]119.5[/C][C]115.875494670204[/C][C]3.62450532979587[/C][/ROW]
[ROW][C]12[/C][C]128.7[/C][C]120.897375619406[/C][C]7.80262438059418[/C][/ROW]
[ROW][C]13[/C][C]108.7[/C][C]106.677335977851[/C][C]2.02266402214880[/C][/ROW]
[ROW][C]14[/C][C]105.5[/C][C]106.100649600814[/C][C]-0.600649600813876[/C][/ROW]
[ROW][C]15[/C][C]119.8[/C][C]121.509599325985[/C][C]-1.70959932598456[/C][/ROW]
[ROW][C]16[/C][C]111.3[/C][C]110.541482152100[/C][C]0.758517847900137[/C][/ROW]
[ROW][C]17[/C][C]110.6[/C][C]107.120341248486[/C][C]3.47965875151426[/C][/ROW]
[ROW][C]18[/C][C]120.1[/C][C]121.917809005568[/C][C]-1.81780900556770[/C][/ROW]
[ROW][C]19[/C][C]97.5[/C][C]102.184631099674[/C][C]-4.68463109967418[/C][/ROW]
[ROW][C]20[/C][C]107.7[/C][C]106.713488319146[/C][C]0.986511680853573[/C][/ROW]
[ROW][C]21[/C][C]127.3[/C][C]127.623239760370[/C][C]-0.32323976037029[/C][/ROW]
[ROW][C]22[/C][C]117.2[/C][C]118.959508697200[/C][C]-1.75950869719973[/C][/ROW]
[ROW][C]23[/C][C]119.8[/C][C]123.54444233445[/C][C]-3.74444233445004[/C][/ROW]
[ROW][C]24[/C][C]116.2[/C][C]124.003979805958[/C][C]-7.80397980595782[/C][/ROW]
[ROW][C]25[/C][C]111[/C][C]110.144125175800[/C][C]0.855874824199886[/C][/ROW]
[ROW][C]26[/C][C]112.4[/C][C]112.388888054705[/C][C]0.0111119452949567[/C][/ROW]
[ROW][C]27[/C][C]130.6[/C][C]126.837344416151[/C][C]3.76265558384929[/C][/ROW]
[ROW][C]28[/C][C]109.1[/C][C]111.727099611202[/C][C]-2.62709961120183[/C][/ROW]
[ROW][C]29[/C][C]118.8[/C][C]116.049936452621[/C][C]2.75006354737925[/C][/ROW]
[ROW][C]30[/C][C]123.9[/C][C]125.624721544448[/C][C]-1.72472154444785[/C][/ROW]
[ROW][C]31[/C][C]101.6[/C][C]103.850495240639[/C][C]-2.25049524063866[/C][/ROW]
[ROW][C]32[/C][C]112.8[/C][C]110.360370022794[/C][C]2.43962997720622[/C][/ROW]
[ROW][C]33[/C][C]128[/C][C]126.047438798763[/C][C]1.95256120123722[/C][/ROW]
[ROW][C]34[/C][C]129.6[/C][C]126.928610537610[/C][C]2.67138946239027[/C][/ROW]
[ROW][C]35[/C][C]125.8[/C][C]122.208764713774[/C][C]3.5912352862262[/C][/ROW]
[ROW][C]36[/C][C]119.5[/C][C]122.488209679583[/C][C]-2.98820967958314[/C][/ROW]
[ROW][C]37[/C][C]115.7[/C][C]113.670945208982[/C][C]2.02905479101817[/C][/ROW]
[ROW][C]38[/C][C]113.6[/C][C]111.593487951124[/C][C]2.00651204887586[/C][/ROW]
[ROW][C]39[/C][C]129.7[/C][C]124.841327607913[/C][C]4.85867239208649[/C][/ROW]
[ROW][C]40[/C][C]112[/C][C]110.991730342854[/C][C]1.00826965714629[/C][/ROW]
[ROW][C]41[/C][C]116.8[/C][C]112.433087093098[/C][C]4.36691290690245[/C][/ROW]
[ROW][C]42[/C][C]127[/C][C]124.889352276100[/C][C]2.11064772390024[/C][/ROW]
[ROW][C]43[/C][C]112.1[/C][C]109.178240330805[/C][C]2.92175966919518[/C][/ROW]
[ROW][C]44[/C][C]114.2[/C][C]114.547529243536[/C][C]-0.347529243536449[/C][/ROW]
[ROW][C]45[/C][C]121.1[/C][C]126.212532058907[/C][C]-5.1125320589069[/C][/ROW]
[ROW][C]46[/C][C]131.6[/C][C]133.817157343829[/C][C]-2.21715734382905[/C][/ROW]
[ROW][C]47[/C][C]125[/C][C]125.075245559395[/C][C]-0.0752455593945539[/C][/ROW]
[ROW][C]48[/C][C]120.4[/C][C]122.353148763563[/C][C]-1.95314876356317[/C][/ROW]
[ROW][C]49[/C][C]117.7[/C][C]117.137734406931[/C][C]0.56226559306927[/C][/ROW]
[ROW][C]50[/C][C]117.5[/C][C]115.480492995703[/C][C]2.01950700429726[/C][/ROW]
[ROW][C]51[/C][C]120.6[/C][C]124.466143350962[/C][C]-3.86614335096229[/C][/ROW]
[ROW][C]52[/C][C]127.5[/C][C]123.403113990492[/C][C]4.09688600950804[/C][/ROW]
[ROW][C]53[/C][C]112.3[/C][C]116.320092137676[/C][C]-4.02009213767615[/C][/ROW]
[ROW][C]54[/C][C]124.5[/C][C]123.793797996355[/C][C]0.706202003645235[/C][/ROW]
[ROW][C]55[/C][C]115.2[/C][C]117.447496347379[/C][C]-2.24749634737886[/C][/ROW]
[ROW][C]56[/C][C]104.7[/C][C]112.431450764834[/C][C]-7.73145076483362[/C][/ROW]
[ROW][C]57[/C][C]130.9[/C][C]130.459722114882[/C][C]0.440277885117625[/C][/ROW]
[ROW][C]58[/C][C]129.2[/C][C]127.979167080692[/C][C]1.22083291930827[/C][/ROW]
[ROW][C]59[/C][C]113.5[/C][C]116.896052722177[/C][C]-3.39605272217747[/C][/ROW]
[ROW][C]60[/C][C]125.6[/C][C]120.65728613149[/C][C]4.94271386850995[/C][/ROW]
[ROW][C]61[/C][C]107.6[/C][C]107.877986535523[/C][C]-0.277986535522993[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58253&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58253&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
1100.6105.791872694913-5.19187269491314
2104.3107.736481397654-3.43648139765421
3120.4123.445585298989-3.04558529898893
4107.5110.736573903353-3.23657390335264
5102.9109.476543068120-6.57654306811981
6125.6124.874319177530.725680822470073
7107.5101.2391369815036.26086301849652
8108.8104.1471616496904.65283835031027
9128.4125.3570672670783.04293273292234
10121.1121.0155563406700.0844436593302421
11119.5115.8754946702043.62450532979587
12128.7120.8973756194067.80262438059418
13108.7106.6773359778512.02266402214880
14105.5106.100649600814-0.600649600813876
15119.8121.509599325985-1.70959932598456
16111.3110.5414821521000.758517847900137
17110.6107.1203412484863.47965875151426
18120.1121.917809005568-1.81780900556770
1997.5102.184631099674-4.68463109967418
20107.7106.7134883191460.986511680853573
21127.3127.623239760370-0.32323976037029
22117.2118.959508697200-1.75950869719973
23119.8123.54444233445-3.74444233445004
24116.2124.003979805958-7.80397980595782
25111110.1441251758000.855874824199886
26112.4112.3888880547050.0111119452949567
27130.6126.8373444161513.76265558384929
28109.1111.727099611202-2.62709961120183
29118.8116.0499364526212.75006354737925
30123.9125.624721544448-1.72472154444785
31101.6103.850495240639-2.25049524063866
32112.8110.3603700227942.43962997720622
33128126.0474387987631.95256120123722
34129.6126.9286105376102.67138946239027
35125.8122.2087647137743.5912352862262
36119.5122.488209679583-2.98820967958314
37115.7113.6709452089822.02905479101817
38113.6111.5934879511242.00651204887586
39129.7124.8413276079134.85867239208649
40112110.9917303428541.00826965714629
41116.8112.4330870930984.36691290690245
42127124.8893522761002.11064772390024
43112.1109.1782403308052.92175966919518
44114.2114.547529243536-0.347529243536449
45121.1126.212532058907-5.1125320589069
46131.6133.817157343829-2.21715734382905
47125125.075245559395-0.0752455593945539
48120.4122.353148763563-1.95314876356317
49117.7117.1377344069310.56226559306927
50117.5115.4804929957032.01950700429726
51120.6124.466143350962-3.86614335096229
52127.5123.4031139904924.09688600950804
53112.3116.320092137676-4.02009213767615
54124.5123.7937979963550.706202003645235
55115.2117.447496347379-2.24749634737886
56104.7112.431450764834-7.73145076483362
57130.9130.4597221148820.440277885117625
58129.2127.9791670806921.22083291930827
59113.5116.896052722177-3.39605272217747
60125.6120.657286131494.94271386850995
61107.6107.877986535523-0.277986535522993







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.4145625598924970.8291251197849940.585437440107503
180.4542691347847510.9085382695695030.545730865215249
190.9015320729095450.196935854180910.098467927090455
200.8423868428287690.3152263143424620.157613157171231
210.75763466900690.48473066198620.2423653309931
220.702849033554070.5943019328918590.297150966445929
230.6228752417092680.7542495165814630.377124758290732
240.8656585837529030.2686828324941940.134341416247097
250.8822525987412110.2354948025175770.117747401258789
260.8838384070868670.2323231858262660.116161592913133
270.8917175379446310.2165649241107380.108282462055369
280.8862723152612580.2274553694774830.113727684738742
290.8686891709538140.2626216580923720.131310829046186
300.84681757220010.3063648555998010.153182427799900
310.8264315002195750.3471369995608500.173568499780425
320.787089711558950.4258205768820990.212910288441049
330.7181315557351920.5637368885296150.281868444264808
340.6551923365455110.6896153269089770.344807663454488
350.6111960078966440.7776079842067110.388803992103356
360.623916101257770.752167797484460.37608389874223
370.5254859545659340.9490280908681310.474514045434066
380.4264634303038530.8529268606077060.573536569696147
390.4687111980532770.9374223961065540.531288801946723
400.4124086066730240.8248172133460470.587591393326976
410.446920043668870.893840087337740.55307995633113
420.3213496964633590.6426993929267170.678650303536641
430.3825020175873020.7650040351746050.617497982412698
440.809181447994840.381637104010320.19081855200516

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.414562559892497 & 0.829125119784994 & 0.585437440107503 \tabularnewline
18 & 0.454269134784751 & 0.908538269569503 & 0.545730865215249 \tabularnewline
19 & 0.901532072909545 & 0.19693585418091 & 0.098467927090455 \tabularnewline
20 & 0.842386842828769 & 0.315226314342462 & 0.157613157171231 \tabularnewline
21 & 0.7576346690069 & 0.4847306619862 & 0.2423653309931 \tabularnewline
22 & 0.70284903355407 & 0.594301932891859 & 0.297150966445929 \tabularnewline
23 & 0.622875241709268 & 0.754249516581463 & 0.377124758290732 \tabularnewline
24 & 0.865658583752903 & 0.268682832494194 & 0.134341416247097 \tabularnewline
25 & 0.882252598741211 & 0.235494802517577 & 0.117747401258789 \tabularnewline
26 & 0.883838407086867 & 0.232323185826266 & 0.116161592913133 \tabularnewline
27 & 0.891717537944631 & 0.216564924110738 & 0.108282462055369 \tabularnewline
28 & 0.886272315261258 & 0.227455369477483 & 0.113727684738742 \tabularnewline
29 & 0.868689170953814 & 0.262621658092372 & 0.131310829046186 \tabularnewline
30 & 0.8468175722001 & 0.306364855599801 & 0.153182427799900 \tabularnewline
31 & 0.826431500219575 & 0.347136999560850 & 0.173568499780425 \tabularnewline
32 & 0.78708971155895 & 0.425820576882099 & 0.212910288441049 \tabularnewline
33 & 0.718131555735192 & 0.563736888529615 & 0.281868444264808 \tabularnewline
34 & 0.655192336545511 & 0.689615326908977 & 0.344807663454488 \tabularnewline
35 & 0.611196007896644 & 0.777607984206711 & 0.388803992103356 \tabularnewline
36 & 0.62391610125777 & 0.75216779748446 & 0.37608389874223 \tabularnewline
37 & 0.525485954565934 & 0.949028090868131 & 0.474514045434066 \tabularnewline
38 & 0.426463430303853 & 0.852926860607706 & 0.573536569696147 \tabularnewline
39 & 0.468711198053277 & 0.937422396106554 & 0.531288801946723 \tabularnewline
40 & 0.412408606673024 & 0.824817213346047 & 0.587591393326976 \tabularnewline
41 & 0.44692004366887 & 0.89384008733774 & 0.55307995633113 \tabularnewline
42 & 0.321349696463359 & 0.642699392926717 & 0.678650303536641 \tabularnewline
43 & 0.382502017587302 & 0.765004035174605 & 0.617497982412698 \tabularnewline
44 & 0.80918144799484 & 0.38163710401032 & 0.19081855200516 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58253&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.414562559892497[/C][C]0.829125119784994[/C][C]0.585437440107503[/C][/ROW]
[ROW][C]18[/C][C]0.454269134784751[/C][C]0.908538269569503[/C][C]0.545730865215249[/C][/ROW]
[ROW][C]19[/C][C]0.901532072909545[/C][C]0.19693585418091[/C][C]0.098467927090455[/C][/ROW]
[ROW][C]20[/C][C]0.842386842828769[/C][C]0.315226314342462[/C][C]0.157613157171231[/C][/ROW]
[ROW][C]21[/C][C]0.7576346690069[/C][C]0.4847306619862[/C][C]0.2423653309931[/C][/ROW]
[ROW][C]22[/C][C]0.70284903355407[/C][C]0.594301932891859[/C][C]0.297150966445929[/C][/ROW]
[ROW][C]23[/C][C]0.622875241709268[/C][C]0.754249516581463[/C][C]0.377124758290732[/C][/ROW]
[ROW][C]24[/C][C]0.865658583752903[/C][C]0.268682832494194[/C][C]0.134341416247097[/C][/ROW]
[ROW][C]25[/C][C]0.882252598741211[/C][C]0.235494802517577[/C][C]0.117747401258789[/C][/ROW]
[ROW][C]26[/C][C]0.883838407086867[/C][C]0.232323185826266[/C][C]0.116161592913133[/C][/ROW]
[ROW][C]27[/C][C]0.891717537944631[/C][C]0.216564924110738[/C][C]0.108282462055369[/C][/ROW]
[ROW][C]28[/C][C]0.886272315261258[/C][C]0.227455369477483[/C][C]0.113727684738742[/C][/ROW]
[ROW][C]29[/C][C]0.868689170953814[/C][C]0.262621658092372[/C][C]0.131310829046186[/C][/ROW]
[ROW][C]30[/C][C]0.8468175722001[/C][C]0.306364855599801[/C][C]0.153182427799900[/C][/ROW]
[ROW][C]31[/C][C]0.826431500219575[/C][C]0.347136999560850[/C][C]0.173568499780425[/C][/ROW]
[ROW][C]32[/C][C]0.78708971155895[/C][C]0.425820576882099[/C][C]0.212910288441049[/C][/ROW]
[ROW][C]33[/C][C]0.718131555735192[/C][C]0.563736888529615[/C][C]0.281868444264808[/C][/ROW]
[ROW][C]34[/C][C]0.655192336545511[/C][C]0.689615326908977[/C][C]0.344807663454488[/C][/ROW]
[ROW][C]35[/C][C]0.611196007896644[/C][C]0.777607984206711[/C][C]0.388803992103356[/C][/ROW]
[ROW][C]36[/C][C]0.62391610125777[/C][C]0.75216779748446[/C][C]0.37608389874223[/C][/ROW]
[ROW][C]37[/C][C]0.525485954565934[/C][C]0.949028090868131[/C][C]0.474514045434066[/C][/ROW]
[ROW][C]38[/C][C]0.426463430303853[/C][C]0.852926860607706[/C][C]0.573536569696147[/C][/ROW]
[ROW][C]39[/C][C]0.468711198053277[/C][C]0.937422396106554[/C][C]0.531288801946723[/C][/ROW]
[ROW][C]40[/C][C]0.412408606673024[/C][C]0.824817213346047[/C][C]0.587591393326976[/C][/ROW]
[ROW][C]41[/C][C]0.44692004366887[/C][C]0.89384008733774[/C][C]0.55307995633113[/C][/ROW]
[ROW][C]42[/C][C]0.321349696463359[/C][C]0.642699392926717[/C][C]0.678650303536641[/C][/ROW]
[ROW][C]43[/C][C]0.382502017587302[/C][C]0.765004035174605[/C][C]0.617497982412698[/C][/ROW]
[ROW][C]44[/C][C]0.80918144799484[/C][C]0.38163710401032[/C][C]0.19081855200516[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58253&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58253&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.4145625598924970.8291251197849940.585437440107503
180.4542691347847510.9085382695695030.545730865215249
190.9015320729095450.196935854180910.098467927090455
200.8423868428287690.3152263143424620.157613157171231
210.75763466900690.48473066198620.2423653309931
220.702849033554070.5943019328918590.297150966445929
230.6228752417092680.7542495165814630.377124758290732
240.8656585837529030.2686828324941940.134341416247097
250.8822525987412110.2354948025175770.117747401258789
260.8838384070868670.2323231858262660.116161592913133
270.8917175379446310.2165649241107380.108282462055369
280.8862723152612580.2274553694774830.113727684738742
290.8686891709538140.2626216580923720.131310829046186
300.84681757220010.3063648555998010.153182427799900
310.8264315002195750.3471369995608500.173568499780425
320.787089711558950.4258205768820990.212910288441049
330.7181315557351920.5637368885296150.281868444264808
340.6551923365455110.6896153269089770.344807663454488
350.6111960078966440.7776079842067110.388803992103356
360.623916101257770.752167797484460.37608389874223
370.5254859545659340.9490280908681310.474514045434066
380.4264634303038530.8529268606077060.573536569696147
390.4687111980532770.9374223961065540.531288801946723
400.4124086066730240.8248172133460470.587591393326976
410.446920043668870.893840087337740.55307995633113
420.3213496964633590.6426993929267170.678650303536641
430.3825020175873020.7650040351746050.617497982412698
440.809181447994840.381637104010320.19081855200516







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

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

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



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