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 computationSun, 06 Dec 2009 05:51:03 -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/Dec/06/t12601040171hlkx0n1u35v86d.htm/, Retrieved Sun, 05 May 2024 15:33:25 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=64372, Retrieved Sun, 05 May 2024 15:33:25 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact139
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:10:54] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [SHW WS7] [2009-11-20 12:32:24] [253127ae8da904b75450fbd69fe4eb21]
-    D        [Multiple Regression] [SHW paper] [2009-12-06 12:51:03] [b7e46d23597387652ca7420fdeb9acca] [Current]
Feedback Forum

Post a new message
Dataseries X:
8,3	0	8,8	8,9
7,5	0	8,3	8,8
7,2	0	7,5	8,3
7,4	0	7,2	7,5
8,8	0	7,4	7,2
9,3	0	8,8	7,4
9,3	0	9,3	8,8
8,7	0	9,3	9,3
8,2	0	8,7	9,3
8,3	0	8,2	8,7
8,5	0	8,3	8,2
8,6	0	8,5	8,3
8,5	0	8,6	8,5
8,2	0	8,5	8,6
8,1	0	8,2	8,5
7,9	0	8,1	8,2
8,6	0	7,9	8,1
8,7	0	8,6	7,9
8,7	0	8,7	8,6
8,5	0	8,7	8,7
8,4	0	8,5	8,7
8,5	0	8,4	8,5
8,7	0	8,5	8,4
8,7	0	8,7	8,5
8,6	0	8,7	8,7
8,5	0	8,6	8,7
8,3	0	8,5	8,6
8	0	8,3	8,5
8,2	0	8	8,3
8,1	0	8,2	8
8,1	0	8,1	8,2
8	0	8,1	8,1
7,9	0	8	8,1
7,9	0	7,9	8
8	0	7,9	7,9
8	0	8	7,9
7,9	0	8	8
8	0	7,9	8
7,7	0	8	7,9
7,2	0	7,7	8
7,5	0	7,2	7,7
7,3	0	7,5	7,2
7	0	7,3	7,5
7	0	7	7,3
7	0	7	7
7,2	0	7	7
7,3	1	7,2	7
7,1	1	7,3	7,2
6,8	1	7,1	7,3
6,4	1	6,8	7,1
6,1	1	6,4	6,8
6,5	1	6,1	6,4
7,7	1	6,5	6,1
7,9	1	7,7	6,5
7,5	1	7,9	7,7
6,9	1	7,5	7,9
6,6	1	6,9	7,5
6,9	1	6,6	6,9




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64372&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] = + 2.75622369530088 -0.141185604893304X[t] + 1.39682018713845Y1[t] -0.719429746061353Y2[t] -0.0670407108398949M1[t] -0.080762823187288M2[t] -0.0522366748546463M3[t] -0.00507411743522141M4[t] + 0.701762994805734M5[t] -0.309620090779789M6[t] -0.0347808661624004M7[t] -0.059528429032278M8[t] + 0.0665520989852706M9[t] + 0.277841848919159M10[t] + 0.154825417140026M11[t] -0.00775463632460447t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  2.75622369530088 -0.141185604893304X[t] +  1.39682018713845Y1[t] -0.719429746061353Y2[t] -0.0670407108398949M1[t] -0.080762823187288M2[t] -0.0522366748546463M3[t] -0.00507411743522141M4[t] +  0.701762994805734M5[t] -0.309620090779789M6[t] -0.0347808661624004M7[t] -0.059528429032278M8[t] +  0.0665520989852706M9[t] +  0.277841848919159M10[t] +  0.154825417140026M11[t] -0.00775463632460447t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64372&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  2.75622369530088 -0.141185604893304X[t] +  1.39682018713845Y1[t] -0.719429746061353Y2[t] -0.0670407108398949M1[t] -0.080762823187288M2[t] -0.0522366748546463M3[t] -0.00507411743522141M4[t] +  0.701762994805734M5[t] -0.309620090779789M6[t] -0.0347808661624004M7[t] -0.059528429032278M8[t] +  0.0665520989852706M9[t] +  0.277841848919159M10[t] +  0.154825417140026M11[t] -0.00775463632460447t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64372&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64372&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] = + 2.75622369530088 -0.141185604893304X[t] + 1.39682018713845Y1[t] -0.719429746061353Y2[t] -0.0670407108398949M1[t] -0.080762823187288M2[t] -0.0522366748546463M3[t] -0.00507411743522141M4[t] + 0.701762994805734M5[t] -0.309620090779789M6[t] -0.0347808661624004M7[t] -0.059528429032278M8[t] + 0.0665520989852706M9[t] + 0.277841848919159M10[t] + 0.154825417140026M11[t] -0.00775463632460447t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)2.756223695300880.6078044.53474.7e-052.4e-05
X-0.1411856048933040.094346-1.49650.1420110.071005
Y11.396820187138450.10941312.766500
Y2-0.7194297460613530.111227-6.468100
M1-0.06704071083989490.129837-0.51630.6083210.304161
M2-0.0807628231872880.133868-0.60330.5495530.274777
M3-0.05223667485464630.1375-0.37990.7059310.352965
M4-0.005074117435221410.13852-0.03660.9709530.485476
M50.7017629948057340.137275.11237e-064e-06
M6-0.3096200907797890.144785-2.13850.0383380.019169
M7-0.03478086616240040.128514-0.27060.7879950.393997
M8-0.0595284290322780.132029-0.45090.6544010.3272
M90.06655209898527060.1363950.48790.6281330.314067
M100.2778418489191590.1343692.06770.044860.02243
M110.1548254171400260.1352191.1450.2586940.129347
t-0.007754636324604470.002642-2.93520.0053860.002693

