Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationWed, 18 Nov 2009 07:54:02 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/18/t12585561557hxnh3guj007kgz.htm/, Retrieved Sun, 05 May 2024 15:11:30 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57465, Retrieved Sun, 05 May 2024 15:11:30 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact184
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:14:11] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [SHW WS7 ] [2009-11-18 14:54:02] [b7e46d23597387652ca7420fdeb9acca] [Current]
Feedback Forum

Post a new message
Dataseries X:
7.8	2.61	7.8	8.3
8	2.26	7.8	7.8
8.6	2.41	8	7.8
8.9	2.26	8.6	8
8.9	2.03	8.9	8.6
8.6	2.86	8.9	8.9
8.3	2.55	8.6	8.9
8.3	2.27	8.3	8.6
8.3	2.26	8.3	8.3
8.4	2.57	8.3	8.3
8.5	3.07	8.4	8.3
8.4	2.76	8.5	8.4
8.6	2.51	8.4	8.5
8.5	2.87	8.6	8.4
8.5	3.14	8.5	8.6
8.5	3.11	8.5	8.5
8.5	3.16	8.5	8.5
8.5	2.47	8.5	8.5
8.5	2.57	8.5	8.5
8.5	2.89	8.5	8.5
8.5	2.63	8.5	8.5
8.5	2.38	8.5	8.5
8.5	1.69	8.5	8.5
8.5	1.96	8.5	8.5
8.6	2.19	8.5	8.5
8.4	1.87	8.6	8.5
8.1	1.6	8.4	8.6
8	1.63	8.1	8.4
8	1.22	8	8.1
8	1.21	8	8
8	1.49	8	8
7.9	1.64	8	8
7.8	1.66	7.9	8
7.8	1.77	7.8	7.9
7.9	1.82	7.8	7.8
8.1	1.78	7.9	7.8
8	1.28	8.1	7.9
7.6	1.29	8	8.1
7.3	1.37	7.6	8
7	1.12	7.3	7.6
6.8	1.51	7	7.3
7	2.24	6.8	7
7.1	2.94	7	6.8
7.2	3.09	7.1	7
7.1	3.46	7.2	7.1
6.9	3.64	7.1	7.2
6.7	4.39	6.9	7.1
6.7	4.15	6.7	6.9
6.6	5.21	6.7	6.7
6.9	5.8	6.6	6.7
7.3	5.91	6.9	6.6
7.5	5.39	7.3	6.9
7.3	5.46	7.5	7.3
7.1	4.72	7.3	7.5
6.9	3.14	7.1	7.3
7.1	2.63	6.9	7.1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57465&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.31529380916423 -0.00404322630682142X[t] + 1.32252823053763Y1[t] -0.575637866483151Y2[t] -0.00521518864188663M1[t] -0.108150188940405M2[t] + 0.0458707235047182M3[t] -0.0543689167329827M4[t] -0.105541489403970M5[t] -0.0387973496948420M6[t] -0.07681960133785M7[t] + 0.0436390019268301M8[t] -0.0846599530284503M9[t] -0.0338476726946303M10[t] -0.0196176817384662M11[t] -0.00933208650509082t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  2.31529380916423 -0.00404322630682142X[t] +  1.32252823053763Y1[t] -0.575637866483151Y2[t] -0.00521518864188663M1[t] -0.108150188940405M2[t] +  0.0458707235047182M3[t] -0.0543689167329827M4[t] -0.105541489403970M5[t] -0.0387973496948420M6[t] -0.07681960133785M7[t] +  0.0436390019268301M8[t] -0.0846599530284503M9[t] -0.0338476726946303M10[t] -0.0196176817384662M11[t] -0.00933208650509082t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57465&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  2.31529380916423 -0.00404322630682142X[t] +  1.32252823053763Y1[t] -0.575637866483151Y2[t] -0.00521518864188663M1[t] -0.108150188940405M2[t] +  0.0458707235047182M3[t] -0.0543689167329827M4[t] -0.105541489403970M5[t] -0.0387973496948420M6[t] -0.07681960133785M7[t] +  0.0436390019268301M8[t] -0.0846599530284503M9[t] -0.0338476726946303M10[t] -0.0196176817384662M11[t] -0.00933208650509082t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57465&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57465&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.31529380916423 -0.00404322630682142X[t] + 1.32252823053763Y1[t] -0.575637866483151Y2[t] -0.00521518864188663M1[t] -0.108150188940405M2[t] + 0.0458707235047182M3[t] -0.0543689167329827M4[t] -0.105541489403970M5[t] -0.0387973496948420M6[t] -0.07681960133785M7[t] + 0.0436390019268301M8[t] -0.0846599530284503M9[t] -0.0338476726946303M10[t] -0.0196176817384662M11[t] -0.00933208650509082t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)2.315293809164230.5566344.15950.0001648.2e-05
X-0.004043226306821420.02108-0.19180.8488640.424432
Y11.322528230537630.11400811.600300
Y2-0.5756378664831510.118888-4.84182e-051e-05
M1-0.005215188641886630.102256-0.0510.9595780.479789
M2-0.1081501889404050.101638-1.06410.2936770.146838
M30.04587072350471820.1017520.45080.6545620.327281
M4-0.05436891673298270.101653-0.53480.5957150.297857
M5-0.1055414894039700.1013-1.04190.3037280.151864
M6-0.03879734969484200.10172-0.38140.7049170.352458
M7-0.076819601337850.101453-0.75720.4533720.226686
M80.04363900192683010.1016750.42920.6700810.335041
M9-0.08465995302845030.106811-0.79260.4326780.216339
M10-0.03384767269463030.106908-0.31660.7531890.376594
M11-0.01961768173846620.106807-0.18370.8551970.427599
t-0.009332086505090820.002232-4.18050.0001547.7e-05

