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:46:31 -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/t1260103767xlm9yqk43o7que6.htm/, Retrieved Sun, 05 May 2024 10:49:49 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=64371, Retrieved Sun, 05 May 2024 10:49:49 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact159
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:46:31] [b7e46d23597387652ca7420fdeb9acca] [Current]
-    D          [Multiple Regression] [SHW Paper] [2009-12-09 14:36:30] [253127ae8da904b75450fbd69fe4eb21]
Feedback Forum

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




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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 1.20162607243696 + 0.071391495650268X[t] + 1.48788807024294Y1[t] -0.818883118925321Y2[t] -0.109166591371894Y3[t] + 0.308432711790369Y4[t] -0.131745164850157M1[t] -0.104896199862405M2[t] + 0.619808221834512M3[t] -0.403067424019048M4[t] + 0.00288556829708370M5[t] + 0.107819541846743M6[t] + 0.0231502298838366M7[t] + 0.176036419720974M8[t] + 0.00653647228398761M9[t] -0.102365114259923M10[t] -0.0203429555273012M11[t] -0.00710010543724617t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  1.20162607243696 +  0.071391495650268X[t] +  1.48788807024294Y1[t] -0.818883118925321Y2[t] -0.109166591371894Y3[t] +  0.308432711790369Y4[t] -0.131745164850157M1[t] -0.104896199862405M2[t] +  0.619808221834512M3[t] -0.403067424019048M4[t] +  0.00288556829708370M5[t] +  0.107819541846743M6[t] +  0.0231502298838366M7[t] +  0.176036419720974M8[t] +  0.00653647228398761M9[t] -0.102365114259923M10[t] -0.0203429555273012M11[t] -0.00710010543724617t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64371&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  1.20162607243696 +  0.071391495650268X[t] +  1.48788807024294Y1[t] -0.818883118925321Y2[t] -0.109166591371894Y3[t] +  0.308432711790369Y4[t] -0.131745164850157M1[t] -0.104896199862405M2[t] +  0.619808221834512M3[t] -0.403067424019048M4[t] +  0.00288556829708370M5[t] +  0.107819541846743M6[t] +  0.0231502298838366M7[t] +  0.176036419720974M8[t] +  0.00653647228398761M9[t] -0.102365114259923M10[t] -0.0203429555273012M11[t] -0.00710010543724617t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64371&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64371&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] = + 1.20162607243696 + 0.071391495650268X[t] + 1.48788807024294Y1[t] -0.818883118925321Y2[t] -0.109166591371894Y3[t] + 0.308432711790369Y4[t] -0.131745164850157M1[t] -0.104896199862405M2[t] + 0.619808221834512M3[t] -0.403067424019048M4[t] + 0.00288556829708370M5[t] + 0.107819541846743M6[t] + 0.0231502298838366M7[t] + 0.176036419720974M8[t] + 0.00653647228398761M9[t] -0.102365114259923M10[t] -0.0203429555273012M11[t] -0.00710010543724617t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)1.201626072436960.7179191.67380.1023910.051195
X0.0713914956502680.0931340.76650.448090.224045
Y11.487888070242940.14116610.5400
Y2-0.8188831189253210.270234-3.03030.004380.00219
Y3-0.1091665913718940.275447-0.39630.6940820.347041
Y40.3084327117903690.1558371.97920.0550730.027537
M1-0.1317451648501570.105503-1.24870.2194010.1097
M2-0.1048961998624050.108737-0.96470.3408030.170402
M30.6198082218345120.1107175.59822e-061e-06
M4-0.4030674240190480.144532-2.78880.0082210.004111
M50.002885568297083700.1597840.01810.9856860.492843
M60.1078195418467430.1308580.82390.4151140.207557
M70.02315022988383660.1033610.2240.8239770.411989
M80.1760364197209740.1061471.65840.1054640.052732
M90.006536472283987610.1168280.05590.9556750.477838
M10-0.1023651142599230.118037-0.86720.391260.19563
M11-0.02034295552730120.110341-0.18440.8547080.427354
t-0.007100105437246170.002478-2.86570.0067450.003373

