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 15:41:21 -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/t1258756911nlrgaffxxog73zi.htm/, Retrieved Wed, 24 Apr 2024 10:34:39 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58480, Retrieved Wed, 24 Apr 2024 10:34:39 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact128
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]
-   PD      [Multiple Regression] [Seatbelt Law part 3] [2009-11-20 22:41:21] [befe6dd6a614b6d3a2a74a47a0a4f514] [Current]
-   PD        [Multiple Regression] [] [2009-12-20 07:00:57] [5d885a68c2332cc44f6191ec94766bfa]
Feedback Forum

Post a new message
Dataseries X:
8.9	1,6
8.8	1,3
8.3	1,1
7.5	1,6
7.2	1,9
7.4	1,6
8.8	1,7
9.3	1,6
9.3	1,4
8.7	2,1
8.2	1,9
8.3	1,7
8.5	1,8
8.6	2
8.5	2,5
8.2	2,1
8.1	2,1
7.9	2,3
8.6	2,4
8.7	2,4
8.7	2,3
8.5	1,7
8.4	2
8.5	2,3
8.7	2
8.7	2
8.6	1,3
8.5	1,7
8.3	1,9
8	1,7
8.2	1,6
8.1	1,7
8.1	1,8
8	1,9
7.9	1,9
7.9	1,9
8	2
8	2,1
7.9	1,9
8	1,9
7.7	1,3
7.2	1,3
7.5	1,4
7.3	1,2
7	1,3
7	1,8
7	2,2
7.2	2,6
7.3	2,8
7.1	3,1
6.8	3,9
6.4	3,7
6.1	4,6
6.5	5,1
7.7	5,2
7.9	4,9
7.5	5,1
6.9	4,8
6.6	3,9
6.9	3,5




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58480&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
TWIB[t] = + 8.94570339635394 -0.0524066112185449GI[t] + 0.177266874857880M1[t] + 0.169853702904038M2[t] -0.0186076012741805M3[t] -0.286020773228028M4[t] -0.488193284060021M5[t] -0.536654588238240M6[t] + 0.255932239807913M7[t] + 0.380134010059099M8[t] + 0.270624573656509M9[t] + 0.00425953392703265M10[t] -0.170490563597411M11[t] -0.0294424313730398t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
TWIB[t] =  +  8.94570339635394 -0.0524066112185449GI[t] +  0.177266874857880M1[t] +  0.169853702904038M2[t] -0.0186076012741805M3[t] -0.286020773228028M4[t] -0.488193284060021M5[t] -0.536654588238240M6[t] +  0.255932239807913M7[t] +  0.380134010059099M8[t] +  0.270624573656509M9[t] +  0.00425953392703265M10[t] -0.170490563597411M11[t] -0.0294424313730398t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58480&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]TWIB[t] =  +  8.94570339635394 -0.0524066112185449GI[t] +  0.177266874857880M1[t] +  0.169853702904038M2[t] -0.0186076012741805M3[t] -0.286020773228028M4[t] -0.488193284060021M5[t] -0.536654588238240M6[t] +  0.255932239807913M7[t] +  0.380134010059099M8[t] +  0.270624573656509M9[t] +  0.00425953392703265M10[t] -0.170490563597411M11[t] -0.0294424313730398t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58480&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58480&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
TWIB[t] = + 8.94570339635394 -0.0524066112185449GI[t] + 0.177266874857880M1[t] + 0.169853702904038M2[t] -0.0186076012741805M3[t] -0.286020773228028M4[t] -0.488193284060021M5[t] -0.536654588238240M6[t] + 0.255932239807913M7[t] + 0.380134010059099M8[t] + 0.270624573656509M9[t] + 0.00425953392703265M10[t] -0.170490563597411M11[t] -0.0294424313730398t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)8.945703396353940.25340635.301900
GI-0.05240661121854490.073392-0.71410.4787970.239398
M10.1772668748578800.2959870.59890.5521770.276089
M20.1698537029040380.2955770.57470.5683280.284164
M3-0.01860760127418050.295177-0.0630.9500090.475004
M4-0.2860207732280280.294858-0.970.3371060.168553
M5-0.4881932840600210.294934-1.65530.1046790.052339
M6-0.5366545882382400.29466-1.82130.0750730.037537
M70.2559322398079130.2945190.8690.3893680.194684
M80.3801340100590990.2938451.29370.2022430.101121
M90.2706245736565090.2936570.92160.3615630.180781
M100.004259533927032650.2936390.01450.9884890.494245
M11-0.1704905635974110.2934-0.58110.564020.28201
t-0.02944243137303980.00458-6.427800