\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.31529380916423 & 0.556634 & 4.1595 & 0.000164 & 8.2e-05 \tabularnewline
X & -0.00404322630682142 & 0.02108 & -0.1918 & 0.848864 & 0.424432 \tabularnewline
Y1 & 1.32252823053763 & 0.114008 & 11.6003 & 0 & 0 \tabularnewline
Y2 & -0.575637866483151 & 0.118888 & -4.8418 & 2e-05 & 1e-05 \tabularnewline
M1 & -0.00521518864188663 & 0.102256 & -0.051 & 0.959578 & 0.479789 \tabularnewline
M2 & -0.108150188940405 & 0.101638 & -1.0641 & 0.293677 & 0.146838 \tabularnewline
M3 & 0.0458707235047182 & 0.101752 & 0.4508 & 0.654562 & 0.327281 \tabularnewline
M4 & -0.0543689167329827 & 0.101653 & -0.5348 & 0.595715 & 0.297857 \tabularnewline
M5 & -0.105541489403970 & 0.1013 & -1.0419 & 0.303728 & 0.151864 \tabularnewline
M6 & -0.0387973496948420 & 0.10172 & -0.3814 & 0.704917 & 0.352458 \tabularnewline
M7 & -0.07681960133785 & 0.101453 & -0.7572 & 0.453372 & 0.226686 \tabularnewline
M8 & 0.0436390019268301 & 0.101675 & 0.4292 & 0.670081 & 0.335041 \tabularnewline
M9 & -0.0846599530284503 & 0.106811 & -0.7926 & 0.432678 & 0.216339 \tabularnewline
M10 & -0.0338476726946303 & 0.106908 & -0.3166 & 0.753189 & 0.376594 \tabularnewline
M11 & -0.0196176817384662 & 0.106807 & -0.1837 & 0.855197 & 0.427599 \tabularnewline
t & -0.00933208650509082 & 0.002232 & -4.1805 & 0.000154 & 7.7e-05 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57465&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.31529380916423[/C][C]0.556634[/C][C]4.1595[/C][C]0.000164[/C][C]8.2e-05[/C][/ROW]
[ROW][C]X[/C][C]-0.00404322630682142[/C][C]0.02108[/C][C]-0.1918[/C][C]0.848864[/C][C]0.424432[/C][/ROW]
[ROW][C]Y1[/C][C]1.32252823053763[/C][C]0.114008[/C][C]11.6003[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]-0.575637866483151[/C][C]0.118888[/C][C]-4.8418[/C][C]2e-05[/C][C]1e-05[/C][/ROW]
[ROW][C]M1[/C][C]-0.00521518864188663[/C][C]0.102256[/C][C]-0.051[/C][C]0.959578[/C][C]0.479789[/C][/ROW]
[ROW][C]M2[/C][C]-0.108150188940405[/C][C]0.101638[/C][C]-1.0641[/C][C]0.293677[/C][C]0.146838[/C][/ROW]
[ROW][C]M3[/C][C]0.0458707235047182[/C][C]0.101752[/C][C]0.4508[/C][C]0.654562[/C][C]0.327281[/C][/ROW]
[ROW][C]M4[/C][C]-0.0543689167329827[/C][C]0.101653[/C][C]-0.5348[/C][C]0.595715[/C][C]0.297857[/C][/ROW]
[ROW][C]M5[/C][C]-0.105541489403970[/C][C]0.1013[/C][C]-1.0419[/C][C]0.303728[/C][C]0.151864[/C][/ROW]
[ROW][C]M6[/C][C]-0.0387973496948420[/C][C]0.10172[/C][C]-0.3814[/C][C]0.704917[/C][C]0.352458[/C][/ROW]
[ROW][C]M7[/C][C]-0.07681960133785[/C][C]0.101453[/C][C]-0.7572[/C][C]0.453372[/C][C]0.226686[/C][/ROW]
[ROW][C]M8[/C][C]0.0436390019268301[/C][C]0.101675[/C][C]0.4292[/C][C]0.670081[/C][C]0.335041[/C][/ROW]
[ROW][C]M9[/C][C]-0.0846599530284503[/C][C]0.106811[/C][C]-0.7926[/C][C]0.432678[/C][C]0.216339[/C][/ROW]
[ROW][C]M10[/C][C]-0.0338476726946303[/C][C]0.106908[/C][C]-0.3166[/C][C]0.753189[/C][C]0.376594[/C][/ROW]
[ROW][C]M11[/C][C]-0.0196176817384662[/C][C]0.106807[/C][C]-0.1837[/C][C]0.855197[/C][C]0.427599[/C][/ROW]
[ROW][C]t[/C][C]-0.00933208650509082[/C][C]0.002232[/C][C]-4.1805[/C][C]0.000154[/C][C]7.7e-05[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57465&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57465&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.315293809164230.5566344.15950.0001648.2e-05
X-0.004043226306821420.02108-0.19180.8488640.424432
Y11.322528230537630.11400811.600300
Y2-0.5756378664831510.118888-4.84182e-051e-05
M1-0.005215188641886630.102256-0.0510.9595780.479789
M2-0.1081501889404050.101638-1.06410.2936770.146838
M30.04587072350471820.1017520.45080.6545620.327281
M4-0.05436891673298270.101653-0.53480.5957150.297857
M5-0.1055414894039700.1013-1.04190.3037280.151864
M6-0.03879734969484200.10172-0.38140.7049170.352458
M7-0.076819601337850.101453-0.75720.4533720.226686
M80.04363900192683010.1016750.42920.6700810.335041
M9-0.08465995302845030.106811-0.79260.4326780.216339
M10-0.03384767269463030.106908-0.31660.7531890.376594
M11-0.01961768173846620.106807-0.18370.8551970.427599
t-0.009332086505090820.002232-4.18050.0001547.7e-05







Multiple Linear Regression - Regression Statistics
Multiple R0.981193454555963
R-squared0.962740595263465
Adjusted R-squared0.948768318487264
F-TEST (value)68.9036304307483
F-TEST (DF numerator)15
F-TEST (DF denominator)40
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.150924278622669
Sum Squared Residuals0.91112551511092

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.981193454555963 \tabularnewline
R-squared & 0.962740595263465 \tabularnewline
Adjusted R-squared & 0.948768318487264 \tabularnewline
F-TEST (value) & 68.9036304307483 \tabularnewline
F-TEST (DF numerator) & 15 \tabularnewline
F-TEST (DF denominator) & 40 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.150924278622669 \tabularnewline
Sum Squared Residuals & 0.91112551511092 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57465&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.981193454555963[/C][/ROW]
[ROW][C]R-squared[/C][C]0.962740595263465[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.948768318487264[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]68.9036304307483[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]15[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]40[/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.150924278622669[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]0.91112551511092[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57465&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57465&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.981193454555963
R-squared0.962740595263465
Adjusted R-squared0.948768318487264
F-TEST (value)68.9036304307483
F-TEST (DF numerator)15
F-TEST (DF denominator)40
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.150924278622669
Sum Squared Residuals0.91112551511092







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
17.87.82811961973983-0.02811961973983
288.00508659538519-0.00508659538518576
38.68.413674583486720.186325416513282
48.98.9830987057159-0.0830987057159018
58.98.9748997378618-0.0748997378617924
68.68.85626455328622-0.256264553286223
78.38.41340514613195-0.113405146131947
88.38.3015966570411-0.00159665704110306
98.38.33669740778875-0.0366974077887451
108.48.376924201462360.02307579853764
118.58.51205331581379-0.0120533158137856
128.48.59828134760772-0.198281347607724
138.68.394928269335370.205071730664626
148.58.60327505381715-0.103275053817150
158.58.499491812303950.000508187696052827
168.58.447605168998680.052394831001325
178.58.386898348507260.113101651492744
188.58.4471002278630.0528997721370002
198.58.399341567084220.100658432915781
208.58.50917425142563-0.0091742514256252
218.58.372594448805030.127405551194972
228.58.415085449210460.0849145507895377
238.58.422773179813240.0772268201867576
248.58.431967103943780.068032896056224
258.68.416489886746230.183510113253770
268.48.43776945541457-0.0377694554145661
278.18.2614805197016-0.1614805197016
2887.870156600304940.129843399695058
2987.851748200805840.148251799194156
3087.966764472921260.0332355270787357
3187.918278031407260.0817219685927446
327.98.02879806422082-0.128798064220821
337.87.758833335180550.0411666648194488
347.87.725179737710080.0748202622899191
357.97.787439267494130.112560732505872
368.17.930139414833540.169860585166459
3788.12455561229918-0.124555612299184
387.67.76486769688211-0.164867696882115
397.37.43778555915086-0.137785559150862
4077.16272131641675-0.162721316416747
416.86.87657268976466-0.0765726897646634
4276.839218901602140.160781098397860
437.17.16866752444342-0.0686675244434232
447.27.29631280701412-0.0963128070141214
457.17.23187480822568-0.131874808225676
466.97.0828106116171-0.182810611617097
476.76.87773423687884-0.177734236878844
486.76.73961213361496-0.0396121336149595
496.66.83590661187938-0.235906611879382
506.96.589001198500980.310998801499016
517.37.187567525356870.112432474643128
527.57.436418208563730.0635817914362655
537.37.40988102306045-0.109881023060445
547.17.090651844327370.0093481556726265
556.96.90030773093316-0.000307730933155562
567.16.864118220298330.235881779701671

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 7.8 & 7.82811961973983 & -0.02811961973983 \tabularnewline
2 & 8 & 8.00508659538519 & -0.00508659538518576 \tabularnewline
3 & 8.6 & 8.41367458348672 & 0.186325416513282 \tabularnewline
4 & 8.9 & 8.9830987057159 & -0.0830987057159018 \tabularnewline
5 & 8.9 & 8.9748997378618 & -0.0748997378617924 \tabularnewline
6 & 8.6 & 8.85626455328622 & -0.256264553286223 \tabularnewline
7 & 8.3 & 8.41340514613195 & -0.113405146131947 \tabularnewline
8 & 8.3 & 8.3015966570411 & -0.00159665704110306 \tabularnewline
9 & 8.3 & 8.33669740778875 & -0.0366974077887451 \tabularnewline
10 & 8.4 & 8.37692420146236 & 0.02307579853764 \tabularnewline
11 & 8.5 & 8.51205331581379 & -0.0120533158137856 \tabularnewline
12 & 8.4 & 8.59828134760772 & -0.198281347607724 \tabularnewline
13 & 8.6 & 8.39492826933537 & 0.205071730664626 \tabularnewline
14 & 8.5 & 8.60327505381715 & -0.103275053817150 \tabularnewline
15 & 8.5 & 8.49949181230395 & 0.000508187696052827 \tabularnewline
16 & 8.5 & 8.44760516899868 & 0.052394831001325 \tabularnewline
17 & 8.5 & 8.38689834850726 & 0.113101651492744 \tabularnewline
18 & 8.5 & 8.447100227863 & 0.0528997721370002 \tabularnewline
19 & 8.5 & 8.39934156708422 & 0.100658432915781 \tabularnewline
20 & 8.5 & 8.50917425142563 & -0.0091742514256252 \tabularnewline
21 & 8.5 & 8.37259444880503 & 0.127405551194972 \tabularnewline
22 & 8.5 & 8.41508544921046 & 0.0849145507895377 \tabularnewline
23 & 8.5 & 8.42277317981324 & 0.0772268201867576 \tabularnewline
24 & 8.5 & 8.43196710394378 & 0.068032896056224 \tabularnewline
25 & 8.6 & 8.41648988674623 & 0.183510113253770 \tabularnewline
26 & 8.4 & 8.43776945541457 & -0.0377694554145661 \tabularnewline
27 & 8.1 & 8.2614805197016 & -0.1614805197016 \tabularnewline
28 & 8 & 7.87015660030494 & 0.129843399695058 \tabularnewline
29 & 8 & 7.85174820080584 & 0.148251799194156 \tabularnewline
30 & 8 & 7.96676447292126 & 0.0332355270787357 \tabularnewline
31 & 8 & 7.91827803140726 & 0.0817219685927446 \tabularnewline
32 & 7.9 & 8.02879806422082 & -0.128798064220821 \tabularnewline
33 & 7.8 & 7.75883333518055 & 0.0411666648194488 \tabularnewline
34 & 7.8 & 7.72517973771008 & 0.0748202622899191 \tabularnewline
35 & 7.9 & 7.78743926749413 & 0.112560732505872 \tabularnewline
36 & 8.1 & 7.93013941483354 & 0.169860585166459 \tabularnewline
37 & 8 & 8.12455561229918 & -0.124555612299184 \tabularnewline
38 & 7.6 & 7.76486769688211 & -0.164867696882115 \tabularnewline
39 & 7.3 & 7.43778555915086 & -0.137785559150862 \tabularnewline
40 & 7 & 7.16272131641675 & -0.162721316416747 \tabularnewline
41 & 6.8 & 6.87657268976466 & -0.0765726897646634 \tabularnewline
42 & 7 & 6.83921890160214 & 0.160781098397860 \tabularnewline
43 & 7.1 & 7.16866752444342 & -0.0686675244434232 \tabularnewline
44 & 7.2 & 7.29631280701412 & -0.0963128070141214 \tabularnewline
45 & 7.1 & 7.23187480822568 & -0.131874808225676 \tabularnewline
46 & 6.9 & 7.0828106116171 & -0.182810611617097 \tabularnewline
47 & 6.7 & 6.87773423687884 & -0.177734236878844 \tabularnewline
48 & 6.7 & 6.73961213361496 & -0.0396121336149595 \tabularnewline
49 & 6.6 & 6.83590661187938 & -0.235906611879382 \tabularnewline
50 & 6.9 & 6.58900119850098 & 0.310998801499016 \tabularnewline
51 & 7.3 & 7.18756752535687 & 0.112432474643128 \tabularnewline
52 & 7.5 & 7.43641820856373 & 0.0635817914362655 \tabularnewline
53 & 7.3 & 7.40988102306045 & -0.109881023060445 \tabularnewline
54 & 7.1 & 7.09065184432737 & 0.0093481556726265 \tabularnewline
55 & 6.9 & 6.90030773093316 & -0.000307730933155562 \tabularnewline
56 & 7.1 & 6.86411822029833 & 0.235881779701671 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57465&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.8[/C][C]7.82811961973983[/C][C]-0.02811961973983[/C][/ROW]
[ROW][C]2[/C][C]8[/C][C]8.00508659538519[/C][C]-0.00508659538518576[/C][/ROW]
[ROW][C]3[/C][C]8.6[/C][C]8.41367458348672[/C][C]0.186325416513282[/C][/ROW]
[ROW][C]4[/C][C]8.9[/C][C]8.9830987057159[/C][C]-0.0830987057159018[/C][/ROW]
[ROW][C]5[/C][C]8.9[/C][C]8.9748997378618[/C][C]-0.0748997378617924[/C][/ROW]
[ROW][C]6[/C][C]8.6[/C][C]8.85626455328622[/C][C]-0.256264553286223[/C][/ROW]
[ROW][C]7[/C][C]8.3[/C][C]8.41340514613195[/C][C]-0.113405146131947[/C][/ROW]
[ROW][C]8[/C][C]8.3[/C][C]8.3015966570411[/C][C]-0.00159665704110306[/C][/ROW]
[ROW][C]9[/C][C]8.3[/C][C]8.33669740778875[/C][C]-0.0366974077887451[/C][/ROW]
[ROW][C]10[/C][C]8.4[/C][C]8.37692420146236[/C][C]0.02307579853764[/C][/ROW]
[ROW][C]11[/C][C]8.5[/C][C]8.51205331581379[/C][C]-0.0120533158137856[/C][/ROW]
[ROW][C]12[/C][C]8.4[/C][C]8.59828134760772[/C][C]-0.198281347607724[/C][/ROW]
[ROW][C]13[/C][C]8.6[/C][C]8.39492826933537[/C][C]0.205071730664626[/C][/ROW]
[ROW][C]14[/C][C]8.5[/C][C]8.60327505381715[/C][C]-0.103275053817150[/C][/ROW]
[ROW][C]15[/C][C]8.5[/C][C]8.49949181230395[/C][C]0.000508187696052827[/C][/ROW]
[ROW][C]16[/C][C]8.5[/C][C]8.44760516899868[/C][C]0.052394831001325[/C][/ROW]
[ROW][C]17[/C][C]8.5[/C][C]8.38689834850726[/C][C]0.113101651492744[/C][/ROW]
[ROW][C]18[/C][C]8.5[/C][C]8.447100227863[/C][C]0.0528997721370002[/C][/ROW]
[ROW][C]19[/C][C]8.5[/C][C]8.39934156708422[/C][C]0.100658432915781[/C][/ROW]
[ROW][C]20[/C][C]8.5[/C][C]8.50917425142563[/C][C]-0.0091742514256252[/C][/ROW]
[ROW][C]21[/C][C]8.5[/C][C]8.37259444880503[/C][C]0.127405551194972[/C][/ROW]
[ROW][C]22[/C][C]8.5[/C][C]8.41508544921046[/C][C]0.0849145507895377[/C][/ROW]
[ROW][C]23[/C][C]8.5[/C][C]8.42277317981324[/C][C]0.0772268201867576[/C][/ROW]
[ROW][C]24[/C][C]8.5[/C][C]8.43196710394378[/C][C]0.068032896056224[/C][/ROW]
[ROW][C]25[/C][C]8.6[/C][C]8.41648988674623[/C][C]0.183510113253770[/C][/ROW]
[ROW][C]26[/C][C]8.4[/C][C]8.43776945541457[/C][C]-0.0377694554145661[/C][/ROW]
[ROW][C]27[/C][C]8.1[/C][C]8.2614805197016[/C][C]-0.1614805197016[/C][/ROW]
[ROW][C]28[/C][C]8[/C][C]7.87015660030494[/C][C]0.129843399695058[/C][/ROW]
[ROW][C]29[/C][C]8[/C][C]7.85174820080584[/C][C]0.148251799194156[/C][/ROW]
[ROW][C]30[/C][C]8[/C][C]7.96676447292126[/C][C]0.0332355270787357[/C][/ROW]
[ROW][C]31[/C][C]8[/C][C]7.91827803140726[/C][C]0.0817219685927446[/C][/ROW]
[ROW][C]32[/C][C]7.9[/C][C]8.02879806422082[/C][C]-0.128798064220821[/C][/ROW]
[ROW][C]33[/C][C]7.8[/C][C]7.75883333518055[/C][C]0.0411666648194488[/C][/ROW]
[ROW][C]34[/C][C]7.8[/C][C]7.72517973771008[/C][C]0.0748202622899191[/C][/ROW]
[ROW][C]35[/C][C]7.9[/C][C]7.78743926749413[/C][C]0.112560732505872[/C][/ROW]
[ROW][C]36[/C][C]8.1[/C][C]7.93013941483354[/C][C]0.169860585166459[/C][/ROW]
[ROW][C]37[/C][C]8[/C][C]8.12455561229918[/C][C]-0.124555612299184[/C][/ROW]
[ROW][C]38[/C][C]7.6[/C][C]7.76486769688211[/C][C]-0.164867696882115[/C][/ROW]
[ROW][C]39[/C][C]7.3[/C][C]7.43778555915086[/C][C]-0.137785559150862[/C][/ROW]
[ROW][C]40[/C][C]7[/C][C]7.16272131641675[/C][C]-0.162721316416747[/C][/ROW]
[ROW][C]41[/C][C]6.8[/C][C]6.87657268976466[/C][C]-0.0765726897646634[/C][/ROW]
[ROW][C]42[/C][C]7[/C][C]6.83921890160214[/C][C]0.160781098397860[/C][/ROW]
[ROW][C]43[/C][C]7.1[/C][C]7.16866752444342[/C][C]-0.0686675244434232[/C][/ROW]
[ROW][C]44[/C][C]7.2[/C][C]7.29631280701412[/C][C]-0.0963128070141214[/C][/ROW]
[ROW][C]45[/C][C]7.1[/C][C]7.23187480822568[/C][C]-0.131874808225676[/C][/ROW]
[ROW][C]46[/C][C]6.9[/C][C]7.0828106116171[/C][C]-0.182810611617097[/C][/ROW]
[ROW][C]47[/C][C]6.7[/C][C]6.87773423687884[/C][C]-0.177734236878844[/C][/ROW]
[ROW][C]48[/C][C]6.7[/C][C]6.73961213361496[/C][C]-0.0396121336149595[/C][/ROW]
[ROW][C]49[/C][C]6.6[/C][C]6.83590661187938[/C][C]-0.235906611879382[/C][/ROW]
[ROW][C]50[/C][C]6.9[/C][C]6.58900119850098[/C][C]0.310998801499016[/C][/ROW]
[ROW][C]51[/C][C]7.3[/C][C]7.18756752535687[/C][C]0.112432474643128[/C][/ROW]
[ROW][C]52[/C][C]7.5[/C][C]7.43641820856373[/C][C]0.0635817914362655[/C][/ROW]
[ROW][C]53[/C][C]7.3[/C][C]7.40988102306045[/C][C]-0.109881023060445[/C][/ROW]
[ROW][C]54[/C][C]7.1[/C][C]7.09065184432737[/C][C]0.0093481556726265[/C][/ROW]
[ROW][C]55[/C][C]6.9[/C][C]6.90030773093316[/C][C]-0.000307730933155562[/C][/ROW]
[ROW][C]56[/C][C]7.1[/C][C]6.86411822029833[/C][C]0.235881779701671[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57465&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57465&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.87.82811961973983-0.02811961973983
288.00508659538519-0.00508659538518576
38.68.413674583486720.186325416513282
48.98.9830987057159-0.0830987057159018
58.98.9748997378618-0.0748997378617924
68.68.85626455328622-0.256264553286223
78.38.41340514613195-0.113405146131947
88.38.3015966570411-0.00159665704110306
98.38.33669740778875-0.0366974077887451
108.48.376924201462360.02307579853764
118.58.51205331581379-0.0120533158137856
128.48.59828134760772-0.198281347607724
138.68.394928269335370.205071730664626
148.58.60327505381715-0.103275053817150
158.58.499491812303950.000508187696052827
168.58.447605168998680.052394831001325
178.58.386898348507260.113101651492744
188.58.4471002278630.0528997721370002
198.58.399341567084220.100658432915781
208.58.50917425142563-0.0091742514256252
218.58.372594448805030.127405551194972
228.58.415085449210460.0849145507895377
238.58.422773179813240.0772268201867576
248.58.431967103943780.068032896056224
258.68.416489886746230.183510113253770
268.48.43776945541457-0.0377694554145661
278.18.2614805197016-0.1614805197016
2887.870156600304940.129843399695058
2987.851748200805840.148251799194156
3087.966764472921260.0332355270787357
3187.918278031407260.0817219685927446
327.98.02879806422082-0.128798064220821
337.87.758833335180550.0411666648194488
347.87.725179737710080.0748202622899191
357.97.787439267494130.112560732505872
368.17.930139414833540.169860585166459
3788.12455561229918-0.124555612299184
387.67.76486769688211-0.164867696882115
397.37.43778555915086-0.137785559150862
4077.16272131641675-0.162721316416747
416.86.87657268976466-0.0765726897646634
4276.839218901602140.160781098397860
437.17.16866752444342-0.0686675244434232
447.27.29631280701412-0.0963128070141214
457.17.23187480822568-0.131874808225676
466.97.0828106116171-0.182810611617097
476.76.87773423687884-0.177734236878844
486.76.73961213361496-0.0396121336149595
496.66.83590661187938-0.235906611879382
506.96.589001198500980.310998801499016
517.37.187567525356870.112432474643128
527.57.436418208563730.0635817914362655
537.37.40988102306045-0.109881023060445
547.17.090651844327370.0093481556726265
556.96.90030773093316-0.000307730933155562
567.16.864118220298330.235881779701671







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.1720316757310580.3440633514621150.827968324268942
200.1072897372964860.2145794745929720.892710262703514
210.05229279740750450.1045855948150090.947707202592496
220.02948862516785010.05897725033570010.97051137483215
230.01707355306639570.03414710613279130.982926446933604
240.008748450032844780.01749690006568960.991251549967155
250.007434407860904170.01486881572180830.992565592139096
260.004817400587720410.009634801175440820.99518259941228
270.04093715382385120.08187430764770240.959062846176149
280.02553892570332120.05107785140664240.974461074296679
290.02797735939376190.05595471878752390.972022640606238
300.01899273986883990.03798547973767980.98100726013116
310.01722081663543590.03444163327087180.982779183364564
320.02786776103072520.05573552206145050.972132238969275
330.02819303513476580.05638607026953160.971806964865234
340.05023506413144030.1004701282628810.94976493586856
350.07043704719627320.1408740943925460.929562952803727
360.1834418741912650.366883748382530.816558125808735
370.7928366013260880.4143267973478230.207163398673912

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
19 & 0.172031675731058 & 0.344063351462115 & 0.827968324268942 \tabularnewline
20 & 0.107289737296486 & 0.214579474592972 & 0.892710262703514 \tabularnewline
21 & 0.0522927974075045 & 0.104585594815009 & 0.947707202592496 \tabularnewline
22 & 0.0294886251678501 & 0.0589772503357001 & 0.97051137483215 \tabularnewline
23 & 0.0170735530663957 & 0.0341471061327913 & 0.982926446933604 \tabularnewline
24 & 0.00874845003284478 & 0.0174969000656896 & 0.991251549967155 \tabularnewline
25 & 0.00743440786090417 & 0.0148688157218083 & 0.992565592139096 \tabularnewline
26 & 0.00481740058772041 & 0.00963480117544082 & 0.99518259941228 \tabularnewline
27 & 0.0409371538238512 & 0.0818743076477024 & 0.959062846176149 \tabularnewline
28 & 0.0255389257033212 & 0.0510778514066424 & 0.974461074296679 \tabularnewline
29 & 0.0279773593937619 & 0.0559547187875239 & 0.972022640606238 \tabularnewline
30 & 0.0189927398688399 & 0.0379854797376798 & 0.98100726013116 \tabularnewline
31 & 0.0172208166354359 & 0.0344416332708718 & 0.982779183364564 \tabularnewline
32 & 0.0278677610307252 & 0.0557355220614505 & 0.972132238969275 \tabularnewline
33 & 0.0281930351347658 & 0.0563860702695316 & 0.971806964865234 \tabularnewline
34 & 0.0502350641314403 & 0.100470128262881 & 0.94976493586856 \tabularnewline
35 & 0.0704370471962732 & 0.140874094392546 & 0.929562952803727 \tabularnewline
36 & 0.183441874191265 & 0.36688374838253 & 0.816558125808735 \tabularnewline
37 & 0.792836601326088 & 0.414326797347823 & 0.207163398673912 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57465&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.172031675731058[/C][C]0.344063351462115[/C][C]0.827968324268942[/C][/ROW]
[ROW][C]20[/C][C]0.107289737296486[/C][C]0.214579474592972[/C][C]0.892710262703514[/C][/ROW]
[ROW][C]21[/C][C]0.0522927974075045[/C][C]0.104585594815009[/C][C]0.947707202592496[/C][/ROW]
[ROW][C]22[/C][C]0.0294886251678501[/C][C]0.0589772503357001[/C][C]0.97051137483215[/C][/ROW]
[ROW][C]23[/C][C]0.0170735530663957[/C][C]0.0341471061327913[/C][C]0.982926446933604[/C][/ROW]
[ROW][C]24[/C][C]0.00874845003284478[/C][C]0.0174969000656896[/C][C]0.991251549967155[/C][/ROW]
[ROW][C]25[/C][C]0.00743440786090417[/C][C]0.0148688157218083[/C][C]0.992565592139096[/C][/ROW]
[ROW][C]26[/C][C]0.00481740058772041[/C][C]0.00963480117544082[/C][C]0.99518259941228[/C][/ROW]
[ROW][C]27[/C][C]0.0409371538238512[/C][C]0.0818743076477024[/C][C]0.959062846176149[/C][/ROW]
[ROW][C]28[/C][C]0.0255389257033212[/C][C]0.0510778514066424[/C][C]0.974461074296679[/C][/ROW]
[ROW][C]29[/C][C]0.0279773593937619[/C][C]0.0559547187875239[/C][C]0.972022640606238[/C][/ROW]
[ROW][C]30[/C][C]0.0189927398688399[/C][C]0.0379854797376798[/C][C]0.98100726013116[/C][/ROW]
[ROW][C]31[/C][C]0.0172208166354359[/C][C]0.0344416332708718[/C][C]0.982779183364564[/C][/ROW]
[ROW][C]32[/C][C]0.0278677610307252[/C][C]0.0557355220614505[/C][C]0.972132238969275[/C][/ROW]
[ROW][C]33[/C][C]0.0281930351347658[/C][C]0.0563860702695316[/C][C]0.971806964865234[/C][/ROW]
[ROW][C]34[/C][C]0.0502350641314403[/C][C]0.100470128262881[/C][C]0.94976493586856[/C][/ROW]
[ROW][C]35[/C][C]0.0704370471962732[/C][C]0.140874094392546[/C][C]0.929562952803727[/C][/ROW]
[ROW][C]36[/C][C]0.183441874191265[/C][C]0.36688374838253[/C][C]0.816558125808735[/C][/ROW]
[ROW][C]37[/C][C]0.792836601326088[/C][C]0.414326797347823[/C][C]0.207163398673912[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57465&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57465&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.1720316757310580.3440633514621150.827968324268942
200.1072897372964860.2145794745929720.892710262703514
210.05229279740750450.1045855948150090.947707202592496
220.02948862516785010.05897725033570010.97051137483215
230.01707355306639570.03414710613279130.982926446933604
240.008748450032844780.01749690006568960.991251549967155
250.007434407860904170.01486881572180830.992565592139096
260.004817400587720410.009634801175440820.99518259941228
270.04093715382385120.08187430764770240.959062846176149
280.02553892570332120.05107785140664240.974461074296679
290.02797735939376190.05595471878752390.972022640606238
300.01899273986883990.03798547973767980.98100726013116
310.01722081663543590.03444163327087180.982779183364564
320.02786776103072520.05573552206145050.972132238969275
330.02819303513476580.05638607026953160.971806964865234
340.05023506413144030.1004701282628810.94976493586856
350.07043704719627320.1408740943925460.929562952803727
360.1834418741912650.366883748382530.816558125808735
370.7928366013260880.4143267973478230.207163398673912







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level10.0526315789473684NOK
5% type I error level60.315789473684211NOK
10% type I error level120.631578947368421NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57465&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.0526315789473684NOK
5% type I error level60.315789473684211NOK
10% type I error level120.631578947368421NOK



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