\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) & 2.75622369530088 & 0.607804 & 4.5347 & 4.7e-05 & 2.4e-05 \tabularnewline
X & -0.141185604893304 & 0.094346 & -1.4965 & 0.142011 & 0.071005 \tabularnewline
Y1 & 1.39682018713845 & 0.109413 & 12.7665 & 0 & 0 \tabularnewline
Y2 & -0.719429746061353 & 0.111227 & -6.4681 & 0 & 0 \tabularnewline
M1 & -0.0670407108398949 & 0.129837 & -0.5163 & 0.608321 & 0.304161 \tabularnewline
M2 & -0.080762823187288 & 0.133868 & -0.6033 & 0.549553 & 0.274777 \tabularnewline
M3 & -0.0522366748546463 & 0.1375 & -0.3799 & 0.705931 & 0.352965 \tabularnewline
M4 & -0.00507411743522141 & 0.13852 & -0.0366 & 0.970953 & 0.485476 \tabularnewline
M5 & 0.701762994805734 & 0.13727 & 5.1123 & 7e-06 & 4e-06 \tabularnewline
M6 & -0.309620090779789 & 0.144785 & -2.1385 & 0.038338 & 0.019169 \tabularnewline
M7 & -0.0347808661624004 & 0.128514 & -0.2706 & 0.787995 & 0.393997 \tabularnewline
M8 & -0.059528429032278 & 0.132029 & -0.4509 & 0.654401 & 0.3272 \tabularnewline
M9 & 0.0665520989852706 & 0.136395 & 0.4879 & 0.628133 & 0.314067 \tabularnewline
M10 & 0.277841848919159 & 0.134369 & 2.0677 & 0.04486 & 0.02243 \tabularnewline
M11 & 0.154825417140026 & 0.135219 & 1.145 & 0.258694 & 0.129347 \tabularnewline
t & -0.00775463632460447 & 0.002642 & -2.9352 & 0.005386 & 0.002693 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64372&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]2.75622369530088[/C][C]0.607804[/C][C]4.5347[/C][C]4.7e-05[/C][C]2.4e-05[/C][/ROW]
[ROW][C]X[/C][C]-0.141185604893304[/C][C]0.094346[/C][C]-1.4965[/C][C]0.142011[/C][C]0.071005[/C][/ROW]
[ROW][C]Y1[/C][C]1.39682018713845[/C][C]0.109413[/C][C]12.7665[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]-0.719429746061353[/C][C]0.111227[/C][C]-6.4681[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-0.0670407108398949[/C][C]0.129837[/C][C]-0.5163[/C][C]0.608321[/C][C]0.304161[/C][/ROW]
[ROW][C]M2[/C][C]-0.080762823187288[/C][C]0.133868[/C][C]-0.6033[/C][C]0.549553[/C][C]0.274777[/C][/ROW]
[ROW][C]M3[/C][C]-0.0522366748546463[/C][C]0.1375[/C][C]-0.3799[/C][C]0.705931[/C][C]0.352965[/C][/ROW]
[ROW][C]M4[/C][C]-0.00507411743522141[/C][C]0.13852[/C][C]-0.0366[/C][C]0.970953[/C][C]0.485476[/C][/ROW]
[ROW][C]M5[/C][C]0.701762994805734[/C][C]0.13727[/C][C]5.1123[/C][C]7e-06[/C][C]4e-06[/C][/ROW]
[ROW][C]M6[/C][C]-0.309620090779789[/C][C]0.144785[/C][C]-2.1385[/C][C]0.038338[/C][C]0.019169[/C][/ROW]
[ROW][C]M7[/C][C]-0.0347808661624004[/C][C]0.128514[/C][C]-0.2706[/C][C]0.787995[/C][C]0.393997[/C][/ROW]
[ROW][C]M8[/C][C]-0.059528429032278[/C][C]0.132029[/C][C]-0.4509[/C][C]0.654401[/C][C]0.3272[/C][/ROW]
[ROW][C]M9[/C][C]0.0665520989852706[/C][C]0.136395[/C][C]0.4879[/C][C]0.628133[/C][C]0.314067[/C][/ROW]
[ROW][C]M10[/C][C]0.277841848919159[/C][C]0.134369[/C][C]2.0677[/C][C]0.04486[/C][C]0.02243[/C][/ROW]
[ROW][C]M11[/C][C]0.154825417140026[/C][C]0.135219[/C][C]1.145[/C][C]0.258694[/C][C]0.129347[/C][/ROW]
[ROW][C]t[/C][C]-0.00775463632460447[/C][C]0.002642[/C][C]-2.9352[/C][C]0.005386[/C][C]0.002693[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64372&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64372&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)2.756223695300880.6078044.53474.7e-052.4e-05
X-0.1411856048933040.094346-1.49650.1420110.071005
Y11.396820187138450.10941312.766500
Y2-0.7194297460613530.111227-6.468100
M1-0.06704071083989490.129837-0.51630.6083210.304161
M2-0.0807628231872880.133868-0.60330.5495530.274777
M3-0.05223667485464630.1375-0.37990.7059310.352965
M4-0.005074117435221410.13852-0.03660.9709530.485476
M50.7017629948057340.137275.11237e-064e-06
M6-0.3096200907797890.144785-2.13850.0383380.019169
M7-0.03478086616240040.128514-0.27060.7879950.393997
M8-0.0595284290322780.132029-0.45090.6544010.3272
M90.06655209898527060.1363950.48790.6281330.314067
M100.2778418489191590.1343692.06770.044860.02243
M110.1548254171400260.1352191.1450.2586940.129347
t-0.007754636324604470.002642-2.93520.0053860.002693







Multiple Linear Regression - Regression Statistics
Multiple R0.974890277812212
R-squared0.950411053772772
Adjusted R-squared0.932700715834476
F-TEST (value)53.6641964192934
F-TEST (DF numerator)15
F-TEST (DF denominator)42
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.190545579175235
Sum Squared Residuals1.52491994521548

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.974890277812212 \tabularnewline
R-squared & 0.950411053772772 \tabularnewline
Adjusted R-squared & 0.932700715834476 \tabularnewline
F-TEST (value) & 53.6641964192934 \tabularnewline
F-TEST (DF numerator) & 15 \tabularnewline
F-TEST (DF denominator) & 42 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.190545579175235 \tabularnewline
Sum Squared Residuals & 1.52491994521548 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64372&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.974890277812212[/C][/ROW]
[ROW][C]R-squared[/C][C]0.950411053772772[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.932700715834476[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]53.6641964192934[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]15[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]42[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.190545579175235[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1.52491994521548[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64372&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64372&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.974890277812212
R-squared0.950411053772772
Adjusted R-squared0.932700715834476
F-TEST (value)53.6641964192934
F-TEST (DF numerator)15
F-TEST (DF denominator)42
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.190545579175235
Sum Squared Residuals1.52491994521548







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.38.57052125500866-0.270521255008656
27.57.92257738737358-0.422577387373576
37.27.185607622701530.0143923772984707
47.47.38151328450390.0184867154960978
58.88.575788721666350.224211278333653
69.39.36831331253777-0.0683133125377741
79.39.32660634991389-0.0266063499138856
88.78.93438927768873-0.234389277688728
98.28.2146230570986-0.0146230570986028
108.38.151405924775470.148594075224525
118.58.52003174841626-0.0200317484162625
128.68.564872757773180.0351272422268162
138.58.485873480110260.0141265198897422
148.28.25277173811828-0.0527717381182817
158.17.926440168590920.173559831409081
167.98.0419949947903-0.141994994790301
178.68.53365640788510.0663435921149009
188.78.636178766184150.063821233815846
198.78.539344550947830.160655449052165
208.58.434899377147220.0651006228527828
218.48.273861231412470.126138768587527
228.58.481600275520180.0183997244798171
238.78.562454200736430.137545799263574
248.78.607295210093350.0927047899066517
258.68.388613913716580.211386086283422
268.58.227455146330740.272544853669264
278.38.180487614231070.119512385768936
2888.01247447250433-0.0124744725043315
298.28.43639684149142-0.236396841491418
308.17.912452080827390.187547919172614
318.17.895968701194060.204031298805944
3287.935409476605710.0645905233942918
337.97.9140533495848-0.0140533495848079
347.98.04984941908638-0.149849419086383
3587.991021325588780.0089786744112186
3687.9681232908380.0318767091620054
377.97.821384969067360.0786150309326401
3887.660226201681520.339773798318482
397.77.89262270700953-0.192622707009535
407.27.44104159735669-0.241041597356686
417.57.65754290352222-0.15754290352222
427.37.4171661107843-0.117166110784304
4377.18905773783099-0.189057737830992
4476.881395431707250.118604568292753
4577.2155502472186-0.215550247218598
467.27.41908536082788-0.219085360827881
477.37.42649272525853-0.12649272525853
487.17.25970874129547-0.159708741295472
496.86.83360638209715-0.0336063820971483
506.46.53696952649589-0.136969526495887
516.16.21484188746695-0.114841887466954
526.56.122975650844780.37702434915522
537.77.596615125434920.103384874565084
547.97.96588972966638-0.0658897296663827
557.57.64902266011323-0.149022660113232
566.96.9139064368511-0.0139064368510995
576.66.481912114685520.118087885314481
586.96.698059019790080.201940980209921

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.3 & 8.57052125500866 & -0.270521255008656 \tabularnewline
2 & 7.5 & 7.92257738737358 & -0.422577387373576 \tabularnewline
3 & 7.2 & 7.18560762270153 & 0.0143923772984707 \tabularnewline
4 & 7.4 & 7.3815132845039 & 0.0184867154960978 \tabularnewline
5 & 8.8 & 8.57578872166635 & 0.224211278333653 \tabularnewline
6 & 9.3 & 9.36831331253777 & -0.0683133125377741 \tabularnewline
7 & 9.3 & 9.32660634991389 & -0.0266063499138856 \tabularnewline
8 & 8.7 & 8.93438927768873 & -0.234389277688728 \tabularnewline
9 & 8.2 & 8.2146230570986 & -0.0146230570986028 \tabularnewline
10 & 8.3 & 8.15140592477547 & 0.148594075224525 \tabularnewline
11 & 8.5 & 8.52003174841626 & -0.0200317484162625 \tabularnewline
12 & 8.6 & 8.56487275777318 & 0.0351272422268162 \tabularnewline
13 & 8.5 & 8.48587348011026 & 0.0141265198897422 \tabularnewline
14 & 8.2 & 8.25277173811828 & -0.0527717381182817 \tabularnewline
15 & 8.1 & 7.92644016859092 & 0.173559831409081 \tabularnewline
16 & 7.9 & 8.0419949947903 & -0.141994994790301 \tabularnewline
17 & 8.6 & 8.5336564078851 & 0.0663435921149009 \tabularnewline
18 & 8.7 & 8.63617876618415 & 0.063821233815846 \tabularnewline
19 & 8.7 & 8.53934455094783 & 0.160655449052165 \tabularnewline
20 & 8.5 & 8.43489937714722 & 0.0651006228527828 \tabularnewline
21 & 8.4 & 8.27386123141247 & 0.126138768587527 \tabularnewline
22 & 8.5 & 8.48160027552018 & 0.0183997244798171 \tabularnewline
23 & 8.7 & 8.56245420073643 & 0.137545799263574 \tabularnewline
24 & 8.7 & 8.60729521009335 & 0.0927047899066517 \tabularnewline
25 & 8.6 & 8.38861391371658 & 0.211386086283422 \tabularnewline
26 & 8.5 & 8.22745514633074 & 0.272544853669264 \tabularnewline
27 & 8.3 & 8.18048761423107 & 0.119512385768936 \tabularnewline
28 & 8 & 8.01247447250433 & -0.0124744725043315 \tabularnewline
29 & 8.2 & 8.43639684149142 & -0.236396841491418 \tabularnewline
30 & 8.1 & 7.91245208082739 & 0.187547919172614 \tabularnewline
31 & 8.1 & 7.89596870119406 & 0.204031298805944 \tabularnewline
32 & 8 & 7.93540947660571 & 0.0645905233942918 \tabularnewline
33 & 7.9 & 7.9140533495848 & -0.0140533495848079 \tabularnewline
34 & 7.9 & 8.04984941908638 & -0.149849419086383 \tabularnewline
35 & 8 & 7.99102132558878 & 0.0089786744112186 \tabularnewline
36 & 8 & 7.968123290838 & 0.0318767091620054 \tabularnewline
37 & 7.9 & 7.82138496906736 & 0.0786150309326401 \tabularnewline
38 & 8 & 7.66022620168152 & 0.339773798318482 \tabularnewline
39 & 7.7 & 7.89262270700953 & -0.192622707009535 \tabularnewline
40 & 7.2 & 7.44104159735669 & -0.241041597356686 \tabularnewline
41 & 7.5 & 7.65754290352222 & -0.15754290352222 \tabularnewline
42 & 7.3 & 7.4171661107843 & -0.117166110784304 \tabularnewline
43 & 7 & 7.18905773783099 & -0.189057737830992 \tabularnewline
44 & 7 & 6.88139543170725 & 0.118604568292753 \tabularnewline
45 & 7 & 7.2155502472186 & -0.215550247218598 \tabularnewline
46 & 7.2 & 7.41908536082788 & -0.219085360827881 \tabularnewline
47 & 7.3 & 7.42649272525853 & -0.12649272525853 \tabularnewline
48 & 7.1 & 7.25970874129547 & -0.159708741295472 \tabularnewline
49 & 6.8 & 6.83360638209715 & -0.0336063820971483 \tabularnewline
50 & 6.4 & 6.53696952649589 & -0.136969526495887 \tabularnewline
51 & 6.1 & 6.21484188746695 & -0.114841887466954 \tabularnewline
52 & 6.5 & 6.12297565084478 & 0.37702434915522 \tabularnewline
53 & 7.7 & 7.59661512543492 & 0.103384874565084 \tabularnewline
54 & 7.9 & 7.96588972966638 & -0.0658897296663827 \tabularnewline
55 & 7.5 & 7.64902266011323 & -0.149022660113232 \tabularnewline
56 & 6.9 & 6.9139064368511 & -0.0139064368510995 \tabularnewline
57 & 6.6 & 6.48191211468552 & 0.118087885314481 \tabularnewline
58 & 6.9 & 6.69805901979008 & 0.201940980209921 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64372&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.3[/C][C]8.57052125500866[/C][C]-0.270521255008656[/C][/ROW]
[ROW][C]2[/C][C]7.5[/C][C]7.92257738737358[/C][C]-0.422577387373576[/C][/ROW]
[ROW][C]3[/C][C]7.2[/C][C]7.18560762270153[/C][C]0.0143923772984707[/C][/ROW]
[ROW][C]4[/C][C]7.4[/C][C]7.3815132845039[/C][C]0.0184867154960978[/C][/ROW]
[ROW][C]5[/C][C]8.8[/C][C]8.57578872166635[/C][C]0.224211278333653[/C][/ROW]
[ROW][C]6[/C][C]9.3[/C][C]9.36831331253777[/C][C]-0.0683133125377741[/C][/ROW]
[ROW][C]7[/C][C]9.3[/C][C]9.32660634991389[/C][C]-0.0266063499138856[/C][/ROW]
[ROW][C]8[/C][C]8.7[/C][C]8.93438927768873[/C][C]-0.234389277688728[/C][/ROW]
[ROW][C]9[/C][C]8.2[/C][C]8.2146230570986[/C][C]-0.0146230570986028[/C][/ROW]
[ROW][C]10[/C][C]8.3[/C][C]8.15140592477547[/C][C]0.148594075224525[/C][/ROW]
[ROW][C]11[/C][C]8.5[/C][C]8.52003174841626[/C][C]-0.0200317484162625[/C][/ROW]
[ROW][C]12[/C][C]8.6[/C][C]8.56487275777318[/C][C]0.0351272422268162[/C][/ROW]
[ROW][C]13[/C][C]8.5[/C][C]8.48587348011026[/C][C]0.0141265198897422[/C][/ROW]
[ROW][C]14[/C][C]8.2[/C][C]8.25277173811828[/C][C]-0.0527717381182817[/C][/ROW]
[ROW][C]15[/C][C]8.1[/C][C]7.92644016859092[/C][C]0.173559831409081[/C][/ROW]
[ROW][C]16[/C][C]7.9[/C][C]8.0419949947903[/C][C]-0.141994994790301[/C][/ROW]
[ROW][C]17[/C][C]8.6[/C][C]8.5336564078851[/C][C]0.0663435921149009[/C][/ROW]
[ROW][C]18[/C][C]8.7[/C][C]8.63617876618415[/C][C]0.063821233815846[/C][/ROW]
[ROW][C]19[/C][C]8.7[/C][C]8.53934455094783[/C][C]0.160655449052165[/C][/ROW]
[ROW][C]20[/C][C]8.5[/C][C]8.43489937714722[/C][C]0.0651006228527828[/C][/ROW]
[ROW][C]21[/C][C]8.4[/C][C]8.27386123141247[/C][C]0.126138768587527[/C][/ROW]
[ROW][C]22[/C][C]8.5[/C][C]8.48160027552018[/C][C]0.0183997244798171[/C][/ROW]
[ROW][C]23[/C][C]8.7[/C][C]8.56245420073643[/C][C]0.137545799263574[/C][/ROW]
[ROW][C]24[/C][C]8.7[/C][C]8.60729521009335[/C][C]0.0927047899066517[/C][/ROW]
[ROW][C]25[/C][C]8.6[/C][C]8.38861391371658[/C][C]0.211386086283422[/C][/ROW]
[ROW][C]26[/C][C]8.5[/C][C]8.22745514633074[/C][C]0.272544853669264[/C][/ROW]
[ROW][C]27[/C][C]8.3[/C][C]8.18048761423107[/C][C]0.119512385768936[/C][/ROW]
[ROW][C]28[/C][C]8[/C][C]8.01247447250433[/C][C]-0.0124744725043315[/C][/ROW]
[ROW][C]29[/C][C]8.2[/C][C]8.43639684149142[/C][C]-0.236396841491418[/C][/ROW]
[ROW][C]30[/C][C]8.1[/C][C]7.91245208082739[/C][C]0.187547919172614[/C][/ROW]
[ROW][C]31[/C][C]8.1[/C][C]7.89596870119406[/C][C]0.204031298805944[/C][/ROW]
[ROW][C]32[/C][C]8[/C][C]7.93540947660571[/C][C]0.0645905233942918[/C][/ROW]
[ROW][C]33[/C][C]7.9[/C][C]7.9140533495848[/C][C]-0.0140533495848079[/C][/ROW]
[ROW][C]34[/C][C]7.9[/C][C]8.04984941908638[/C][C]-0.149849419086383[/C][/ROW]
[ROW][C]35[/C][C]8[/C][C]7.99102132558878[/C][C]0.0089786744112186[/C][/ROW]
[ROW][C]36[/C][C]8[/C][C]7.968123290838[/C][C]0.0318767091620054[/C][/ROW]
[ROW][C]37[/C][C]7.9[/C][C]7.82138496906736[/C][C]0.0786150309326401[/C][/ROW]
[ROW][C]38[/C][C]8[/C][C]7.66022620168152[/C][C]0.339773798318482[/C][/ROW]
[ROW][C]39[/C][C]7.7[/C][C]7.89262270700953[/C][C]-0.192622707009535[/C][/ROW]
[ROW][C]40[/C][C]7.2[/C][C]7.44104159735669[/C][C]-0.241041597356686[/C][/ROW]
[ROW][C]41[/C][C]7.5[/C][C]7.65754290352222[/C][C]-0.15754290352222[/C][/ROW]
[ROW][C]42[/C][C]7.3[/C][C]7.4171661107843[/C][C]-0.117166110784304[/C][/ROW]
[ROW][C]43[/C][C]7[/C][C]7.18905773783099[/C][C]-0.189057737830992[/C][/ROW]
[ROW][C]44[/C][C]7[/C][C]6.88139543170725[/C][C]0.118604568292753[/C][/ROW]
[ROW][C]45[/C][C]7[/C][C]7.2155502472186[/C][C]-0.215550247218598[/C][/ROW]
[ROW][C]46[/C][C]7.2[/C][C]7.41908536082788[/C][C]-0.219085360827881[/C][/ROW]
[ROW][C]47[/C][C]7.3[/C][C]7.42649272525853[/C][C]-0.12649272525853[/C][/ROW]
[ROW][C]48[/C][C]7.1[/C][C]7.25970874129547[/C][C]-0.159708741295472[/C][/ROW]
[ROW][C]49[/C][C]6.8[/C][C]6.83360638209715[/C][C]-0.0336063820971483[/C][/ROW]
[ROW][C]50[/C][C]6.4[/C][C]6.53696952649589[/C][C]-0.136969526495887[/C][/ROW]
[ROW][C]51[/C][C]6.1[/C][C]6.21484188746695[/C][C]-0.114841887466954[/C][/ROW]
[ROW][C]52[/C][C]6.5[/C][C]6.12297565084478[/C][C]0.37702434915522[/C][/ROW]
[ROW][C]53[/C][C]7.7[/C][C]7.59661512543492[/C][C]0.103384874565084[/C][/ROW]
[ROW][C]54[/C][C]7.9[/C][C]7.96588972966638[/C][C]-0.0658897296663827[/C][/ROW]
[ROW][C]55[/C][C]7.5[/C][C]7.64902266011323[/C][C]-0.149022660113232[/C][/ROW]
[ROW][C]56[/C][C]6.9[/C][C]6.9139064368511[/C][C]-0.0139064368510995[/C][/ROW]
[ROW][C]57[/C][C]6.6[/C][C]6.48191211468552[/C][C]0.118087885314481[/C][/ROW]
[ROW][C]58[/C][C]6.9[/C][C]6.69805901979008[/C][C]0.201940980209921[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64372&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64372&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.38.57052125500866-0.270521255008656
27.57.92257738737358-0.422577387373576
37.27.185607622701530.0143923772984707
47.47.38151328450390.0184867154960978
58.88.575788721666350.224211278333653
69.39.36831331253777-0.0683133125377741
79.39.32660634991389-0.0266063499138856
88.78.93438927768873-0.234389277688728
98.28.2146230570986-0.0146230570986028
108.38.151405924775470.148594075224525
118.58.52003174841626-0.0200317484162625
128.68.564872757773180.0351272422268162
138.58.485873480110260.0141265198897422
148.28.25277173811828-0.0527717381182817
158.17.926440168590920.173559831409081
167.98.0419949947903-0.141994994790301
178.68.53365640788510.0663435921149009
188.78.636178766184150.063821233815846
198.78.539344550947830.160655449052165
208.58.434899377147220.0651006228527828
218.48.273861231412470.126138768587527
228.58.481600275520180.0183997244798171
238.78.562454200736430.137545799263574
248.78.607295210093350.0927047899066517
258.68.388613913716580.211386086283422
268.58.227455146330740.272544853669264
278.38.180487614231070.119512385768936
2888.01247447250433-0.0124744725043315
298.28.43639684149142-0.236396841491418
308.17.912452080827390.187547919172614
318.17.895968701194060.204031298805944
3287.935409476605710.0645905233942918
337.97.9140533495848-0.0140533495848079
347.98.04984941908638-0.149849419086383
3587.991021325588780.0089786744112186
3687.9681232908380.0318767091620054
377.97.821384969067360.0786150309326401
3887.660226201681520.339773798318482
397.77.89262270700953-0.192622707009535
407.27.44104159735669-0.241041597356686
417.57.65754290352222-0.15754290352222
427.37.4171661107843-0.117166110784304
4377.18905773783099-0.189057737830992
4476.881395431707250.118604568292753
4577.2155502472186-0.215550247218598
467.27.41908536082788-0.219085360827881
477.37.42649272525853-0.12649272525853
487.17.25970874129547-0.159708741295472
496.86.83360638209715-0.0336063820971483
506.46.53696952649589-0.136969526495887
516.16.21484188746695-0.114841887466954
526.56.122975650844780.37702434915522
537.77.596615125434920.103384874565084
547.97.96588972966638-0.0658897296663827
557.57.64902266011323-0.149022660113232
566.96.9139064368511-0.0139064368510995
576.66.481912114685520.118087885314481
586.96.698059019790080.201940980209921







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.1285521768580670.2571043537161350.871447823141933
200.06775917350516010.1355183470103200.93224082649484
210.07415434057287780.1483086811457560.925845659427122
220.1401149376016670.2802298752033340.859885062398333
230.08308642823235030.1661728564647010.91691357176765
240.04199370642390440.08398741284780890.958006293576096
250.02936220410098520.05872440820197050.970637795899015
260.05468737493824190.1093747498764840.945312625061758
270.04468804719969130.08937609439938270.95531195280031
280.0232942625502780.0465885251005560.976705737449722
290.09945411645453140.1989082329090630.900545883545468
300.06516945700286670.1303389140057330.934830542997133
310.08639576662706550.1727915332541310.913604233372935
320.0732225269726640.1464450539453280.926777473027336
330.0927330587272080.1854661174544160.907266941272792
340.1082150407215920.2164300814431840.891784959278408
350.08188905918730150.1637781183746030.918110940812699
360.06659071972096420.1331814394419280.933409280279036
370.04483715924323770.08967431848647530.955162840756762
380.3662309092001540.7324618184003070.633769090799846
390.858954997183490.282090005633020.14104500281651

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
19 & 0.128552176858067 & 0.257104353716135 & 0.871447823141933 \tabularnewline
20 & 0.0677591735051601 & 0.135518347010320 & 0.93224082649484 \tabularnewline
21 & 0.0741543405728778 & 0.148308681145756 & 0.925845659427122 \tabularnewline
22 & 0.140114937601667 & 0.280229875203334 & 0.859885062398333 \tabularnewline
23 & 0.0830864282323503 & 0.166172856464701 & 0.91691357176765 \tabularnewline
24 & 0.0419937064239044 & 0.0839874128478089 & 0.958006293576096 \tabularnewline
25 & 0.0293622041009852 & 0.0587244082019705 & 0.970637795899015 \tabularnewline
26 & 0.0546873749382419 & 0.109374749876484 & 0.945312625061758 \tabularnewline
27 & 0.0446880471996913 & 0.0893760943993827 & 0.95531195280031 \tabularnewline
28 & 0.023294262550278 & 0.046588525100556 & 0.976705737449722 \tabularnewline
29 & 0.0994541164545314 & 0.198908232909063 & 0.900545883545468 \tabularnewline
30 & 0.0651694570028667 & 0.130338914005733 & 0.934830542997133 \tabularnewline
31 & 0.0863957666270655 & 0.172791533254131 & 0.913604233372935 \tabularnewline
32 & 0.073222526972664 & 0.146445053945328 & 0.926777473027336 \tabularnewline
33 & 0.092733058727208 & 0.185466117454416 & 0.907266941272792 \tabularnewline
34 & 0.108215040721592 & 0.216430081443184 & 0.891784959278408 \tabularnewline
35 & 0.0818890591873015 & 0.163778118374603 & 0.918110940812699 \tabularnewline
36 & 0.0665907197209642 & 0.133181439441928 & 0.933409280279036 \tabularnewline
37 & 0.0448371592432377 & 0.0896743184864753 & 0.955162840756762 \tabularnewline
38 & 0.366230909200154 & 0.732461818400307 & 0.633769090799846 \tabularnewline
39 & 0.85895499718349 & 0.28209000563302 & 0.14104500281651 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64372&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]19[/C][C]0.128552176858067[/C][C]0.257104353716135[/C][C]0.871447823141933[/C][/ROW]
[ROW][C]20[/C][C]0.0677591735051601[/C][C]0.135518347010320[/C][C]0.93224082649484[/C][/ROW]
[ROW][C]21[/C][C]0.0741543405728778[/C][C]0.148308681145756[/C][C]0.925845659427122[/C][/ROW]
[ROW][C]22[/C][C]0.140114937601667[/C][C]0.280229875203334[/C][C]0.859885062398333[/C][/ROW]
[ROW][C]23[/C][C]0.0830864282323503[/C][C]0.166172856464701[/C][C]0.91691357176765[/C][/ROW]
[ROW][C]24[/C][C]0.0419937064239044[/C][C]0.0839874128478089[/C][C]0.958006293576096[/C][/ROW]
[ROW][C]25[/C][C]0.0293622041009852[/C][C]0.0587244082019705[/C][C]0.970637795899015[/C][/ROW]
[ROW][C]26[/C][C]0.0546873749382419[/C][C]0.109374749876484[/C][C]0.945312625061758[/C][/ROW]
[ROW][C]27[/C][C]0.0446880471996913[/C][C]0.0893760943993827[/C][C]0.95531195280031[/C][/ROW]
[ROW][C]28[/C][C]0.023294262550278[/C][C]0.046588525100556[/C][C]0.976705737449722[/C][/ROW]
[ROW][C]29[/C][C]0.0994541164545314[/C][C]0.198908232909063[/C][C]0.900545883545468[/C][/ROW]
[ROW][C]30[/C][C]0.0651694570028667[/C][C]0.130338914005733[/C][C]0.934830542997133[/C][/ROW]
[ROW][C]31[/C][C]0.0863957666270655[/C][C]0.172791533254131[/C][C]0.913604233372935[/C][/ROW]
[ROW][C]32[/C][C]0.073222526972664[/C][C]0.146445053945328[/C][C]0.926777473027336[/C][/ROW]
[ROW][C]33[/C][C]0.092733058727208[/C][C]0.185466117454416[/C][C]0.907266941272792[/C][/ROW]
[ROW][C]34[/C][C]0.108215040721592[/C][C]0.216430081443184[/C][C]0.891784959278408[/C][/ROW]
[ROW][C]35[/C][C]0.0818890591873015[/C][C]0.163778118374603[/C][C]0.918110940812699[/C][/ROW]
[ROW][C]36[/C][C]0.0665907197209642[/C][C]0.133181439441928[/C][C]0.933409280279036[/C][/ROW]
[ROW][C]37[/C][C]0.0448371592432377[/C][C]0.0896743184864753[/C][C]0.955162840756762[/C][/ROW]
[ROW][C]38[/C][C]0.366230909200154[/C][C]0.732461818400307[/C][C]0.633769090799846[/C][/ROW]
[ROW][C]39[/C][C]0.85895499718349[/C][C]0.28209000563302[/C][C]0.14104500281651[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64372&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.1285521768580670.2571043537161350.871447823141933
200.06775917350516010.1355183470103200.93224082649484
210.07415434057287780.1483086811457560.925845659427122
220.1401149376016670.2802298752033340.859885062398333
230.08308642823235030.1661728564647010.91691357176765
240.04199370642390440.08398741284780890.958006293576096
250.02936220410098520.05872440820197050.970637795899015
260.05468737493824190.1093747498764840.945312625061758
270.04468804719969130.08937609439938270.95531195280031
280.0232942625502780.0465885251005560.976705737449722
290.09945411645453140.1989082329090630.900545883545468
300.06516945700286670.1303389140057330.934830542997133
310.08639576662706550.1727915332541310.913604233372935
320.0732225269726640.1464450539453280.926777473027336
330.0927330587272080.1854661174544160.907266941272792
340.1082150407215920.2164300814431840.891784959278408
350.08188905918730150.1637781183746030.918110940812699
360.06659071972096420.1331814394419280.933409280279036
370.04483715924323770.08967431848647530.955162840756762
380.3662309092001540.7324618184003070.633769090799846
390.858954997183490.282090005633020.14104500281651







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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64372&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 level10.0476190476190476OK
10% type I error level50.238095238095238NOK



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