\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) & 8.94570339635394 & 0.253406 & 35.3019 & 0 & 0 \tabularnewline
GI & -0.0524066112185449 & 0.073392 & -0.7141 & 0.478797 & 0.239398 \tabularnewline
M1 & 0.177266874857880 & 0.295987 & 0.5989 & 0.552177 & 0.276089 \tabularnewline
M2 & 0.169853702904038 & 0.295577 & 0.5747 & 0.568328 & 0.284164 \tabularnewline
M3 & -0.0186076012741805 & 0.295177 & -0.063 & 0.950009 & 0.475004 \tabularnewline
M4 & -0.286020773228028 & 0.294858 & -0.97 & 0.337106 & 0.168553 \tabularnewline
M5 & -0.488193284060021 & 0.294934 & -1.6553 & 0.104679 & 0.052339 \tabularnewline
M6 & -0.536654588238240 & 0.29466 & -1.8213 & 0.075073 & 0.037537 \tabularnewline
M7 & 0.255932239807913 & 0.294519 & 0.869 & 0.389368 & 0.194684 \tabularnewline
M8 & 0.380134010059099 & 0.293845 & 1.2937 & 0.202243 & 0.101121 \tabularnewline
M9 & 0.270624573656509 & 0.293657 & 0.9216 & 0.361563 & 0.180781 \tabularnewline
M10 & 0.00425953392703265 & 0.293639 & 0.0145 & 0.988489 & 0.494245 \tabularnewline
M11 & -0.170490563597411 & 0.2934 & -0.5811 & 0.56402 & 0.28201 \tabularnewline
t & -0.0294424313730398 & 0.00458 & -6.4278 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58480&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]8.94570339635394[/C][C]0.253406[/C][C]35.3019[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]GI[/C][C]-0.0524066112185449[/C][C]0.073392[/C][C]-0.7141[/C][C]0.478797[/C][C]0.239398[/C][/ROW]
[ROW][C]M1[/C][C]0.177266874857880[/C][C]0.295987[/C][C]0.5989[/C][C]0.552177[/C][C]0.276089[/C][/ROW]
[ROW][C]M2[/C][C]0.169853702904038[/C][C]0.295577[/C][C]0.5747[/C][C]0.568328[/C][C]0.284164[/C][/ROW]
[ROW][C]M3[/C][C]-0.0186076012741805[/C][C]0.295177[/C][C]-0.063[/C][C]0.950009[/C][C]0.475004[/C][/ROW]
[ROW][C]M4[/C][C]-0.286020773228028[/C][C]0.294858[/C][C]-0.97[/C][C]0.337106[/C][C]0.168553[/C][/ROW]
[ROW][C]M5[/C][C]-0.488193284060021[/C][C]0.294934[/C][C]-1.6553[/C][C]0.104679[/C][C]0.052339[/C][/ROW]
[ROW][C]M6[/C][C]-0.536654588238240[/C][C]0.29466[/C][C]-1.8213[/C][C]0.075073[/C][C]0.037537[/C][/ROW]
[ROW][C]M7[/C][C]0.255932239807913[/C][C]0.294519[/C][C]0.869[/C][C]0.389368[/C][C]0.194684[/C][/ROW]
[ROW][C]M8[/C][C]0.380134010059099[/C][C]0.293845[/C][C]1.2937[/C][C]0.202243[/C][C]0.101121[/C][/ROW]
[ROW][C]M9[/C][C]0.270624573656509[/C][C]0.293657[/C][C]0.9216[/C][C]0.361563[/C][C]0.180781[/C][/ROW]
[ROW][C]M10[/C][C]0.00425953392703265[/C][C]0.293639[/C][C]0.0145[/C][C]0.988489[/C][C]0.494245[/C][/ROW]
[ROW][C]M11[/C][C]-0.170490563597411[/C][C]0.2934[/C][C]-0.5811[/C][C]0.56402[/C][C]0.28201[/C][/ROW]
[ROW][C]t[/C][C]-0.0294424313730398[/C][C]0.00458[/C][C]-6.4278[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58480&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58480&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)8.945703396353940.25340635.301900
GI-0.05240661121854490.073392-0.71410.4787970.239398
M10.1772668748578800.2959870.59890.5521770.276089
M20.1698537029040380.2955770.57470.5683280.284164
M3-0.01860760127418050.295177-0.0630.9500090.475004
M4-0.2860207732280280.294858-0.970.3371060.168553
M5-0.4881932840600210.294934-1.65530.1046790.052339
M6-0.5366545882382400.29466-1.82130.0750730.037537
M70.2559322398079130.2945190.8690.3893680.194684
M80.3801340100590990.2938451.29370.2022430.101121
M90.2706245736565090.2936570.92160.3615630.180781
M100.004259533927032650.2936390.01450.9884890.494245
M11-0.1704905635974110.2934-0.58110.564020.28201
t-0.02944243137303980.00458-6.427800







