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 computationWed, 18 Nov 2009 07:52:22 -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/18/t1258556011gym7b278la6ff0g.htm/, Retrieved Sun, 05 May 2024 10:05:30 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57464, Retrieved Sun, 05 May 2024 10:05:30 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact174
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]
-    D      [Multiple Regression] [] [2009-11-18 14:52:22] [4f23cd6f600e6b4b5336072a0ca6bd10] [Current]
Feedback Forum

Post a new message
Dataseries X:
8,2	25,5
8,3	25,5
8,1	25,5
7,4	20,9
7,3	20,9
7,7	20,9
8	22,3
8	22,3
7,7	22,3
6,9	19,9
6,6	19,9
6,9	19,9
7,5	24,1
7,9	24,1
7,7	24,1
6,5	13,8
6,1	13,8
6,4	13,8
6,8	16,2
7,1	16,2
7,3	16,2
7,2	18,6
7	18,6
7	18,6
7	22,4
7,3	22,4
7,5	22,4
7,2	22,6
7,7	22,6
8	22,6
7,9	20
8	20
8	20
7,9	21,8
7,9	21,8
8	21,8
8,1	28,7
8,1	28,7
8,2	28,7
8	19,5
8,3	19,5
8,5	19,5
8,6	19,4
8,7	19,4
8,7	19,4
8,5	21,7
8,4	21,7
8,5	21,7
8,7	26,2
8,7	26,2
8,6	26,2
7,9	19,1
8,1	19,1
8,2	19,1
8,5	21,3
8,6	21,3
8,5	21,3
8,3	24,1
8,2	24,1
8,7	24,1




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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 4.16181097906056 + 0.140421618562535X[t] -0.296852126957176M1[t] -0.155697745708356M2[t] -0.214543364459535M3[t] + 0.0172250518770039M4[t] + 0.0983794331258246M5[t] + 0.339533814374645M6[t] + 0.428009927372194M7[t] + 0.529164308621014M8[t] + 0.470318689869835M9[t] -0.0223087624976419M10[t] -0.181154381248821M11[t] + 0.018845618751179t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  4.16181097906056 +  0.140421618562535X[t] -0.296852126957176M1[t] -0.155697745708356M2[t] -0.214543364459535M3[t] +  0.0172250518770039M4[t] +  0.0983794331258246M5[t] +  0.339533814374645M6[t] +  0.428009927372194M7[t] +  0.529164308621014M8[t] +  0.470318689869835M9[t] -0.0223087624976419M10[t] -0.181154381248821M11[t] +  0.018845618751179t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57464&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  4.16181097906056 +  0.140421618562535X[t] -0.296852126957176M1[t] -0.155697745708356M2[t] -0.214543364459535M3[t] +  0.0172250518770039M4[t] +  0.0983794331258246M5[t] +  0.339533814374645M6[t] +  0.428009927372194M7[t] +  0.529164308621014M8[t] +  0.470318689869835M9[t] -0.0223087624976419M10[t] -0.181154381248821M11[t] +  0.018845618751179t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57464&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57464&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] = + 4.16181097906056 + 0.140421618562535X[t] -0.296852126957176M1[t] -0.155697745708356M2[t] -0.214543364459535M3[t] + 0.0172250518770039M4[t] + 0.0983794331258246M5[t] + 0.339533814374645M6[t] + 0.428009927372194M7[t] + 0.529164308621014M8[t] + 0.470318689869835M9[t] -0.0223087624976419M10[t] -0.181154381248821M11[t] + 0.018845618751179t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)4.161810979060560.4830818.615100
X0.1404216185625350.022426.263200
M1-0.2968521269571760.262005-1.1330.2630850.131542
M2-0.1556977457083560.261291-0.59590.5541770.277089
M3-0.2145433644595350.26061-0.82320.4146220.207311
M40.01722505187700390.2425130.0710.9436840.471842
M50.09837943312582460.2424130.40580.6867460.343373
M60.3395338143746450.242351.4010.1679230.083962
M70.4280099273721940.2402731.78140.0814580.040729
M80.5291643086210140.2402262.20280.0326590.01633
M90.4703186898698350.2402181.95790.0563250.028163
M10-0.02230876249764190.238499-0.09350.9258820.462941
M11-0.1811543812488210.238441-0.75970.4512840.225642
t0.0188456187511790.0030286.224100