\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) & 1.20162607243696 & 0.717919 & 1.6738 & 0.102391 & 0.051195 \tabularnewline
X & 0.071391495650268 & 0.093134 & 0.7665 & 0.44809 & 0.224045 \tabularnewline
Y1 & 1.48788807024294 & 0.141166 & 10.54 & 0 & 0 \tabularnewline
Y2 & -0.818883118925321 & 0.270234 & -3.0303 & 0.00438 & 0.00219 \tabularnewline
Y3 & -0.109166591371894 & 0.275447 & -0.3963 & 0.694082 & 0.347041 \tabularnewline
Y4 & 0.308432711790369 & 0.155837 & 1.9792 & 0.055073 & 0.027537 \tabularnewline
M1 & -0.131745164850157 & 0.105503 & -1.2487 & 0.219401 & 0.1097 \tabularnewline
M2 & -0.104896199862405 & 0.108737 & -0.9647 & 0.340803 & 0.170402 \tabularnewline
M3 & 0.619808221834512 & 0.110717 & 5.5982 & 2e-06 & 1e-06 \tabularnewline
M4 & -0.403067424019048 & 0.144532 & -2.7888 & 0.008221 & 0.004111 \tabularnewline
M5 & 0.00288556829708370 & 0.159784 & 0.0181 & 0.985686 & 0.492843 \tabularnewline
M6 & 0.107819541846743 & 0.130858 & 0.8239 & 0.415114 & 0.207557 \tabularnewline
M7 & 0.0231502298838366 & 0.103361 & 0.224 & 0.823977 & 0.411989 \tabularnewline
M8 & 0.176036419720974 & 0.106147 & 1.6584 & 0.105464 & 0.052732 \tabularnewline
M9 & 0.00653647228398761 & 0.116828 & 0.0559 & 0.955675 & 0.477838 \tabularnewline
M10 & -0.102365114259923 & 0.118037 & -0.8672 & 0.39126 & 0.19563 \tabularnewline
M11 & -0.0203429555273012 & 0.110341 & -0.1844 & 0.854708 & 0.427354 \tabularnewline
t & -0.00710010543724617 & 0.002478 & -2.8657 & 0.006745 & 0.003373 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64371&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]1.20162607243696[/C][C]0.717919[/C][C]1.6738[/C][C]0.102391[/C][C]0.051195[/C][/ROW]
[ROW][C]X[/C][C]0.071391495650268[/C][C]0.093134[/C][C]0.7665[/C][C]0.44809[/C][C]0.224045[/C][/ROW]
[ROW][C]Y1[/C][C]1.48788807024294[/C][C]0.141166[/C][C]10.54[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]-0.818883118925321[/C][C]0.270234[/C][C]-3.0303[/C][C]0.00438[/C][C]0.00219[/C][/ROW]
[ROW][C]Y3[/C][C]-0.109166591371894[/C][C]0.275447[/C][C]-0.3963[/C][C]0.694082[/C][C]0.347041[/C][/ROW]
[ROW][C]Y4[/C][C]0.308432711790369[/C][C]0.155837[/C][C]1.9792[/C][C]0.055073[/C][C]0.027537[/C][/ROW]
[ROW][C]M1[/C][C]-0.131745164850157[/C][C]0.105503[/C][C]-1.2487[/C][C]0.219401[/C][C]0.1097[/C][/ROW]
[ROW][C]M2[/C][C]-0.104896199862405[/C][C]0.108737[/C][C]-0.9647[/C][C]0.340803[/C][C]0.170402[/C][/ROW]
[ROW][C]M3[/C][C]0.619808221834512[/C][C]0.110717[/C][C]5.5982[/C][C]2e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M4[/C][C]-0.403067424019048[/C][C]0.144532[/C][C]-2.7888[/C][C]0.008221[/C][C]0.004111[/C][/ROW]
[ROW][C]M5[/C][C]0.00288556829708370[/C][C]0.159784[/C][C]0.0181[/C][C]0.985686[/C][C]0.492843[/C][/ROW]
[ROW][C]M6[/C][C]0.107819541846743[/C][C]0.130858[/C][C]0.8239[/C][C]0.415114[/C][C]0.207557[/C][/ROW]
[ROW][C]M7[/C][C]0.0231502298838366[/C][C]0.103361[/C][C]0.224[/C][C]0.823977[/C][C]0.411989[/C][/ROW]
[ROW][C]M8[/C][C]0.176036419720974[/C][C]0.106147[/C][C]1.6584[/C][C]0.105464[/C][C]0.052732[/C][/ROW]
[ROW][C]M9[/C][C]0.00653647228398761[/C][C]0.116828[/C][C]0.0559[/C][C]0.955675[/C][C]0.477838[/C][/ROW]
[ROW][C]M10[/C][C]-0.102365114259923[/C][C]0.118037[/C][C]-0.8672[/C][C]0.39126[/C][C]0.19563[/C][/ROW]
[ROW][C]M11[/C][C]-0.0203429555273012[/C][C]0.110341[/C][C]-0.1844[/C][C]0.854708[/C][C]0.427354[/C][/ROW]
[ROW][C]t[/C][C]-0.00710010543724617[/C][C]0.002478[/C][C]-2.8657[/C][C]0.006745[/C][C]0.003373[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64371&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64371&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)1.201626072436960.7179191.67380.1023910.051195
X0.0713914956502680.0931340.76650.448090.224045
Y11.487888070242940.14116610.5400
Y2-0.8188831189253210.270234-3.03030.004380.00219
Y3-0.1091665913718940.275447-0.39630.6940820.347041
Y40.3084327117903690.1558371.97920.0550730.027537
M1-0.1317451648501570.105503-1.24870.2194010.1097
M2-0.1048961998624050.108737-0.96470.3408030.170402
M30.6198082218345120.1107175.59822e-061e-06
M4-0.4030674240190480.144532-2.78880.0082210.004111
M50.002885568297083700.1597840.01810.9856860.492843
M60.1078195418467430.1308580.82390.4151140.207557
M70.02315022988383660.1033610.2240.8239770.411989
M80.1760364197209740.1061471.65840.1054640.052732
M90.006536472283987610.1168280.05590.9556750.477838
M10-0.1023651142599230.118037-0.86720.391260.19563
M11-0.02034295552730120.110341-0.18440.8547080.427354
t-0.007100105437246170.002478-2.86570.0067450.003373