Multiple Linear Regression - Regression Statistics
Multiple R0.834480053008709
R-squared0.696356958869417
Adjusted R-squared0.610544795071644
F-TEST (value)8.11489802903078
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value4.13355589756748e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.463867330782165
Sum Squared Residuals9.89795342608065

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.834480053008709 \tabularnewline
R-squared & 0.696356958869417 \tabularnewline
Adjusted R-squared & 0.610544795071644 \tabularnewline
F-TEST (value) & 8.11489802903078 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 4.13355589756748e-08 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.463867330782165 \tabularnewline
Sum Squared Residuals & 9.89795342608065 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58480&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.834480053008709[/C][/ROW]
[ROW][C]R-squared[/C][C]0.696356958869417[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.610544795071644[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]8.11489802903078[/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]4.13355589756748e-08[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.463867330782165[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]9.89795342608065[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58480&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58480&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.834480053008709
R-squared0.696356958869417
Adjusted R-squared0.610544795071644
F-TEST (value)8.11489802903078
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value4.13355589756748e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.463867330782165
Sum Squared Residuals9.89795342608065







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
18.99.00967726188914-0.109677261889136
28.88.9885436419278-0.18854364192779
38.38.78112122862024-0.481121228620242
47.58.45806231968408-0.958062319684083
57.28.21072539411349-1.01072539411349
67.48.14854364192779-0.748543641927792
78.88.90644737747905-0.106447377479049
89.39.006447377479050.293552622520952
99.38.877976831947130.422023168052872
108.78.545484732991630.154515267008368
118.28.35177352633786-0.151773526337857
128.38.50330298080594-0.203302980805937
138.58.64588676316892-0.145886763168923
148.68.598549837598330.00145016240166682
158.58.35444279643780.145557203562198
168.28.078549837598330.121450162401667
178.17.84693489539330.2530651046067
187.97.758549837598330.141450162401668
198.68.516453573149590.083546426850409
208.78.611212912027740.0887870879722631
218.78.477501705373960.222498294626038
228.58.213138201002570.286861798997428
238.47.993223688739520.406776311260475
248.58.118549837598330.381450162401667
258.78.282096264448740.417903735551263
268.78.245240661121850.454759338878145
278.68.064021553423580.535978446576422
288.57.746203305609270.753796694390728
298.37.504107041160530.79589295883947
3087.436684627852980.563315372147018
318.28.20506968564795-0.00506968564794955
328.18.29458836340424-0.19458836340424
338.18.15039583450676-0.0503958345067563
3487.849347702282380.150652297717615
357.97.64515517338490.254844826615099
367.97.786203305609270.113796694390728
3787.928787087972260.0712129120277414
3887.886690823523520.113309176476478
397.97.679268410215970.220731589784027
4087.382412806889090.617587193110915
417.77.182241831415180.517758168584821
427.27.104338095863920.0956619041360786
437.57.86224183141518-0.362241831415179
447.37.96748249253703-0.667482492537034
4577.82328996363955-0.82328996363955
4677.50127918692776-0.501279186927762
4777.27612401354286-0.27612401354286
487.27.39620950127981-0.196209501279814
497.37.53355262252095-0.233552622520945
507.17.4809750358285-0.380975035828500
516.87.2211460113024-0.421146011302406
526.46.93477173021923-0.534771730219227
536.16.6559908379175-0.555990837917504
546.56.55188379675697-0.0518837967569736
557.77.309787532308230.390212467691769
567.97.420268854551940.47973114544806
577.57.27083566453260.229164335467398
586.96.99075017679565-0.090750176795649
596.66.83372359799486-0.233723597994856
606.96.99573437470665-0.0957343747066452

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 8.9 & 9.00967726188914 & -0.109677261889136 \tabularnewline
2 & 8.8 & 8.9885436419278 & -0.18854364192779 \tabularnewline
3 & 8.3 & 8.78112122862024 & -0.481121228620242 \tabularnewline
4 & 7.5 & 8.45806231968408 & -0.958062319684083 \tabularnewline
5 & 7.2 & 8.21072539411349 & -1.01072539411349 \tabularnewline
6 & 7.4 & 8.14854364192779 & -0.748543641927792 \tabularnewline
7 & 8.8 & 8.90644737747905 & -0.106447377479049 \tabularnewline
8 & 9.3 & 9.00644737747905 & 0.293552622520952 \tabularnewline
9 & 9.3 & 8.87797683194713 & 0.422023168052872 \tabularnewline
10 & 8.7 & 8.54548473299163 & 0.154515267008368 \tabularnewline
11 & 8.2 & 8.35177352633786 & -0.151773526337857 \tabularnewline
12 & 8.3 & 8.50330298080594 & -0.203302980805937 \tabularnewline
13 & 8.5 & 8.64588676316892 & -0.145886763168923 \tabularnewline
14 & 8.6 & 8.59854983759833 & 0.00145016240166682 \tabularnewline
15 & 8.5 & 8.3544427964378 & 0.145557203562198 \tabularnewline
16 & 8.2 & 8.07854983759833 & 0.121450162401667 \tabularnewline
17 & 8.1 & 7.8469348953933 & 0.2530651046067 \tabularnewline
18 & 7.9 & 7.75854983759833 & 0.141450162401668 \tabularnewline
19 & 8.6 & 8.51645357314959 & 0.083546426850409 \tabularnewline
20 & 8.7 & 8.61121291202774 & 0.0887870879722631 \tabularnewline
21 & 8.7 & 8.47750170537396 & 0.222498294626038 \tabularnewline
22 & 8.5 & 8.21313820100257 & 0.286861798997428 \tabularnewline
23 & 8.4 & 7.99322368873952 & 0.406776311260475 \tabularnewline
24 & 8.5 & 8.11854983759833 & 0.381450162401667 \tabularnewline
25 & 8.7 & 8.28209626444874 & 0.417903735551263 \tabularnewline
26 & 8.7 & 8.24524066112185 & 0.454759338878145 \tabularnewline
27 & 8.6 & 8.06402155342358 & 0.535978446576422 \tabularnewline
28 & 8.5 & 7.74620330560927 & 0.753796694390728 \tabularnewline
29 & 8.3 & 7.50410704116053 & 0.79589295883947 \tabularnewline
30 & 8 & 7.43668462785298 & 0.563315372147018 \tabularnewline
31 & 8.2 & 8.20506968564795 & -0.00506968564794955 \tabularnewline
32 & 8.1 & 8.29458836340424 & -0.19458836340424 \tabularnewline
33 & 8.1 & 8.15039583450676 & -0.0503958345067563 \tabularnewline
34 & 8 & 7.84934770228238 & 0.150652297717615 \tabularnewline
35 & 7.9 & 7.6451551733849 & 0.254844826615099 \tabularnewline
36 & 7.9 & 7.78620330560927 & 0.113796694390728 \tabularnewline
37 & 8 & 7.92878708797226 & 0.0712129120277414 \tabularnewline
38 & 8 & 7.88669082352352 & 0.113309176476478 \tabularnewline
39 & 7.9 & 7.67926841021597 & 0.220731589784027 \tabularnewline
40 & 8 & 7.38241280688909 & 0.617587193110915 \tabularnewline
41 & 7.7 & 7.18224183141518 & 0.517758168584821 \tabularnewline
42 & 7.2 & 7.10433809586392 & 0.0956619041360786 \tabularnewline
43 & 7.5 & 7.86224183141518 & -0.362241831415179 \tabularnewline
44 & 7.3 & 7.96748249253703 & -0.667482492537034 \tabularnewline
45 & 7 & 7.82328996363955 & -0.82328996363955 \tabularnewline
46 & 7 & 7.50127918692776 & -0.501279186927762 \tabularnewline
47 & 7 & 7.27612401354286 & -0.27612401354286 \tabularnewline
48 & 7.2 & 7.39620950127981 & -0.196209501279814 \tabularnewline
49 & 7.3 & 7.53355262252095 & -0.233552622520945 \tabularnewline
50 & 7.1 & 7.4809750358285 & -0.380975035828500 \tabularnewline
51 & 6.8 & 7.2211460113024 & -0.421146011302406 \tabularnewline
52 & 6.4 & 6.93477173021923 & -0.534771730219227 \tabularnewline
53 & 6.1 & 6.6559908379175 & -0.555990837917504 \tabularnewline
54 & 6.5 & 6.55188379675697 & -0.0518837967569736 \tabularnewline
55 & 7.7 & 7.30978753230823 & 0.390212467691769 \tabularnewline
56 & 7.9 & 7.42026885455194 & 0.47973114544806 \tabularnewline
57 & 7.5 & 7.2708356645326 & 0.229164335467398 \tabularnewline
58 & 6.9 & 6.99075017679565 & -0.090750176795649 \tabularnewline
59 & 6.6 & 6.83372359799486 & -0.233723597994856 \tabularnewline
60 & 6.9 & 6.99573437470665 & -0.0957343747066452 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58480&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.9[/C][C]9.00967726188914[/C][C]-0.109677261889136[/C][/ROW]
[ROW][C]2[/C][C]8.8[/C][C]8.9885436419278[/C][C]-0.18854364192779[/C][/ROW]
[ROW][C]3[/C][C]8.3[/C][C]8.78112122862024[/C][C]-0.481121228620242[/C][/ROW]
[ROW][C]4[/C][C]7.5[/C][C]8.45806231968408[/C][C]-0.958062319684083[/C][/ROW]
[ROW][C]5[/C][C]7.2[/C][C]8.21072539411349[/C][C]-1.01072539411349[/C][/ROW]
[ROW][C]6[/C][C]7.4[/C][C]8.14854364192779[/C][C]-0.748543641927792[/C][/ROW]
[ROW][C]7[/C][C]8.8[/C][C]8.90644737747905[/C][C]-0.106447377479049[/C][/ROW]
[ROW][C]8[/C][C]9.3[/C][C]9.00644737747905[/C][C]0.293552622520952[/C][/ROW]
[ROW][C]9[/C][C]9.3[/C][C]8.87797683194713[/C][C]0.422023168052872[/C][/ROW]
[ROW][C]10[/C][C]8.7[/C][C]8.54548473299163[/C][C]0.154515267008368[/C][/ROW]
[ROW][C]11[/C][C]8.2[/C][C]8.35177352633786[/C][C]-0.151773526337857[/C][/ROW]
[ROW][C]12[/C][C]8.3[/C][C]8.50330298080594[/C][C]-0.203302980805937[/C][/ROW]
[ROW][C]13[/C][C]8.5[/C][C]8.64588676316892[/C][C]-0.145886763168923[/C][/ROW]
[ROW][C]14[/C][C]8.6[/C][C]8.59854983759833[/C][C]0.00145016240166682[/C][/ROW]
[ROW][C]15[/C][C]8.5[/C][C]8.3544427964378[/C][C]0.145557203562198[/C][/ROW]
[ROW][C]16[/C][C]8.2[/C][C]8.07854983759833[/C][C]0.121450162401667[/C][/ROW]
[ROW][C]17[/C][C]8.1[/C][C]7.8469348953933[/C][C]0.2530651046067[/C][/ROW]
[ROW][C]18[/C][C]7.9[/C][C]7.75854983759833[/C][C]0.141450162401668[/C][/ROW]
[ROW][C]19[/C][C]8.6[/C][C]8.51645357314959[/C][C]0.083546426850409[/C][/ROW]
[ROW][C]20[/C][C]8.7[/C][C]8.61121291202774[/C][C]0.0887870879722631[/C][/ROW]
[ROW][C]21[/C][C]8.7[/C][C]8.47750170537396[/C][C]0.222498294626038[/C][/ROW]
[ROW][C]22[/C][C]8.5[/C][C]8.21313820100257[/C][C]0.286861798997428[/C][/ROW]
[ROW][C]23[/C][C]8.4[/C][C]7.99322368873952[/C][C]0.406776311260475[/C][/ROW]
[ROW][C]24[/C][C]8.5[/C][C]8.11854983759833[/C][C]0.381450162401667[/C][/ROW]
[ROW][C]25[/C][C]8.7[/C][C]8.28209626444874[/C][C]0.417903735551263[/C][/ROW]
[ROW][C]26[/C][C]8.7[/C][C]8.24524066112185[/C][C]0.454759338878145[/C][/ROW]
[ROW][C]27[/C][C]8.6[/C][C]8.06402155342358[/C][C]0.535978446576422[/C][/ROW]
[ROW][C]28[/C][C]8.5[/C][C]7.74620330560927[/C][C]0.753796694390728[/C][/ROW]
[ROW][C]29[/C][C]8.3[/C][C]7.50410704116053[/C][C]0.79589295883947[/C][/ROW]
[ROW][C]30[/C][C]8[/C][C]7.43668462785298[/C][C]0.563315372147018[/C][/ROW]
[ROW][C]31[/C][C]8.2[/C][C]8.20506968564795[/C][C]-0.00506968564794955[/C][/ROW]
[ROW][C]32[/C][C]8.1[/C][C]8.29458836340424[/C][C]-0.19458836340424[/C][/ROW]
[ROW][C]33[/C][C]8.1[/C][C]8.15039583450676[/C][C]-0.0503958345067563[/C][/ROW]
[ROW][C]34[/C][C]8[/C][C]7.84934770228238[/C][C]0.150652297717615[/C][/ROW]
[ROW][C]35[/C][C]7.9[/C][C]7.6451551733849[/C][C]0.254844826615099[/C][/ROW]
[ROW][C]36[/C][C]7.9[/C][C]7.78620330560927[/C][C]0.113796694390728[/C][/ROW]
[ROW][C]37[/C][C]8[/C][C]7.92878708797226[/C][C]0.0712129120277414[/C][/ROW]
[ROW][C]38[/C][C]8[/C][C]7.88669082352352[/C][C]0.113309176476478[/C][/ROW]
[ROW][C]39[/C][C]7.9[/C][C]7.67926841021597[/C][C]0.220731589784027[/C][/ROW]
[ROW][C]40[/C][C]8[/C][C]7.38241280688909[/C][C]0.617587193110915[/C][/ROW]
[ROW][C]41[/C][C]7.7[/C][C]7.18224183141518[/C][C]0.517758168584821[/C][/ROW]
[ROW][C]42[/C][C]7.2[/C][C]7.10433809586392[/C][C]0.0956619041360786[/C][/ROW]
[ROW][C]43[/C][C]7.5[/C][C]7.86224183141518[/C][C]-0.362241831415179[/C][/ROW]
[ROW][C]44[/C][C]7.3[/C][C]7.96748249253703[/C][C]-0.667482492537034[/C][/ROW]
[ROW][C]45[/C][C]7[/C][C]7.82328996363955[/C][C]-0.82328996363955[/C][/ROW]
[ROW][C]46[/C][C]7[/C][C]7.50127918692776[/C][C]-0.501279186927762[/C][/ROW]
[ROW][C]47[/C][C]7[/C][C]7.27612401354286[/C][C]-0.27612401354286[/C][/ROW]
[ROW][C]48[/C][C]7.2[/C][C]7.39620950127981[/C][C]-0.196209501279814[/C][/ROW]
[ROW][C]49[/C][C]7.3[/C][C]7.53355262252095[/C][C]-0.233552622520945[/C][/ROW]
[ROW][C]50[/C][C]7.1[/C][C]7.4809750358285[/C][C]-0.380975035828500[/C][/ROW]
[ROW][C]51[/C][C]6.8[/C][C]7.2211460113024[/C][C]-0.421146011302406[/C][/ROW]
[ROW][C]52[/C][C]6.4[/C][C]6.93477173021923[/C][C]-0.534771730219227[/C][/ROW]
[ROW][C]53[/C][C]6.1[/C][C]6.6559908379175[/C][C]-0.555990837917504[/C][/ROW]
[ROW][C]54[/C][C]6.5[/C][C]6.55188379675697[/C][C]-0.0518837967569736[/C][/ROW]
[ROW][C]55[/C][C]7.7[/C][C]7.30978753230823[/C][C]0.390212467691769[/C][/ROW]
[ROW][C]56[/C][C]7.9[/C][C]7.42026885455194[/C][C]0.47973114544806[/C][/ROW]
[ROW][C]57[/C][C]7.5[/C][C]7.2708356645326[/C][C]0.229164335467398[/C][/ROW]
[ROW][C]58[/C][C]6.9[/C][C]6.99075017679565[/C][C]-0.090750176795649[/C][/ROW]
[ROW][C]59[/C][C]6.6[/C][C]6.83372359799486[/C][C]-0.233723597994856[/C][/ROW]
[ROW][C]60[/C][C]6.9[/C][C]6.99573437470665[/C][C]-0.0957343747066452[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58480&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58480&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.99.00967726188914-0.109677261889136
28.88.9885436419278-0.18854364192779
38.38.78112122862024-0.481121228620242
47.58.45806231968408-0.958062319684083
57.28.21072539411349-1.01072539411349
67.48.14854364192779-0.748543641927792
78.88.90644737747905-0.106447377479049
89.39.006447377479050.293552622520952
99.38.877976831947130.422023168052872
108.78.545484732991630.154515267008368
118.28.35177352633786-0.151773526337857
128.38.50330298080594-0.203302980805937
138.58.64588676316892-0.145886763168923
148.68.598549837598330.00145016240166682
158.58.35444279643780.145557203562198
168.28.078549837598330.121450162401667
178.17.84693489539330.2530651046067
187.97.758549837598330.141450162401668
198.68.516453573149590.083546426850409
208.78.611212912027740.0887870879722631
218.78.477501705373960.222498294626038
228.58.213138201002570.286861798997428
238.47.993223688739520.406776311260475
248.58.118549837598330.381450162401667
258.78.282096264448740.417903735551263
268.78.245240661121850.454759338878145
278.68.064021553423580.535978446576422
288.57.746203305609270.753796694390728
298.37.504107041160530.79589295883947
3087.436684627852980.563315372147018
318.28.20506968564795-0.00506968564794955
328.18.29458836340424-0.19458836340424
338.18.15039583450676-0.0503958345067563
3487.849347702282380.150652297717615
357.97.64515517338490.254844826615099
367.97.786203305609270.113796694390728
3787.928787087972260.0712129120277414
3887.886690823523520.113309176476478
397.97.679268410215970.220731589784027
4087.382412806889090.617587193110915
417.77.182241831415180.517758168584821
427.27.104338095863920.0956619041360786
437.57.86224183141518-0.362241831415179
447.37.96748249253703-0.667482492537034
4577.82328996363955-0.82328996363955
4677.50127918692776-0.501279186927762
4777.27612401354286-0.27612401354286
487.27.39620950127981-0.196209501279814
497.37.53355262252095-0.233552622520945
507.17.4809750358285-0.380975035828500
516.87.2211460113024-0.421146011302406
526.46.93477173021923-0.534771730219227
536.16.6559908379175-0.555990837917504
546.56.55188379675697-0.0518837967569736
557.77.309787532308230.390212467691769
567.97.420268854551940.47973114544806
577.57.27083566453260.229164335467398
586.96.99075017679565-0.090750176795649
596.66.83372359799486-0.233723597994856
606.96.99573437470665-0.0957343747066452







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.7711442808622210.4577114382755580.228855719137779
180.6847892506984590.6304214986030830.315210749301542
190.6496290373039120.7007419253921760.350370962696088
200.7232098735610650.553580252877870.276790126438935
210.7158795263424340.5682409473151330.284120473657566
220.662452163166610.6750956736667810.337547836833391
230.5642957939569540.8714084120860910.435704206043046
240.4878616206455410.9757232412910820.512138379354459
250.3866373276945150.7732746553890310.613362672305485
260.2895824271285120.5791648542570240.710417572871488
270.2136176115882180.4272352231764370.786382388411782
280.2006074691530510.4012149383061030.799392530846949
290.1799760392378370.3599520784756750.820023960762163
300.1247751504895830.2495503009791670.875224849510417
310.1831151327506480.3662302655012950.816884867249352
320.3308652117283970.6617304234567930.669134788271603
330.3810897746144110.7621795492288210.618910225385589
340.3283713590034430.6567427180068860.671628640996557
350.2511769981725280.5023539963450560.748823001827472
360.213117782654660.426235565309320.78688221734534
370.1746274919087160.3492549838174320.825372508091284
380.1284349973713550.2568699947427090.871565002628645
390.09469139426403070.1893827885280610.90530860573597
400.1377272147953050.2754544295906090.862272785204695
410.6101463017909810.7797073964180380.389853698209019
420.942417543834550.1151649123308990.0575824561654493
430.8969920874382210.2060158251235570.103007912561779

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.771144280862221 & 0.457711438275558 & 0.228855719137779 \tabularnewline
18 & 0.684789250698459 & 0.630421498603083 & 0.315210749301542 \tabularnewline
19 & 0.649629037303912 & 0.700741925392176 & 0.350370962696088 \tabularnewline
20 & 0.723209873561065 & 0.55358025287787 & 0.276790126438935 \tabularnewline
21 & 0.715879526342434 & 0.568240947315133 & 0.284120473657566 \tabularnewline
22 & 0.66245216316661 & 0.675095673666781 & 0.337547836833391 \tabularnewline
23 & 0.564295793956954 & 0.871408412086091 & 0.435704206043046 \tabularnewline
24 & 0.487861620645541 & 0.975723241291082 & 0.512138379354459 \tabularnewline
25 & 0.386637327694515 & 0.773274655389031 & 0.613362672305485 \tabularnewline
26 & 0.289582427128512 & 0.579164854257024 & 0.710417572871488 \tabularnewline
27 & 0.213617611588218 & 0.427235223176437 & 0.786382388411782 \tabularnewline
28 & 0.200607469153051 & 0.401214938306103 & 0.799392530846949 \tabularnewline
29 & 0.179976039237837 & 0.359952078475675 & 0.820023960762163 \tabularnewline
30 & 0.124775150489583 & 0.249550300979167 & 0.875224849510417 \tabularnewline
31 & 0.183115132750648 & 0.366230265501295 & 0.816884867249352 \tabularnewline
32 & 0.330865211728397 & 0.661730423456793 & 0.669134788271603 \tabularnewline
33 & 0.381089774614411 & 0.762179549228821 & 0.618910225385589 \tabularnewline
34 & 0.328371359003443 & 0.656742718006886 & 0.671628640996557 \tabularnewline
35 & 0.251176998172528 & 0.502353996345056 & 0.748823001827472 \tabularnewline
36 & 0.21311778265466 & 0.42623556530932 & 0.78688221734534 \tabularnewline
37 & 0.174627491908716 & 0.349254983817432 & 0.825372508091284 \tabularnewline
38 & 0.128434997371355 & 0.256869994742709 & 0.871565002628645 \tabularnewline
39 & 0.0946913942640307 & 0.189382788528061 & 0.90530860573597 \tabularnewline
40 & 0.137727214795305 & 0.275454429590609 & 0.862272785204695 \tabularnewline
41 & 0.610146301790981 & 0.779707396418038 & 0.389853698209019 \tabularnewline
42 & 0.94241754383455 & 0.115164912330899 & 0.0575824561654493 \tabularnewline
43 & 0.896992087438221 & 0.206015825123557 & 0.103007912561779 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58480&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.771144280862221[/C][C]0.457711438275558[/C][C]0.228855719137779[/C][/ROW]
[ROW][C]18[/C][C]0.684789250698459[/C][C]0.630421498603083[/C][C]0.315210749301542[/C][/ROW]
[ROW][C]19[/C][C]0.649629037303912[/C][C]0.700741925392176[/C][C]0.350370962696088[/C][/ROW]
[ROW][C]20[/C][C]0.723209873561065[/C][C]0.55358025287787[/C][C]0.276790126438935[/C][/ROW]
[ROW][C]21[/C][C]0.715879526342434[/C][C]0.568240947315133[/C][C]0.284120473657566[/C][/ROW]
[ROW][C]22[/C][C]0.66245216316661[/C][C]0.675095673666781[/C][C]0.337547836833391[/C][/ROW]
[ROW][C]23[/C][C]0.564295793956954[/C][C]0.871408412086091[/C][C]0.435704206043046[/C][/ROW]
[ROW][C]24[/C][C]0.487861620645541[/C][C]0.975723241291082[/C][C]0.512138379354459[/C][/ROW]
[ROW][C]25[/C][C]0.386637327694515[/C][C]0.773274655389031[/C][C]0.613362672305485[/C][/ROW]
[ROW][C]26[/C][C]0.289582427128512[/C][C]0.579164854257024[/C][C]0.710417572871488[/C][/ROW]
[ROW][C]27[/C][C]0.213617611588218[/C][C]0.427235223176437[/C][C]0.786382388411782[/C][/ROW]
[ROW][C]28[/C][C]0.200607469153051[/C][C]0.401214938306103[/C][C]0.799392530846949[/C][/ROW]
[ROW][C]29[/C][C]0.179976039237837[/C][C]0.359952078475675[/C][C]0.820023960762163[/C][/ROW]
[ROW][C]30[/C][C]0.124775150489583[/C][C]0.249550300979167[/C][C]0.875224849510417[/C][/ROW]
[ROW][C]31[/C][C]0.183115132750648[/C][C]0.366230265501295[/C][C]0.816884867249352[/C][/ROW]
[ROW][C]32[/C][C]0.330865211728397[/C][C]0.661730423456793[/C][C]0.669134788271603[/C][/ROW]
[ROW][C]33[/C][C]0.381089774614411[/C][C]0.762179549228821[/C][C]0.618910225385589[/C][/ROW]
[ROW][C]34[/C][C]0.328371359003443[/C][C]0.656742718006886[/C][C]0.671628640996557[/C][/ROW]
[ROW][C]35[/C][C]0.251176998172528[/C][C]0.502353996345056[/C][C]0.748823001827472[/C][/ROW]
[ROW][C]36[/C][C]0.21311778265466[/C][C]0.42623556530932[/C][C]0.78688221734534[/C][/ROW]
[ROW][C]37[/C][C]0.174627491908716[/C][C]0.349254983817432[/C][C]0.825372508091284[/C][/ROW]
[ROW][C]38[/C][C]0.128434997371355[/C][C]0.256869994742709[/C][C]0.871565002628645[/C][/ROW]
[ROW][C]39[/C][C]0.0946913942640307[/C][C]0.189382788528061[/C][C]0.90530860573597[/C][/ROW]
[ROW][C]40[/C][C]0.137727214795305[/C][C]0.275454429590609[/C][C]0.862272785204695[/C][/ROW]
[ROW][C]41[/C][C]0.610146301790981[/C][C]0.779707396418038[/C][C]0.389853698209019[/C][/ROW]
[ROW][C]42[/C][C]0.94241754383455[/C][C]0.115164912330899[/C][C]0.0575824561654493[/C][/ROW]
[ROW][C]43[/C][C]0.896992087438221[/C][C]0.206015825123557[/C][C]0.103007912561779[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58480&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58480&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.7711442808622210.4577114382755580.228855719137779
180.6847892506984590.6304214986030830.315210749301542
190.6496290373039120.7007419253921760.350370962696088
200.7232098735610650.553580252877870.276790126438935
210.7158795263424340.5682409473151330.284120473657566
220.662452163166610.6750956736667810.337547836833391
230.5642957939569540.8714084120860910.435704206043046
240.4878616206455410.9757232412910820.512138379354459
250.3866373276945150.7732746553890310.613362672305485
260.2895824271285120.5791648542570240.710417572871488
270.2136176115882180.4272352231764370.786382388411782
280.2006074691530510.4012149383061030.799392530846949
290.1799760392378370.3599520784756750.820023960762163
300.1247751504895830.2495503009791670.875224849510417
310.1831151327506480.3662302655012950.816884867249352
320.3308652117283970.6617304234567930.669134788271603
330.3810897746144110.7621795492288210.618910225385589
340.3283713590034430.6567427180068860.671628640996557
350.2511769981725280.5023539963450560.748823001827472
360.213117782654660.426235565309320.78688221734534
370.1746274919087160.3492549838174320.825372508091284
380.1284349973713550.2568699947427090.871565002628645
390.09469139426403070.1893827885280610.90530860573597
400.1377272147953050.2754544295906090.862272785204695
410.6101463017909810.7797073964180380.389853698209019
420.942417543834550.1151649123308990.0575824561654493
430.8969920874382210.2060158251235570.103007912561779







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=58480&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=58480&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58480&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 = Do not include Seasonal Dummies ; par3 = No 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')
}