\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) & 4.16181097906056 & 0.483081 & 8.6151 & 0 & 0 \tabularnewline
X & 0.140421618562535 & 0.02242 & 6.2632 & 0 & 0 \tabularnewline
M1 & -0.296852126957176 & 0.262005 & -1.133 & 0.263085 & 0.131542 \tabularnewline
M2 & -0.155697745708356 & 0.261291 & -0.5959 & 0.554177 & 0.277089 \tabularnewline
M3 & -0.214543364459535 & 0.26061 & -0.8232 & 0.414622 & 0.207311 \tabularnewline
M4 & 0.0172250518770039 & 0.242513 & 0.071 & 0.943684 & 0.471842 \tabularnewline
M5 & 0.0983794331258246 & 0.242413 & 0.4058 & 0.686746 & 0.343373 \tabularnewline
M6 & 0.339533814374645 & 0.24235 & 1.401 & 0.167923 & 0.083962 \tabularnewline
M7 & 0.428009927372194 & 0.240273 & 1.7814 & 0.081458 & 0.040729 \tabularnewline
M8 & 0.529164308621014 & 0.240226 & 2.2028 & 0.032659 & 0.01633 \tabularnewline
M9 & 0.470318689869835 & 0.240218 & 1.9579 & 0.056325 & 0.028163 \tabularnewline
M10 & -0.0223087624976419 & 0.238499 & -0.0935 & 0.925882 & 0.462941 \tabularnewline
M11 & -0.181154381248821 & 0.238441 & -0.7597 & 0.451284 & 0.225642 \tabularnewline
t & 0.018845618751179 & 0.003028 & 6.2241 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57464&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]4.16181097906056[/C][C]0.483081[/C][C]8.6151[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]0.140421618562535[/C][C]0.02242[/C][C]6.2632[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-0.296852126957176[/C][C]0.262005[/C][C]-1.133[/C][C]0.263085[/C][C]0.131542[/C][/ROW]
[ROW][C]M2[/C][C]-0.155697745708356[/C][C]0.261291[/C][C]-0.5959[/C][C]0.554177[/C][C]0.277089[/C][/ROW]
[ROW][C]M3[/C][C]-0.214543364459535[/C][C]0.26061[/C][C]-0.8232[/C][C]0.414622[/C][C]0.207311[/C][/ROW]
[ROW][C]M4[/C][C]0.0172250518770039[/C][C]0.242513[/C][C]0.071[/C][C]0.943684[/C][C]0.471842[/C][/ROW]
[ROW][C]M5[/C][C]0.0983794331258246[/C][C]0.242413[/C][C]0.4058[/C][C]0.686746[/C][C]0.343373[/C][/ROW]
[ROW][C]M6[/C][C]0.339533814374645[/C][C]0.24235[/C][C]1.401[/C][C]0.167923[/C][C]0.083962[/C][/ROW]
[ROW][C]M7[/C][C]0.428009927372194[/C][C]0.240273[/C][C]1.7814[/C][C]0.081458[/C][C]0.040729[/C][/ROW]
[ROW][C]M8[/C][C]0.529164308621014[/C][C]0.240226[/C][C]2.2028[/C][C]0.032659[/C][C]0.01633[/C][/ROW]
[ROW][C]M9[/C][C]0.470318689869835[/C][C]0.240218[/C][C]1.9579[/C][C]0.056325[/C][C]0.028163[/C][/ROW]
[ROW][C]M10[/C][C]-0.0223087624976419[/C][C]0.238499[/C][C]-0.0935[/C][C]0.925882[/C][C]0.462941[/C][/ROW]
[ROW][C]M11[/C][C]-0.181154381248821[/C][C]0.238441[/C][C]-0.7597[/C][C]0.451284[/C][C]0.225642[/C][/ROW]
[ROW][C]t[/C][C]0.018845618751179[/C][C]0.003028[/C][C]6.2241[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57464&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57464&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)4.161810979060560.4830818.615100
X0.1404216185625350.022426.263200
M1-0.2968521269571760.262005-1.1330.2630850.131542
M2-0.1556977457083560.261291-0.59590.5541770.277089
M3-0.2145433644595350.26061-0.82320.4146220.207311
M40.01722505187700390.2425130.0710.9436840.471842
M50.09837943312582460.2424130.40580.6867460.343373
M60.3395338143746450.242351.4010.1679230.083962
M70.4280099273721940.2402731.78140.0814580.040729
M80.5291643086210140.2402262.20280.0326590.01633
M90.4703186898698350.2402181.95790.0563250.028163
M10-0.02230876249764190.238499-0.09350.9258820.462941
M11-0.1811543812488210.238441-0.75970.4512840.225642
t0.0188456187511790.0030286.224100







Multiple Linear Regression - Regression Statistics
Multiple R0.863371612166365
R-squared0.745410540694749
Adjusted R-squared0.6734613456737
F-TEST (value)10.3602346138365
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value1.02096775478344e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.376978214389973
Sum Squared Residuals6.53717840973402

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.863371612166365 \tabularnewline
R-squared & 0.745410540694749 \tabularnewline
Adjusted R-squared & 0.6734613456737 \tabularnewline
F-TEST (value) & 10.3602346138365 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 1.02096775478344e-09 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.376978214389973 \tabularnewline
Sum Squared Residuals & 6.53717840973402 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57464&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.863371612166365[/C][/ROW]
[ROW][C]R-squared[/C][C]0.745410540694749[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.6734613456737[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]10.3602346138365[/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]1.02096775478344e-09[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.376978214389973[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]6.53717840973402[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57464&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57464&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.863371612166365
R-squared0.745410540694749
Adjusted R-squared0.6734613456737
F-TEST (value)10.3602346138365
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value1.02096775478344e-09
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.376978214389973
Sum Squared Residuals6.53717840973402







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.27.46455574419920.735444255800796
28.37.62455574419920.675444255800792
38.17.58455574419920.515444255800792
47.47.189230333899260.210769666100737
57.37.289230333899260.0107696661007361
67.77.549230333899260.150769666100736
787.853142331635540.14685766836446
887.973142331635540.0268576683644611
97.77.93314233163554-0.23314233163554
106.97.12234861346916-0.222348613469157
116.66.98234861346916-0.382348613469158
126.97.18234861346916-0.282348613469157
137.57.49411290322580.00588709677419252
147.97.65411290322580.245887096774195
157.77.61411290322580.0858870967741937
166.56.418384267119410.0816157328805864
176.16.51838426711941-0.418384267119414
186.46.77838426711941-0.378384267119413
196.87.22271788341822-0.422717883418224
207.17.34271788341822-0.242717883418224
217.37.30271788341822-0.00271788341822402
227.27.165947934352010.0340520656479897
2377.02594793435201-0.0259479343520098
2477.22594793435201-0.225947934352010
2577.48154357668365-0.481543576683646
267.37.64154357668365-0.341543576683646
277.57.60154357668365-0.101543576683645
287.27.88024193548387-0.68024193548387
297.77.98024193548387-0.28024193548387
3088.24024193548387-0.24024193548387
317.97.98246745897-0.0824674589700051
3288.10246745897-0.102467458970005
3388.06246745897-0.0624674589700053
347.97.841444538766270.0585554612337295
357.97.701444538766270.19855546123373
3687.901444538766270.0985554612337294
378.18.59234719864176-0.492347198641766
388.18.75234719864176-0.652347198641765
398.28.71234719864176-0.512347198641765
4087.671082342954160.32891765704584
418.37.771082342954160.528917657045841
428.58.031082342954160.468917657045841
438.68.124361912846630.475638087153367
448.78.244361912846630.455638087153367
458.78.204361912846630.495638087153367
468.58.053549801924160.446450198075835
478.47.913549801924170.486450198075836
488.58.113549801924170.386450198075835
498.78.467440577249580.232559422750423
508.78.627440577249580.0725594227504237
518.68.587440577249580.0125594227504248
527.97.84106112054330.0589388794567062
538.17.94106112054330.158938879456706
548.28.2010611205433-0.00106112054329452
558.58.6173104131296-0.117310413129598
568.68.7373104131296-0.137310413129598
578.58.6973104131296-0.197310413129597
588.38.6167091114884-0.316709111488397
598.28.4767091114884-0.276709111488398
608.78.67670911148840.0232908885116015

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.2 & 7.4645557441992 & 0.735444255800796 \tabularnewline
2 & 8.3 & 7.6245557441992 & 0.675444255800792 \tabularnewline
3 & 8.1 & 7.5845557441992 & 0.515444255800792 \tabularnewline
4 & 7.4 & 7.18923033389926 & 0.210769666100737 \tabularnewline
5 & 7.3 & 7.28923033389926 & 0.0107696661007361 \tabularnewline
6 & 7.7 & 7.54923033389926 & 0.150769666100736 \tabularnewline
7 & 8 & 7.85314233163554 & 0.14685766836446 \tabularnewline
8 & 8 & 7.97314233163554 & 0.0268576683644611 \tabularnewline
9 & 7.7 & 7.93314233163554 & -0.23314233163554 \tabularnewline
10 & 6.9 & 7.12234861346916 & -0.222348613469157 \tabularnewline
11 & 6.6 & 6.98234861346916 & -0.382348613469158 \tabularnewline
12 & 6.9 & 7.18234861346916 & -0.282348613469157 \tabularnewline
13 & 7.5 & 7.4941129032258 & 0.00588709677419252 \tabularnewline
14 & 7.9 & 7.6541129032258 & 0.245887096774195 \tabularnewline
15 & 7.7 & 7.6141129032258 & 0.0858870967741937 \tabularnewline
16 & 6.5 & 6.41838426711941 & 0.0816157328805864 \tabularnewline
17 & 6.1 & 6.51838426711941 & -0.418384267119414 \tabularnewline
18 & 6.4 & 6.77838426711941 & -0.378384267119413 \tabularnewline
19 & 6.8 & 7.22271788341822 & -0.422717883418224 \tabularnewline
20 & 7.1 & 7.34271788341822 & -0.242717883418224 \tabularnewline
21 & 7.3 & 7.30271788341822 & -0.00271788341822402 \tabularnewline
22 & 7.2 & 7.16594793435201 & 0.0340520656479897 \tabularnewline
23 & 7 & 7.02594793435201 & -0.0259479343520098 \tabularnewline
24 & 7 & 7.22594793435201 & -0.225947934352010 \tabularnewline
25 & 7 & 7.48154357668365 & -0.481543576683646 \tabularnewline
26 & 7.3 & 7.64154357668365 & -0.341543576683646 \tabularnewline
27 & 7.5 & 7.60154357668365 & -0.101543576683645 \tabularnewline
28 & 7.2 & 7.88024193548387 & -0.68024193548387 \tabularnewline
29 & 7.7 & 7.98024193548387 & -0.28024193548387 \tabularnewline
30 & 8 & 8.24024193548387 & -0.24024193548387 \tabularnewline
31 & 7.9 & 7.98246745897 & -0.0824674589700051 \tabularnewline
32 & 8 & 8.10246745897 & -0.102467458970005 \tabularnewline
33 & 8 & 8.06246745897 & -0.0624674589700053 \tabularnewline
34 & 7.9 & 7.84144453876627 & 0.0585554612337295 \tabularnewline
35 & 7.9 & 7.70144453876627 & 0.19855546123373 \tabularnewline
36 & 8 & 7.90144453876627 & 0.0985554612337294 \tabularnewline
37 & 8.1 & 8.59234719864176 & -0.492347198641766 \tabularnewline
38 & 8.1 & 8.75234719864176 & -0.652347198641765 \tabularnewline
39 & 8.2 & 8.71234719864176 & -0.512347198641765 \tabularnewline
40 & 8 & 7.67108234295416 & 0.32891765704584 \tabularnewline
41 & 8.3 & 7.77108234295416 & 0.528917657045841 \tabularnewline
42 & 8.5 & 8.03108234295416 & 0.468917657045841 \tabularnewline
43 & 8.6 & 8.12436191284663 & 0.475638087153367 \tabularnewline
44 & 8.7 & 8.24436191284663 & 0.455638087153367 \tabularnewline
45 & 8.7 & 8.20436191284663 & 0.495638087153367 \tabularnewline
46 & 8.5 & 8.05354980192416 & 0.446450198075835 \tabularnewline
47 & 8.4 & 7.91354980192417 & 0.486450198075836 \tabularnewline
48 & 8.5 & 8.11354980192417 & 0.386450198075835 \tabularnewline
49 & 8.7 & 8.46744057724958 & 0.232559422750423 \tabularnewline
50 & 8.7 & 8.62744057724958 & 0.0725594227504237 \tabularnewline
51 & 8.6 & 8.58744057724958 & 0.0125594227504248 \tabularnewline
52 & 7.9 & 7.8410611205433 & 0.0589388794567062 \tabularnewline
53 & 8.1 & 7.9410611205433 & 0.158938879456706 \tabularnewline
54 & 8.2 & 8.2010611205433 & -0.00106112054329452 \tabularnewline
55 & 8.5 & 8.6173104131296 & -0.117310413129598 \tabularnewline
56 & 8.6 & 8.7373104131296 & -0.137310413129598 \tabularnewline
57 & 8.5 & 8.6973104131296 & -0.197310413129597 \tabularnewline
58 & 8.3 & 8.6167091114884 & -0.316709111488397 \tabularnewline
59 & 8.2 & 8.4767091114884 & -0.276709111488398 \tabularnewline
60 & 8.7 & 8.6767091114884 & 0.0232908885116015 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57464&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]8.2[/C][C]7.4645557441992[/C][C]0.735444255800796[/C][/ROW]
[ROW][C]2[/C][C]8.3[/C][C]7.6245557441992[/C][C]0.675444255800792[/C][/ROW]
[ROW][C]3[/C][C]8.1[/C][C]7.5845557441992[/C][C]0.515444255800792[/C][/ROW]
[ROW][C]4[/C][C]7.4[/C][C]7.18923033389926[/C][C]0.210769666100737[/C][/ROW]
[ROW][C]5[/C][C]7.3[/C][C]7.28923033389926[/C][C]0.0107696661007361[/C][/ROW]
[ROW][C]6[/C][C]7.7[/C][C]7.54923033389926[/C][C]0.150769666100736[/C][/ROW]
[ROW][C]7[/C][C]8[/C][C]7.85314233163554[/C][C]0.14685766836446[/C][/ROW]
[ROW][C]8[/C][C]8[/C][C]7.97314233163554[/C][C]0.0268576683644611[/C][/ROW]
[ROW][C]9[/C][C]7.7[/C][C]7.93314233163554[/C][C]-0.23314233163554[/C][/ROW]
[ROW][C]10[/C][C]6.9[/C][C]7.12234861346916[/C][C]-0.222348613469157[/C][/ROW]
[ROW][C]11[/C][C]6.6[/C][C]6.98234861346916[/C][C]-0.382348613469158[/C][/ROW]
[ROW][C]12[/C][C]6.9[/C][C]7.18234861346916[/C][C]-0.282348613469157[/C][/ROW]
[ROW][C]13[/C][C]7.5[/C][C]7.4941129032258[/C][C]0.00588709677419252[/C][/ROW]
[ROW][C]14[/C][C]7.9[/C][C]7.6541129032258[/C][C]0.245887096774195[/C][/ROW]
[ROW][C]15[/C][C]7.7[/C][C]7.6141129032258[/C][C]0.0858870967741937[/C][/ROW]
[ROW][C]16[/C][C]6.5[/C][C]6.41838426711941[/C][C]0.0816157328805864[/C][/ROW]
[ROW][C]17[/C][C]6.1[/C][C]6.51838426711941[/C][C]-0.418384267119414[/C][/ROW]
[ROW][C]18[/C][C]6.4[/C][C]6.77838426711941[/C][C]-0.378384267119413[/C][/ROW]
[ROW][C]19[/C][C]6.8[/C][C]7.22271788341822[/C][C]-0.422717883418224[/C][/ROW]
[ROW][C]20[/C][C]7.1[/C][C]7.34271788341822[/C][C]-0.242717883418224[/C][/ROW]
[ROW][C]21[/C][C]7.3[/C][C]7.30271788341822[/C][C]-0.00271788341822402[/C][/ROW]
[ROW][C]22[/C][C]7.2[/C][C]7.16594793435201[/C][C]0.0340520656479897[/C][/ROW]
[ROW][C]23[/C][C]7[/C][C]7.02594793435201[/C][C]-0.0259479343520098[/C][/ROW]
[ROW][C]24[/C][C]7[/C][C]7.22594793435201[/C][C]-0.225947934352010[/C][/ROW]
[ROW][C]25[/C][C]7[/C][C]7.48154357668365[/C][C]-0.481543576683646[/C][/ROW]
[ROW][C]26[/C][C]7.3[/C][C]7.64154357668365[/C][C]-0.341543576683646[/C][/ROW]
[ROW][C]27[/C][C]7.5[/C][C]7.60154357668365[/C][C]-0.101543576683645[/C][/ROW]
[ROW][C]28[/C][C]7.2[/C][C]7.88024193548387[/C][C]-0.68024193548387[/C][/ROW]
[ROW][C]29[/C][C]7.7[/C][C]7.98024193548387[/C][C]-0.28024193548387[/C][/ROW]
[ROW][C]30[/C][C]8[/C][C]8.24024193548387[/C][C]-0.24024193548387[/C][/ROW]
[ROW][C]31[/C][C]7.9[/C][C]7.98246745897[/C][C]-0.0824674589700051[/C][/ROW]
[ROW][C]32[/C][C]8[/C][C]8.10246745897[/C][C]-0.102467458970005[/C][/ROW]
[ROW][C]33[/C][C]8[/C][C]8.06246745897[/C][C]-0.0624674589700053[/C][/ROW]
[ROW][C]34[/C][C]7.9[/C][C]7.84144453876627[/C][C]0.0585554612337295[/C][/ROW]
[ROW][C]35[/C][C]7.9[/C][C]7.70144453876627[/C][C]0.19855546123373[/C][/ROW]
[ROW][C]36[/C][C]8[/C][C]7.90144453876627[/C][C]0.0985554612337294[/C][/ROW]
[ROW][C]37[/C][C]8.1[/C][C]8.59234719864176[/C][C]-0.492347198641766[/C][/ROW]
[ROW][C]38[/C][C]8.1[/C][C]8.75234719864176[/C][C]-0.652347198641765[/C][/ROW]
[ROW][C]39[/C][C]8.2[/C][C]8.71234719864176[/C][C]-0.512347198641765[/C][/ROW]
[ROW][C]40[/C][C]8[/C][C]7.67108234295416[/C][C]0.32891765704584[/C][/ROW]
[ROW][C]41[/C][C]8.3[/C][C]7.77108234295416[/C][C]0.528917657045841[/C][/ROW]
[ROW][C]42[/C][C]8.5[/C][C]8.03108234295416[/C][C]0.468917657045841[/C][/ROW]
[ROW][C]43[/C][C]8.6[/C][C]8.12436191284663[/C][C]0.475638087153367[/C][/ROW]
[ROW][C]44[/C][C]8.7[/C][C]8.24436191284663[/C][C]0.455638087153367[/C][/ROW]
[ROW][C]45[/C][C]8.7[/C][C]8.20436191284663[/C][C]0.495638087153367[/C][/ROW]
[ROW][C]46[/C][C]8.5[/C][C]8.05354980192416[/C][C]0.446450198075835[/C][/ROW]
[ROW][C]47[/C][C]8.4[/C][C]7.91354980192417[/C][C]0.486450198075836[/C][/ROW]
[ROW][C]48[/C][C]8.5[/C][C]8.11354980192417[/C][C]0.386450198075835[/C][/ROW]
[ROW][C]49[/C][C]8.7[/C][C]8.46744057724958[/C][C]0.232559422750423[/C][/ROW]
[ROW][C]50[/C][C]8.7[/C][C]8.62744057724958[/C][C]0.0725594227504237[/C][/ROW]
[ROW][C]51[/C][C]8.6[/C][C]8.58744057724958[/C][C]0.0125594227504248[/C][/ROW]
[ROW][C]52[/C][C]7.9[/C][C]7.8410611205433[/C][C]0.0589388794567062[/C][/ROW]
[ROW][C]53[/C][C]8.1[/C][C]7.9410611205433[/C][C]0.158938879456706[/C][/ROW]
[ROW][C]54[/C][C]8.2[/C][C]8.2010611205433[/C][C]-0.00106112054329452[/C][/ROW]
[ROW][C]55[/C][C]8.5[/C][C]8.6173104131296[/C][C]-0.117310413129598[/C][/ROW]
[ROW][C]56[/C][C]8.6[/C][C]8.7373104131296[/C][C]-0.137310413129598[/C][/ROW]
[ROW][C]57[/C][C]8.5[/C][C]8.6973104131296[/C][C]-0.197310413129597[/C][/ROW]
[ROW][C]58[/C][C]8.3[/C][C]8.6167091114884[/C][C]-0.316709111488397[/C][/ROW]
[ROW][C]59[/C][C]8.2[/C][C]8.4767091114884[/C][C]-0.276709111488398[/C][/ROW]
[ROW][C]60[/C][C]8.7[/C][C]8.6767091114884[/C][C]0.0232908885116015[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57464&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57464&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
18.27.46455574419920.735444255800796
28.37.62455574419920.675444255800792
38.17.58455574419920.515444255800792
47.47.189230333899260.210769666100737
57.37.289230333899260.0107696661007361
67.77.549230333899260.150769666100736
787.853142331635540.14685766836446
887.973142331635540.0268576683644611
97.77.93314233163554-0.23314233163554
106.97.12234861346916-0.222348613469157
116.66.98234861346916-0.382348613469158
126.97.18234861346916-0.282348613469157
137.57.49411290322580.00588709677419252
147.97.65411290322580.245887096774195
157.77.61411290322580.0858870967741937
166.56.418384267119410.0816157328805864
176.16.51838426711941-0.418384267119414
186.46.77838426711941-0.378384267119413
196.87.22271788341822-0.422717883418224
207.17.34271788341822-0.242717883418224
217.37.30271788341822-0.00271788341822402
227.27.165947934352010.0340520656479897
2377.02594793435201-0.0259479343520098
2477.22594793435201-0.225947934352010
2577.48154357668365-0.481543576683646
267.37.64154357668365-0.341543576683646
277.57.60154357668365-0.101543576683645
287.27.88024193548387-0.68024193548387
297.77.98024193548387-0.28024193548387
3088.24024193548387-0.24024193548387
317.97.98246745897-0.0824674589700051
3288.10246745897-0.102467458970005
3388.06246745897-0.0624674589700053
347.97.841444538766270.0585554612337295
357.97.701444538766270.19855546123373
3687.901444538766270.0985554612337294
378.18.59234719864176-0.492347198641766
388.18.75234719864176-0.652347198641765
398.28.71234719864176-0.512347198641765
4087.671082342954160.32891765704584
418.37.771082342954160.528917657045841
428.58.031082342954160.468917657045841
438.68.124361912846630.475638087153367
448.78.244361912846630.455638087153367
458.78.204361912846630.495638087153367
468.58.053549801924160.446450198075835
478.47.913549801924170.486450198075836
488.58.113549801924170.386450198075835
498.78.467440577249580.232559422750423
508.78.627440577249580.0725594227504237
518.68.587440577249580.0125594227504248
527.97.84106112054330.0589388794567062
538.17.94106112054330.158938879456706
548.28.2010611205433-0.00106112054329452
558.58.6173104131296-0.117310413129598
568.68.7373104131296-0.137310413129598
578.58.6973104131296-0.197310413129597
588.38.6167091114884-0.316709111488397
598.28.4767091114884-0.276709111488398
608.78.67670911148840.0232908885116015







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.09015598335308180.1803119667061640.909844016646918
180.06267148401296370.1253429680259270.937328515987036
190.03755243474037790.07510486948075570.962447565259622
200.02020535488574560.04041070977149120.979794645114254
210.1165989707452930.2331979414905850.883401029254707
220.2629654941308650.525930988261730.737034505869135
230.3488052280940030.6976104561880060.651194771905997
240.3306810393193360.6613620786386710.669318960680664
250.5626274804180990.8747450391638020.437372519581901
260.6893281834865940.6213436330268130.310671816513406
270.8210172986368820.3579654027262360.178982701363118
280.771472916723450.4570541665530990.228527083276550
290.7899878598202940.4200242803594120.210012140179706
300.798493965485330.4030120690293390.201506034514670
310.8183802191056840.3632395617886320.181619780894316
320.8248158651348240.3503682697303510.175184134865176
330.8299347014926780.3401305970146450.170065298507322
340.843779057611260.3124418847774780.156220942388739
350.8692217533817830.2615564932364350.130778246618217
360.9625093434860650.07498131302786980.0374906565139349
370.9624104310484130.07517913790317350.0375895689515867
380.983769738547790.03246052290442040.0162302614522102
390.998055265615130.003889468769739150.00194473438486958
400.9971670471320830.00566590573583460.0028329528679173
410.9947469797174520.01050604056509710.00525302028254853
420.9846068105370720.03078637892585550.0153931894629278
430.952120847699590.09575830460081930.0478791523004096

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0901559833530818 & 0.180311966706164 & 0.909844016646918 \tabularnewline
18 & 0.0626714840129637 & 0.125342968025927 & 0.937328515987036 \tabularnewline
19 & 0.0375524347403779 & 0.0751048694807557 & 0.962447565259622 \tabularnewline
20 & 0.0202053548857456 & 0.0404107097714912 & 0.979794645114254 \tabularnewline
21 & 0.116598970745293 & 0.233197941490585 & 0.883401029254707 \tabularnewline
22 & 0.262965494130865 & 0.52593098826173 & 0.737034505869135 \tabularnewline
23 & 0.348805228094003 & 0.697610456188006 & 0.651194771905997 \tabularnewline
24 & 0.330681039319336 & 0.661362078638671 & 0.669318960680664 \tabularnewline
25 & 0.562627480418099 & 0.874745039163802 & 0.437372519581901 \tabularnewline
26 & 0.689328183486594 & 0.621343633026813 & 0.310671816513406 \tabularnewline
27 & 0.821017298636882 & 0.357965402726236 & 0.178982701363118 \tabularnewline
28 & 0.77147291672345 & 0.457054166553099 & 0.228527083276550 \tabularnewline
29 & 0.789987859820294 & 0.420024280359412 & 0.210012140179706 \tabularnewline
30 & 0.79849396548533 & 0.403012069029339 & 0.201506034514670 \tabularnewline
31 & 0.818380219105684 & 0.363239561788632 & 0.181619780894316 \tabularnewline
32 & 0.824815865134824 & 0.350368269730351 & 0.175184134865176 \tabularnewline
33 & 0.829934701492678 & 0.340130597014645 & 0.170065298507322 \tabularnewline
34 & 0.84377905761126 & 0.312441884777478 & 0.156220942388739 \tabularnewline
35 & 0.869221753381783 & 0.261556493236435 & 0.130778246618217 \tabularnewline
36 & 0.962509343486065 & 0.0749813130278698 & 0.0374906565139349 \tabularnewline
37 & 0.962410431048413 & 0.0751791379031735 & 0.0375895689515867 \tabularnewline
38 & 0.98376973854779 & 0.0324605229044204 & 0.0162302614522102 \tabularnewline
39 & 0.99805526561513 & 0.00388946876973915 & 0.00194473438486958 \tabularnewline
40 & 0.997167047132083 & 0.0056659057358346 & 0.0028329528679173 \tabularnewline
41 & 0.994746979717452 & 0.0105060405650971 & 0.00525302028254853 \tabularnewline
42 & 0.984606810537072 & 0.0307863789258555 & 0.0153931894629278 \tabularnewline
43 & 0.95212084769959 & 0.0957583046008193 & 0.0478791523004096 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57464&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.0901559833530818[/C][C]0.180311966706164[/C][C]0.909844016646918[/C][/ROW]
[ROW][C]18[/C][C]0.0626714840129637[/C][C]0.125342968025927[/C][C]0.937328515987036[/C][/ROW]
[ROW][C]19[/C][C]0.0375524347403779[/C][C]0.0751048694807557[/C][C]0.962447565259622[/C][/ROW]
[ROW][C]20[/C][C]0.0202053548857456[/C][C]0.0404107097714912[/C][C]0.979794645114254[/C][/ROW]
[ROW][C]21[/C][C]0.116598970745293[/C][C]0.233197941490585[/C][C]0.883401029254707[/C][/ROW]
[ROW][C]22[/C][C]0.262965494130865[/C][C]0.52593098826173[/C][C]0.737034505869135[/C][/ROW]
[ROW][C]23[/C][C]0.348805228094003[/C][C]0.697610456188006[/C][C]0.651194771905997[/C][/ROW]
[ROW][C]24[/C][C]0.330681039319336[/C][C]0.661362078638671[/C][C]0.669318960680664[/C][/ROW]
[ROW][C]25[/C][C]0.562627480418099[/C][C]0.874745039163802[/C][C]0.437372519581901[/C][/ROW]
[ROW][C]26[/C][C]0.689328183486594[/C][C]0.621343633026813[/C][C]0.310671816513406[/C][/ROW]
[ROW][C]27[/C][C]0.821017298636882[/C][C]0.357965402726236[/C][C]0.178982701363118[/C][/ROW]
[ROW][C]28[/C][C]0.77147291672345[/C][C]0.457054166553099[/C][C]0.228527083276550[/C][/ROW]
[ROW][C]29[/C][C]0.789987859820294[/C][C]0.420024280359412[/C][C]0.210012140179706[/C][/ROW]
[ROW][C]30[/C][C]0.79849396548533[/C][C]0.403012069029339[/C][C]0.201506034514670[/C][/ROW]
[ROW][C]31[/C][C]0.818380219105684[/C][C]0.363239561788632[/C][C]0.181619780894316[/C][/ROW]
[ROW][C]32[/C][C]0.824815865134824[/C][C]0.350368269730351[/C][C]0.175184134865176[/C][/ROW]
[ROW][C]33[/C][C]0.829934701492678[/C][C]0.340130597014645[/C][C]0.170065298507322[/C][/ROW]
[ROW][C]34[/C][C]0.84377905761126[/C][C]0.312441884777478[/C][C]0.156220942388739[/C][/ROW]
[ROW][C]35[/C][C]0.869221753381783[/C][C]0.261556493236435[/C][C]0.130778246618217[/C][/ROW]
[ROW][C]36[/C][C]0.962509343486065[/C][C]0.0749813130278698[/C][C]0.0374906565139349[/C][/ROW]
[ROW][C]37[/C][C]0.962410431048413[/C][C]0.0751791379031735[/C][C]0.0375895689515867[/C][/ROW]
[ROW][C]38[/C][C]0.98376973854779[/C][C]0.0324605229044204[/C][C]0.0162302614522102[/C][/ROW]
[ROW][C]39[/C][C]0.99805526561513[/C][C]0.00388946876973915[/C][C]0.00194473438486958[/C][/ROW]
[ROW][C]40[/C][C]0.997167047132083[/C][C]0.0056659057358346[/C][C]0.0028329528679173[/C][/ROW]
[ROW][C]41[/C][C]0.994746979717452[/C][C]0.0105060405650971[/C][C]0.00525302028254853[/C][/ROW]
[ROW][C]42[/C][C]0.984606810537072[/C][C]0.0307863789258555[/C][C]0.0153931894629278[/C][/ROW]
[ROW][C]43[/C][C]0.95212084769959[/C][C]0.0957583046008193[/C][C]0.0478791523004096[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57464&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57464&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.09015598335308180.1803119667061640.909844016646918
180.06267148401296370.1253429680259270.937328515987036
190.03755243474037790.07510486948075570.962447565259622
200.02020535488574560.04041070977149120.979794645114254
210.1165989707452930.2331979414905850.883401029254707
220.2629654941308650.525930988261730.737034505869135
230.3488052280940030.6976104561880060.651194771905997
240.3306810393193360.6613620786386710.669318960680664
250.5626274804180990.8747450391638020.437372519581901
260.6893281834865940.6213436330268130.310671816513406
270.8210172986368820.3579654027262360.178982701363118
280.771472916723450.4570541665530990.228527083276550
290.7899878598202940.4200242803594120.210012140179706
300.798493965485330.4030120690293390.201506034514670
310.8183802191056840.3632395617886320.181619780894316
320.8248158651348240.3503682697303510.175184134865176
330.8299347014926780.3401305970146450.170065298507322
340.843779057611260.3124418847774780.156220942388739
350.8692217533817830.2615564932364350.130778246618217
360.9625093434860650.07498131302786980.0374906565139349
370.9624104310484130.07517913790317350.0375895689515867
380.983769738547790.03246052290442040.0162302614522102
390.998055265615130.003889468769739150.00194473438486958
400.9971670471320830.00566590573583460.0028329528679173
410.9947469797174520.01050604056509710.00525302028254853
420.9846068105370720.03078637892585550.0153931894629278
430.952120847699590.09575830460081930.0478791523004096







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level20.0740740740740741NOK
5% type I error level60.222222222222222NOK
10% type I error level100.370370370370370NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57464&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 level20.0740740740740741NOK
5% type I error level60.222222222222222NOK
10% type I error level100.370370370370370NOK



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