Multiple Linear Regression - Regression Statistics
Multiple R0.98535812989989
R-squared0.970930644159807
Adjusted R-squared0.957925932336562
F-TEST (value)74.6599122961248
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.152572269955886
Sum Squared Residuals0.884575307260686

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.98535812989989 \tabularnewline
R-squared & 0.970930644159807 \tabularnewline
Adjusted R-squared & 0.957925932336562 \tabularnewline
F-TEST (value) & 74.6599122961248 \tabularnewline
F-TEST (DF numerator) & 17 \tabularnewline
F-TEST (DF denominator) & 38 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.152572269955886 \tabularnewline
Sum Squared Residuals & 0.884575307260686 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64371&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.98535812989989[/C][/ROW]
[ROW][C]R-squared[/C][C]0.970930644159807[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.957925932336562[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]74.6599122961248[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]17[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]38[/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.152572269955886[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]0.884575307260686[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64371&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64371&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.98535812989989
R-squared0.970930644159807
Adjusted R-squared0.957925932336562
F-TEST (value)74.6599122961248
F-TEST (DF numerator)17
F-TEST (DF denominator)38
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.152572269955886
Sum Squared Residuals0.884575307260686







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
17.27.20959657275307-0.00959657275307373
27.47.46182553087788-0.0618255308778761
38.88.655789314066060.144210685933936
49.39.33108404530959-0.0310840453095873
59.39.2130814690030.0869185309969926
68.78.81032709209018-0.110327092090184
78.28.20304733336483-0.00304733336483206
88.38.250435609893630.0495643901063723
98.58.69756587832949-0.197565878329490
108.68.66677715711611-0.066777157116113
118.58.56157837861834-0.0615783786183446
128.28.35315406269623-0.153154062696233
138.17.900600566449360.199399433550639
147.98.0589854849694-0.158985484969395
158.68.562807205305540.0371927946944576
168.78.656516572569940.0434834274300617
178.78.621930130320740.0780698696792638
188.58.499772530222220.000227469777782493
198.48.315411737889550.0845882621104546
208.58.50702891022924-0.00702891022924325
218.78.582939294546210.117060705453784
228.78.631857021500230.068142978499769
238.68.501242520694320.0987574793056834
248.58.374706516664740.125293483335265
258.38.230647293603640.0693527063963572
2688.04562351013528-0.0456235101352826
278.28.46071141706529-0.260711417065286
288.17.9649682625960.135031737403994
298.18.022319153719030.0776808462809709
3088.08767820191248-0.0876782019124841
317.97.9197231789833-0.0197231789833003
327.97.9677654970724-0.0677654970723924
3387.883970415227880.116029584772118
3487.896830918229170.103169081770829
357.97.859021388452980.0409786115470219
3687.712558772381550.28744122761845
377.77.83523389219001-0.135233892190009
387.27.33764467791229-0.137644677912290
397.57.51520996441186-0.0152099644118583
407.37.4046354422472-0.104635442247200
4177.22229926154874-0.222299261548737
4276.850576999066580.149423000933421
4377.11883564915551-0.118835649155512
447.27.2356851686089-0.0356851686088974
457.37.33552441189641-0.0355244118964121
467.17.20453490315448-0.104534903154485
476.86.87815771223436-0.0781577122343608
486.46.65958064825748-0.259580648257481
496.16.22392167500391-0.123921675003913
506.56.095920796105160.404079203894844
517.77.605482099151250.094517900848751
527.97.94279567727727-0.0427956772772681
537.57.52036998540849-0.0203699854084901
546.96.851645176708540.0483548232914648
556.66.542982100606810.0570178993931902
566.96.839084814195840.0609151858041607

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 7.2 & 7.20959657275307 & -0.00959657275307373 \tabularnewline
2 & 7.4 & 7.46182553087788 & -0.0618255308778761 \tabularnewline
3 & 8.8 & 8.65578931406606 & 0.144210685933936 \tabularnewline
4 & 9.3 & 9.33108404530959 & -0.0310840453095873 \tabularnewline
5 & 9.3 & 9.213081469003 & 0.0869185309969926 \tabularnewline
6 & 8.7 & 8.81032709209018 & -0.110327092090184 \tabularnewline
7 & 8.2 & 8.20304733336483 & -0.00304733336483206 \tabularnewline
8 & 8.3 & 8.25043560989363 & 0.0495643901063723 \tabularnewline
9 & 8.5 & 8.69756587832949 & -0.197565878329490 \tabularnewline
10 & 8.6 & 8.66677715711611 & -0.066777157116113 \tabularnewline
11 & 8.5 & 8.56157837861834 & -0.0615783786183446 \tabularnewline
12 & 8.2 & 8.35315406269623 & -0.153154062696233 \tabularnewline
13 & 8.1 & 7.90060056644936 & 0.199399433550639 \tabularnewline
14 & 7.9 & 8.0589854849694 & -0.158985484969395 \tabularnewline
15 & 8.6 & 8.56280720530554 & 0.0371927946944576 \tabularnewline
16 & 8.7 & 8.65651657256994 & 0.0434834274300617 \tabularnewline
17 & 8.7 & 8.62193013032074 & 0.0780698696792638 \tabularnewline
18 & 8.5 & 8.49977253022222 & 0.000227469777782493 \tabularnewline
19 & 8.4 & 8.31541173788955 & 0.0845882621104546 \tabularnewline
20 & 8.5 & 8.50702891022924 & -0.00702891022924325 \tabularnewline
21 & 8.7 & 8.58293929454621 & 0.117060705453784 \tabularnewline
22 & 8.7 & 8.63185702150023 & 0.068142978499769 \tabularnewline
23 & 8.6 & 8.50124252069432 & 0.0987574793056834 \tabularnewline
24 & 8.5 & 8.37470651666474 & 0.125293483335265 \tabularnewline
25 & 8.3 & 8.23064729360364 & 0.0693527063963572 \tabularnewline
26 & 8 & 8.04562351013528 & -0.0456235101352826 \tabularnewline
27 & 8.2 & 8.46071141706529 & -0.260711417065286 \tabularnewline
28 & 8.1 & 7.964968262596 & 0.135031737403994 \tabularnewline
29 & 8.1 & 8.02231915371903 & 0.0776808462809709 \tabularnewline
30 & 8 & 8.08767820191248 & -0.0876782019124841 \tabularnewline
31 & 7.9 & 7.9197231789833 & -0.0197231789833003 \tabularnewline
32 & 7.9 & 7.9677654970724 & -0.0677654970723924 \tabularnewline
33 & 8 & 7.88397041522788 & 0.116029584772118 \tabularnewline
34 & 8 & 7.89683091822917 & 0.103169081770829 \tabularnewline
35 & 7.9 & 7.85902138845298 & 0.0409786115470219 \tabularnewline
36 & 8 & 7.71255877238155 & 0.28744122761845 \tabularnewline
37 & 7.7 & 7.83523389219001 & -0.135233892190009 \tabularnewline
38 & 7.2 & 7.33764467791229 & -0.137644677912290 \tabularnewline
39 & 7.5 & 7.51520996441186 & -0.0152099644118583 \tabularnewline
40 & 7.3 & 7.4046354422472 & -0.104635442247200 \tabularnewline
41 & 7 & 7.22229926154874 & -0.222299261548737 \tabularnewline
42 & 7 & 6.85057699906658 & 0.149423000933421 \tabularnewline
43 & 7 & 7.11883564915551 & -0.118835649155512 \tabularnewline
44 & 7.2 & 7.2356851686089 & -0.0356851686088974 \tabularnewline
45 & 7.3 & 7.33552441189641 & -0.0355244118964121 \tabularnewline
46 & 7.1 & 7.20453490315448 & -0.104534903154485 \tabularnewline
47 & 6.8 & 6.87815771223436 & -0.0781577122343608 \tabularnewline
48 & 6.4 & 6.65958064825748 & -0.259580648257481 \tabularnewline
49 & 6.1 & 6.22392167500391 & -0.123921675003913 \tabularnewline
50 & 6.5 & 6.09592079610516 & 0.404079203894844 \tabularnewline
51 & 7.7 & 7.60548209915125 & 0.094517900848751 \tabularnewline
52 & 7.9 & 7.94279567727727 & -0.0427956772772681 \tabularnewline
53 & 7.5 & 7.52036998540849 & -0.0203699854084901 \tabularnewline
54 & 6.9 & 6.85164517670854 & 0.0483548232914648 \tabularnewline
55 & 6.6 & 6.54298210060681 & 0.0570178993931902 \tabularnewline
56 & 6.9 & 6.83908481419584 & 0.0609151858041607 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64371&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]7.2[/C][C]7.20959657275307[/C][C]-0.00959657275307373[/C][/ROW]
[ROW][C]2[/C][C]7.4[/C][C]7.46182553087788[/C][C]-0.0618255308778761[/C][/ROW]
[ROW][C]3[/C][C]8.8[/C][C]8.65578931406606[/C][C]0.144210685933936[/C][/ROW]
[ROW][C]4[/C][C]9.3[/C][C]9.33108404530959[/C][C]-0.0310840453095873[/C][/ROW]
[ROW][C]5[/C][C]9.3[/C][C]9.213081469003[/C][C]0.0869185309969926[/C][/ROW]
[ROW][C]6[/C][C]8.7[/C][C]8.81032709209018[/C][C]-0.110327092090184[/C][/ROW]
[ROW][C]7[/C][C]8.2[/C][C]8.20304733336483[/C][C]-0.00304733336483206[/C][/ROW]
[ROW][C]8[/C][C]8.3[/C][C]8.25043560989363[/C][C]0.0495643901063723[/C][/ROW]
[ROW][C]9[/C][C]8.5[/C][C]8.69756587832949[/C][C]-0.197565878329490[/C][/ROW]
[ROW][C]10[/C][C]8.6[/C][C]8.66677715711611[/C][C]-0.066777157116113[/C][/ROW]
[ROW][C]11[/C][C]8.5[/C][C]8.56157837861834[/C][C]-0.0615783786183446[/C][/ROW]
[ROW][C]12[/C][C]8.2[/C][C]8.35315406269623[/C][C]-0.153154062696233[/C][/ROW]
[ROW][C]13[/C][C]8.1[/C][C]7.90060056644936[/C][C]0.199399433550639[/C][/ROW]
[ROW][C]14[/C][C]7.9[/C][C]8.0589854849694[/C][C]-0.158985484969395[/C][/ROW]
[ROW][C]15[/C][C]8.6[/C][C]8.56280720530554[/C][C]0.0371927946944576[/C][/ROW]
[ROW][C]16[/C][C]8.7[/C][C]8.65651657256994[/C][C]0.0434834274300617[/C][/ROW]
[ROW][C]17[/C][C]8.7[/C][C]8.62193013032074[/C][C]0.0780698696792638[/C][/ROW]
[ROW][C]18[/C][C]8.5[/C][C]8.49977253022222[/C][C]0.000227469777782493[/C][/ROW]
[ROW][C]19[/C][C]8.4[/C][C]8.31541173788955[/C][C]0.0845882621104546[/C][/ROW]
[ROW][C]20[/C][C]8.5[/C][C]8.50702891022924[/C][C]-0.00702891022924325[/C][/ROW]
[ROW][C]21[/C][C]8.7[/C][C]8.58293929454621[/C][C]0.117060705453784[/C][/ROW]
[ROW][C]22[/C][C]8.7[/C][C]8.63185702150023[/C][C]0.068142978499769[/C][/ROW]
[ROW][C]23[/C][C]8.6[/C][C]8.50124252069432[/C][C]0.0987574793056834[/C][/ROW]
[ROW][C]24[/C][C]8.5[/C][C]8.37470651666474[/C][C]0.125293483335265[/C][/ROW]
[ROW][C]25[/C][C]8.3[/C][C]8.23064729360364[/C][C]0.0693527063963572[/C][/ROW]
[ROW][C]26[/C][C]8[/C][C]8.04562351013528[/C][C]-0.0456235101352826[/C][/ROW]
[ROW][C]27[/C][C]8.2[/C][C]8.46071141706529[/C][C]-0.260711417065286[/C][/ROW]
[ROW][C]28[/C][C]8.1[/C][C]7.964968262596[/C][C]0.135031737403994[/C][/ROW]
[ROW][C]29[/C][C]8.1[/C][C]8.02231915371903[/C][C]0.0776808462809709[/C][/ROW]
[ROW][C]30[/C][C]8[/C][C]8.08767820191248[/C][C]-0.0876782019124841[/C][/ROW]
[ROW][C]31[/C][C]7.9[/C][C]7.9197231789833[/C][C]-0.0197231789833003[/C][/ROW]
[ROW][C]32[/C][C]7.9[/C][C]7.9677654970724[/C][C]-0.0677654970723924[/C][/ROW]
[ROW][C]33[/C][C]8[/C][C]7.88397041522788[/C][C]0.116029584772118[/C][/ROW]
[ROW][C]34[/C][C]8[/C][C]7.89683091822917[/C][C]0.103169081770829[/C][/ROW]
[ROW][C]35[/C][C]7.9[/C][C]7.85902138845298[/C][C]0.0409786115470219[/C][/ROW]
[ROW][C]36[/C][C]8[/C][C]7.71255877238155[/C][C]0.28744122761845[/C][/ROW]
[ROW][C]37[/C][C]7.7[/C][C]7.83523389219001[/C][C]-0.135233892190009[/C][/ROW]
[ROW][C]38[/C][C]7.2[/C][C]7.33764467791229[/C][C]-0.137644677912290[/C][/ROW]
[ROW][C]39[/C][C]7.5[/C][C]7.51520996441186[/C][C]-0.0152099644118583[/C][/ROW]
[ROW][C]40[/C][C]7.3[/C][C]7.4046354422472[/C][C]-0.104635442247200[/C][/ROW]
[ROW][C]41[/C][C]7[/C][C]7.22229926154874[/C][C]-0.222299261548737[/C][/ROW]
[ROW][C]42[/C][C]7[/C][C]6.85057699906658[/C][C]0.149423000933421[/C][/ROW]
[ROW][C]43[/C][C]7[/C][C]7.11883564915551[/C][C]-0.118835649155512[/C][/ROW]
[ROW][C]44[/C][C]7.2[/C][C]7.2356851686089[/C][C]-0.0356851686088974[/C][/ROW]
[ROW][C]45[/C][C]7.3[/C][C]7.33552441189641[/C][C]-0.0355244118964121[/C][/ROW]
[ROW][C]46[/C][C]7.1[/C][C]7.20453490315448[/C][C]-0.104534903154485[/C][/ROW]
[ROW][C]47[/C][C]6.8[/C][C]6.87815771223436[/C][C]-0.0781577122343608[/C][/ROW]
[ROW][C]48[/C][C]6.4[/C][C]6.65958064825748[/C][C]-0.259580648257481[/C][/ROW]
[ROW][C]49[/C][C]6.1[/C][C]6.22392167500391[/C][C]-0.123921675003913[/C][/ROW]
[ROW][C]50[/C][C]6.5[/C][C]6.09592079610516[/C][C]0.404079203894844[/C][/ROW]
[ROW][C]51[/C][C]7.7[/C][C]7.60548209915125[/C][C]0.094517900848751[/C][/ROW]
[ROW][C]52[/C][C]7.9[/C][C]7.94279567727727[/C][C]-0.0427956772772681[/C][/ROW]
[ROW][C]53[/C][C]7.5[/C][C]7.52036998540849[/C][C]-0.0203699854084901[/C][/ROW]
[ROW][C]54[/C][C]6.9[/C][C]6.85164517670854[/C][C]0.0483548232914648[/C][/ROW]
[ROW][C]55[/C][C]6.6[/C][C]6.54298210060681[/C][C]0.0570178993931902[/C][/ROW]
[ROW][C]56[/C][C]6.9[/C][C]6.83908481419584[/C][C]0.0609151858041607[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64371&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64371&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
17.27.20959657275307-0.00959657275307373
27.47.46182553087788-0.0618255308778761
38.88.655789314066060.144210685933936
49.39.33108404530959-0.0310840453095873
59.39.2130814690030.0869185309969926
68.78.81032709209018-0.110327092090184
78.28.20304733336483-0.00304733336483206
88.38.250435609893630.0495643901063723
98.58.69756587832949-0.197565878329490
108.68.66677715711611-0.066777157116113
118.58.56157837861834-0.0615783786183446
128.28.35315406269623-0.153154062696233
138.17.900600566449360.199399433550639
147.98.0589854849694-0.158985484969395
158.68.562807205305540.0371927946944576
168.78.656516572569940.0434834274300617
178.78.621930130320740.0780698696792638
188.58.499772530222220.000227469777782493
198.48.315411737889550.0845882621104546
208.58.50702891022924-0.00702891022924325
218.78.582939294546210.117060705453784
228.78.631857021500230.068142978499769
238.68.501242520694320.0987574793056834
248.58.374706516664740.125293483335265
258.38.230647293603640.0693527063963572
2688.04562351013528-0.0456235101352826
278.28.46071141706529-0.260711417065286
288.17.9649682625960.135031737403994
298.18.022319153719030.0776808462809709
3088.08767820191248-0.0876782019124841
317.97.9197231789833-0.0197231789833003
327.97.9677654970724-0.0677654970723924
3387.883970415227880.116029584772118
3487.896830918229170.103169081770829
357.97.859021388452980.0409786115470219
3687.712558772381550.28744122761845
377.77.83523389219001-0.135233892190009
387.27.33764467791229-0.137644677912290
397.57.51520996441186-0.0152099644118583
407.37.4046354422472-0.104635442247200
4177.22229926154874-0.222299261548737
4276.850576999066580.149423000933421
4377.11883564915551-0.118835649155512
447.27.2356851686089-0.0356851686088974
457.37.33552441189641-0.0355244118964121
467.17.20453490315448-0.104534903154485
476.86.87815771223436-0.0781577122343608
486.46.65958064825748-0.259580648257481
496.16.22392167500391-0.123921675003913
506.56.095920796105160.404079203894844
517.77.605482099151250.094517900848751
527.97.94279567727727-0.0427956772772681
537.57.52036998540849-0.0203699854084901
546.96.851645176708540.0483548232914648
556.66.542982100606810.0570178993931902
566.96.839084814195840.0609151858041607







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.2952720915884280.5905441831768570.704727908411572
220.1837645839689150.3675291679378290.816235416031085
230.1272646459857480.2545292919714970.872735354014252
240.1121641736341360.2243283472682720.887835826365864
250.07453095900776980.1490619180155400.92546904099223
260.04459828242422670.08919656484845340.955401717575773
270.1950796470402670.3901592940805340.804920352959733
280.1460927439639970.2921854879279930.853907256036003
290.09998317624701570.1999663524940310.900016823752984
300.08674031298010470.1734806259602090.913259687019895
310.06458021780318530.1291604356063710.935419782196815
320.03641271397440430.07282542794880860.963587286025596
330.02337089700303470.04674179400606950.976629102996965
340.01146974561292680.02293949122585350.988530254387073
350.004531355671008610.009062711342017220.995468644328991

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.295272091588428 & 0.590544183176857 & 0.704727908411572 \tabularnewline
22 & 0.183764583968915 & 0.367529167937829 & 0.816235416031085 \tabularnewline
23 & 0.127264645985748 & 0.254529291971497 & 0.872735354014252 \tabularnewline
24 & 0.112164173634136 & 0.224328347268272 & 0.887835826365864 \tabularnewline
25 & 0.0745309590077698 & 0.149061918015540 & 0.92546904099223 \tabularnewline
26 & 0.0445982824242267 & 0.0891965648484534 & 0.955401717575773 \tabularnewline
27 & 0.195079647040267 & 0.390159294080534 & 0.804920352959733 \tabularnewline
28 & 0.146092743963997 & 0.292185487927993 & 0.853907256036003 \tabularnewline
29 & 0.0999831762470157 & 0.199966352494031 & 0.900016823752984 \tabularnewline
30 & 0.0867403129801047 & 0.173480625960209 & 0.913259687019895 \tabularnewline
31 & 0.0645802178031853 & 0.129160435606371 & 0.935419782196815 \tabularnewline
32 & 0.0364127139744043 & 0.0728254279488086 & 0.963587286025596 \tabularnewline
33 & 0.0233708970030347 & 0.0467417940060695 & 0.976629102996965 \tabularnewline
34 & 0.0114697456129268 & 0.0229394912258535 & 0.988530254387073 \tabularnewline
35 & 0.00453135567100861 & 0.00906271134201722 & 0.995468644328991 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=64371&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]21[/C][C]0.295272091588428[/C][C]0.590544183176857[/C][C]0.704727908411572[/C][/ROW]
[ROW][C]22[/C][C]0.183764583968915[/C][C]0.367529167937829[/C][C]0.816235416031085[/C][/ROW]
[ROW][C]23[/C][C]0.127264645985748[/C][C]0.254529291971497[/C][C]0.872735354014252[/C][/ROW]
[ROW][C]24[/C][C]0.112164173634136[/C][C]0.224328347268272[/C][C]0.887835826365864[/C][/ROW]
[ROW][C]25[/C][C]0.0745309590077698[/C][C]0.149061918015540[/C][C]0.92546904099223[/C][/ROW]
[ROW][C]26[/C][C]0.0445982824242267[/C][C]0.0891965648484534[/C][C]0.955401717575773[/C][/ROW]
[ROW][C]27[/C][C]0.195079647040267[/C][C]0.390159294080534[/C][C]0.804920352959733[/C][/ROW]
[ROW][C]28[/C][C]0.146092743963997[/C][C]0.292185487927993[/C][C]0.853907256036003[/C][/ROW]
[ROW][C]29[/C][C]0.0999831762470157[/C][C]0.199966352494031[/C][C]0.900016823752984[/C][/ROW]
[ROW][C]30[/C][C]0.0867403129801047[/C][C]0.173480625960209[/C][C]0.913259687019895[/C][/ROW]
[ROW][C]31[/C][C]0.0645802178031853[/C][C]0.129160435606371[/C][C]0.935419782196815[/C][/ROW]
[ROW][C]32[/C][C]0.0364127139744043[/C][C]0.0728254279488086[/C][C]0.963587286025596[/C][/ROW]
[ROW][C]33[/C][C]0.0233708970030347[/C][C]0.0467417940060695[/C][C]0.976629102996965[/C][/ROW]
[ROW][C]34[/C][C]0.0114697456129268[/C][C]0.0229394912258535[/C][C]0.988530254387073[/C][/ROW]
[ROW][C]35[/C][C]0.00453135567100861[/C][C]0.00906271134201722[/C][C]0.995468644328991[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=64371&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64371&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
210.2952720915884280.5905441831768570.704727908411572
220.1837645839689150.3675291679378290.816235416031085
230.1272646459857480.2545292919714970.872735354014252
240.1121641736341360.2243283472682720.887835826365864
250.07453095900776980.1490619180155400.92546904099223
260.04459828242422670.08919656484845340.955401717575773
270.1950796470402670.3901592940805340.804920352959733
280.1460927439639970.2921854879279930.853907256036003
290.09998317624701570.1999663524940310.900016823752984
300.08674031298010470.1734806259602090.913259687019895
310.06458021780318530.1291604356063710.935419782196815
320.03641271397440430.07282542794880860.963587286025596
330.02337089700303470.04674179400606950.976629102996965
340.01146974561292680.02293949122585350.988530254387073
350.004531355671008610.009062711342017220.995468644328991







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level10.0666666666666667NOK
5% type I error level30.2NOK
10% type I error level50.333333333333333NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=64371&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 level10.0666666666666667NOK
5% type I error level30.2NOK
10% type I error level50.333333333333333NOK



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