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 computationThu, 19 Nov 2009 08:08:36 -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/19/t1258643434cj2qidsjntkjf7k.htm/, Retrieved Thu, 25 Apr 2024 09:05:36 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57750, Retrieved Thu, 25 Apr 2024 09:05:36 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact153
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]
- R  D      [Multiple Regression] [Model 4] [2009-11-19 15:08:36] [026d431dc78a3ce53a040b5408fc0322] [Current]
-    D        [Multiple Regression] [model 4 ws 7] [2009-11-20 14:57:59] [134dc66689e3d457a82860db6471d419]
-    D        [Multiple Regression] [4e Link] [2009-12-02 18:37:08] [4fe1472705bb0a32f118ba3ca90ffa8e]
-    D        [Multiple Regression] [5e link] [2009-12-02 18:40:51] [4fe1472705bb0a32f118ba3ca90ffa8e]
Feedback Forum

Post a new message
Dataseries X:
83.7	0	137.5	114.6	111.3	115.6
106.0	0	83.7	137.5	114.6	111.3
123.4	0	106.0	83.7	137.5	114.6
126.5	0	123.4	106.0	83.7	137.5
120.0	0	126.5	123.4	106.0	83.7
141.6	0	120.0	126.5	123.4	106.0
90.5	0	141.6	120.0	126.5	123.4
96.5	0	90.5	141.6	120.0	126.5
113.5	0	96.5	90.5	141.6	120.0
120.1	0	113.5	96.5	90.5	141.6
123.9	0	120.1	113.5	96.5	90.5
144.4	0	123.9	120.1	113.5	96.5
90.8	0	144.4	123.9	120.1	113.5
114.2	0	90.8	144.4	123.9	120.1
138.1	0	114.2	90.8	144.4	123.9
135.0	0	138.1	114.2	90.8	144.4
131.3	0	135.0	138.1	114.2	90.8
144.6	0	131.3	135.0	138.1	114.2
101.7	0	144.6	131.3	135.0	138.1
108.7	0	101.7	144.6	131.3	135.0
135.3	0	108.7	101.7	144.6	131.3
124.3	0	135.3	108.7	101.7	144.6
138.3	0	124.3	135.3	108.7	101.7
158.2	0	138.3	124.3	135.3	108.7
93.5	0	158.2	138.3	124.3	135.3
124.8	0	93.5	158.2	138.3	124.3
154.4	0	124.8	93.5	158.2	138.3
152.8	0	154.4	124.8	93.5	158.2
148.9	0	152.8	154.4	124.8	93.5
170.3	0	148.9	152.8	154.4	124.8
124.8	0	170.3	148.9	152.8	154.4
134.4	0	124.8	170.3	148.9	152.8
154.0	0	134.4	124.8	170.3	148.9
147.9	0	154.0	134.4	124.8	170.3
168.1	0	147.9	154.0	134.4	124.8
175.7	0	168.1	147.9	154.0	134.4
116.7	0	175.7	168.1	147.9	154.0
140.8	0	116.7	175.7	168.1	147.9
164.2	0	140.8	116.7	175.7	168.1
173.8	0	164.2	140.8	116.7	175.7
167.8	0	173.8	164.2	140.8	116.7
166.6	0	167.8	173.8	164.2	140.8
135.1	1	166.6	167.8	173.8	164.2
158.1	1	135.1	166.6	167.8	173.8
151.8	1	158.1	135.1	166.6	167.8
166.7	1	151.8	158.1	135.1	166.6
165.3	1	166.7	151.8	158.1	135.1
187.0	1	165.3	166.7	151.8	158.1
125.2	1	187.0	165.3	166.7	151.8
144.4	1	125.2	187.0	165.3	166.7
181.7	1	144.4	125.2	187.0	165.3
175.9	1	181.7	144.4	125.2	187.0
166.3	1	175.9	181.7	144.4	125.2
181.5	1	166.3	175.9	181.7	144.4
121.8	1	181.5	166.3	175.9	181.7
134.8	1	121.8	181.5	166.3	175.9
162.9	1	134.8	121.8	181.5	166.3




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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 47.6452791080674 -2.61492695465629X[t] + 0.168332065218935Y1[t] + 0.178485936109504Y2[t] + 0.407679280677300Y3[t] + 0.053273699457221Y4[t] -64.4595287059618M1[t] -37.304278203556M2[t] -12.7597221628184M3[t] + 1.64489339837566M4[t] -15.9606489351920M5[t] -13.1969103636244M6[t] -61.9077462099704M7[t] -42.7379786905838M8[t] -25.0967505219815M9[t] -12.9261758561011M10[t] -9.07613292450198M11[t] + 0.205736207577392t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  47.6452791080674 -2.61492695465629X[t] +  0.168332065218935Y1[t] +  0.178485936109504Y2[t] +  0.407679280677300Y3[t] +  0.053273699457221Y4[t] -64.4595287059618M1[t] -37.304278203556M2[t] -12.7597221628184M3[t] +  1.64489339837566M4[t] -15.9606489351920M5[t] -13.1969103636244M6[t] -61.9077462099704M7[t] -42.7379786905838M8[t] -25.0967505219815M9[t] -12.9261758561011M10[t] -9.07613292450198M11[t] +  0.205736207577392t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57750&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  47.6452791080674 -2.61492695465629X[t] +  0.168332065218935Y1[t] +  0.178485936109504Y2[t] +  0.407679280677300Y3[t] +  0.053273699457221Y4[t] -64.4595287059618M1[t] -37.304278203556M2[t] -12.7597221628184M3[t] +  1.64489339837566M4[t] -15.9606489351920M5[t] -13.1969103636244M6[t] -61.9077462099704M7[t] -42.7379786905838M8[t] -25.0967505219815M9[t] -12.9261758561011M10[t] -9.07613292450198M11[t] +  0.205736207577392t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57750&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57750&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] = + 47.6452791080674 -2.61492695465629X[t] + 0.168332065218935Y1[t] + 0.178485936109504Y2[t] + 0.407679280677300Y3[t] + 0.053273699457221Y4[t] -64.4595287059618M1[t] -37.304278203556M2[t] -12.7597221628184M3[t] + 1.64489339837566M4[t] -15.9606489351920M5[t] -13.1969103636244M6[t] -61.9077462099704M7[t] -42.7379786905838M8[t] -25.0967505219815M9[t] -12.9261758561011M10[t] -9.07613292450198M11[t] + 0.205736207577392t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)47.645279108067424.1153441.97570.0552920.027646
X-2.614926954656293.341649-0.78250.4386310.219316
Y10.1683320652189350.1644451.02360.3123140.156157
Y20.1784859361095040.1595871.11840.2702270.135114
Y30.4076792806773000.1739842.34320.0243130.012156
Y40.0532736994572210.1815530.29340.7707470.385373
M1-64.45952870596185.429632-11.871800
M2-37.30427820355610.939564-3.410.0015230.000762
M3-12.759722162818410.602045-1.20350.2360320.118016
M41.6448933983756610.572920.15560.877170.438585
M5-15.96064893519207.051891-2.26330.0292590.014629
M6-13.19691036362445.498351-2.40020.021260.01063
M7-61.90774620997046.504014-9.518400
M8-42.737978690583810.687725-3.99880.0002750.000137
M9-25.09675052198159.772276-2.56820.0141690.007084
M10-12.92617585610119.377625-1.37840.1759340.087967
M11-9.076132924501985.466635-1.66030.1048790.05244
t0.2057362075773920.273650.75180.4566710.228335

\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) & 47.6452791080674 & 24.115344 & 1.9757 & 0.055292 & 0.027646 \tabularnewline
X & -2.61492695465629 & 3.341649 & -0.7825 & 0.438631 & 0.219316 \tabularnewline
Y1 & 0.168332065218935 & 0.164445 & 1.0236 & 0.312314 & 0.156157 \tabularnewline
Y2 & 0.178485936109504 & 0.159587 & 1.1184 & 0.270227 & 0.135114 \tabularnewline
Y3 & 0.407679280677300 & 0.173984 & 2.3432 & 0.024313 & 0.012156 \tabularnewline
Y4 & 0.053273699457221 & 0.181553 & 0.2934 & 0.770747 & 0.385373 \tabularnewline
M1 & -64.4595287059618 & 5.429632 & -11.8718 & 0 & 0 \tabularnewline
M2 & -37.304278203556 & 10.939564 & -3.41 & 0.001523 & 0.000762 \tabularnewline
M3 & -12.7597221628184 & 10.602045 & -1.2035 & 0.236032 & 0.118016 \tabularnewline
M4 & 1.64489339837566 & 10.57292 & 0.1556 & 0.87717 & 0.438585 \tabularnewline
M5 & -15.9606489351920 & 7.051891 & -2.2633 & 0.029259 & 0.014629 \tabularnewline
M6 & -13.1969103636244 & 5.498351 & -2.4002 & 0.02126 & 0.01063 \tabularnewline
M7 & -61.9077462099704 & 6.504014 & -9.5184 & 0 & 0 \tabularnewline
M8 & -42.7379786905838 & 10.687725 & -3.9988 & 0.000275 & 0.000137 \tabularnewline
M9 & -25.0967505219815 & 9.772276 & -2.5682 & 0.014169 & 0.007084 \tabularnewline
M10 & -12.9261758561011 & 9.377625 & -1.3784 & 0.175934 & 0.087967 \tabularnewline
M11 & -9.07613292450198 & 5.466635 & -1.6603 & 0.104879 & 0.05244 \tabularnewline
t & 0.205736207577392 & 0.27365 & 0.7518 & 0.456671 & 0.228335 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57750&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]47.6452791080674[/C][C]24.115344[/C][C]1.9757[/C][C]0.055292[/C][C]0.027646[/C][/ROW]
[ROW][C]X[/C][C]-2.61492695465629[/C][C]3.341649[/C][C]-0.7825[/C][C]0.438631[/C][C]0.219316[/C][/ROW]
[ROW][C]Y1[/C][C]0.168332065218935[/C][C]0.164445[/C][C]1.0236[/C][C]0.312314[/C][C]0.156157[/C][/ROW]
[ROW][C]Y2[/C][C]0.178485936109504[/C][C]0.159587[/C][C]1.1184[/C][C]0.270227[/C][C]0.135114[/C][/ROW]
[ROW][C]Y3[/C][C]0.407679280677300[/C][C]0.173984[/C][C]2.3432[/C][C]0.024313[/C][C]0.012156[/C][/ROW]
[ROW][C]Y4[/C][C]0.053273699457221[/C][C]0.181553[/C][C]0.2934[/C][C]0.770747[/C][C]0.385373[/C][/ROW]
[ROW][C]M1[/C][C]-64.4595287059618[/C][C]5.429632[/C][C]-11.8718[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M2[/C][C]-37.304278203556[/C][C]10.939564[/C][C]-3.41[/C][C]0.001523[/C][C]0.000762[/C][/ROW]
[ROW][C]M3[/C][C]-12.7597221628184[/C][C]10.602045[/C][C]-1.2035[/C][C]0.236032[/C][C]0.118016[/C][/ROW]
[ROW][C]M4[/C][C]1.64489339837566[/C][C]10.57292[/C][C]0.1556[/C][C]0.87717[/C][C]0.438585[/C][/ROW]
[ROW][C]M5[/C][C]-15.9606489351920[/C][C]7.051891[/C][C]-2.2633[/C][C]0.029259[/C][C]0.014629[/C][/ROW]
[ROW][C]M6[/C][C]-13.1969103636244[/C][C]5.498351[/C][C]-2.4002[/C][C]0.02126[/C][C]0.01063[/C][/ROW]
[ROW][C]M7[/C][C]-61.9077462099704[/C][C]6.504014[/C][C]-9.5184[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]-42.7379786905838[/C][C]10.687725[/C][C]-3.9988[/C][C]0.000275[/C][C]0.000137[/C][/ROW]
[ROW][C]M9[/C][C]-25.0967505219815[/C][C]9.772276[/C][C]-2.5682[/C][C]0.014169[/C][C]0.007084[/C][/ROW]
[ROW][C]M10[/C][C]-12.9261758561011[/C][C]9.377625[/C][C]-1.3784[/C][C]0.175934[/C][C]0.087967[/C][/ROW]
[ROW][C]M11[/C][C]-9.07613292450198[/C][C]5.466635[/C][C]-1.6603[/C][C]0.104879[/C][C]0.05244[/C][/ROW]
[ROW][C]t[/C][C]0.205736207577392[/C][C]0.27365[/C][C]0.7518[/C][C]0.456671[/C][C]0.228335[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57750&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57750&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)47.645279108067424.1153441.97570.0552920.027646
X-2.614926954656293.341649-0.78250.4386310.219316
Y10.1683320652189350.1644451.02360.3123140.156157
Y20.1784859361095040.1595871.11840.2702270.135114
Y30.4076792806773000.1739842.34320.0243130.012156
Y40.0532736994572210.1815530.29340.7707470.385373
M1-64.45952870596185.429632-11.871800
M2-37.30427820355610.939564-3.410.0015230.000762
M3-12.759722162818410.602045-1.20350.2360320.118016
M41.6448933983756610.572920.15560.877170.438585
M5-15.96064893519207.051891-2.26330.0292590.014629
M6-13.19691036362445.498351-2.40020.021260.01063
M7-61.90774620997046.504014-9.518400
M8-42.737978690583810.687725-3.99880.0002750.000137
M9-25.09675052198159.772276-2.56820.0141690.007084
M10-12.92617585610119.377625-1.37840.1759340.087967
M11-9.076132924501985.466635-1.66030.1048790.05244
t0.2057362075773920.273650.75180.4566710.228335







Multiple Linear Regression - Regression Statistics
Multiple R0.976124683817898
R-squared0.95281939835859
Adjusted R-squared0.932253495079002
F-TEST (value)46.3300534581549
F-TEST (DF numerator)17
F-TEST (DF denominator)39
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.76798289851965
Sum Squared Residuals1786.41810807153

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.976124683817898 \tabularnewline
R-squared & 0.95281939835859 \tabularnewline
Adjusted R-squared & 0.932253495079002 \tabularnewline
F-TEST (value) & 46.3300534581549 \tabularnewline
F-TEST (DF numerator) & 17 \tabularnewline
F-TEST (DF denominator) & 39 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 6.76798289851965 \tabularnewline
Sum Squared Residuals & 1786.41810807153 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57750&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.976124683817898[/C][/ROW]
[ROW][C]R-squared[/C][C]0.95281939835859[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.932253495079002[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]46.3300534581549[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]17[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]39[/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]6.76798289851965[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1786.41810807153[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57750&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57750&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.976124683817898
R-squared0.95281939835859
Adjusted R-squared0.932253495079002
F-TEST (value)46.3300534581549
F-TEST (DF numerator)17
F-TEST (DF denominator)39
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.76798289851965
Sum Squared Residuals1786.41810807153







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
183.778.5247774520745.17522254792598
2106102.0330917087553.96690829124484
3123.4130.44630438448-7.04630438448
4126.5131.252692880435-4.75269288043451
5120123.705494373234-3.70549437323354
6141.6134.4157401120767.184259887924
790.590.57722263798-0.077222637979992
896.5102.721487196137-6.2214871961366
9113.5120.917406044592-7.41740604459194
10120.1117.5445783090952.55542169090537
11123.9125.469399634377-1.56939963437743
12144.4143.8191277608690.580872239131105
1390.887.29072529993183.50927470006823
14114.2111.1888626874163.01113731258373
15138.1138.871144398207-0.771144398206966
16135140.921704825243-5.92170482524313
17131.3133.950108047033-2.65010804703304
18144.6146.733587158415-2.13358715841498
19101.799.8163416703811.883658329619
20108.7112.670700942886-3.97070094288573
21135.3129.2639648615176.03603513848342
22124.3130.586409284289-6.28640928428948
23138.3138.1065748645970.193425135403223
24158.2158.998932374753-0.798932374753439
2593.597.5263593978706-4.02635939787064
26124.8122.6696308522212.13036914777932
27154.4149.9993261534834.40067384651726
28152.8149.8622140123402.93778598766044
29148.9146.7898134211582.11018657884242
30170.3162.5519891492337.74801085076738
31124.8117.8777152101726.92228478982777
32134.4131.7385218886452.66147811135491
33154151.5969331765552.40306682344484
34147.9151.576667412523-3.67666741252271
35168.1159.5937130708088.50628692919152
36175.7179.689067126107-3.98906712610677
37116.7118.877335130028-2.17733513002824
38140.8145.573375009519-4.77337500951892
39164.2168.024291061333-3.82429106133284
40173.8167.2269267723816.5730732276194
41167.8162.3016017738015.49839822619864
42166.6176.798140473052-10.1981404730519
43135.1129.5655254465085.53447455349176
44158.1141.4897378264716.6102621735300
45151.8156.777175381680-4.97717538167963
46166.7159.2923449940937.40765500590683
47165.3172.430312430217-7.13031243021731
48187182.7928727382714.20712726172911
49125.2127.680802720095-2.48080272009532
50144.4148.735039742089-4.33503974208898
51181.7174.4589340024977.24106599750255
52175.9174.7364615096021.16353849039780
53166.3167.552982384775-1.25298238477449
54181.5184.100543107225-2.60054310722453
55121.8136.063195034959-14.2631950349585
56134.8143.879552145863-9.07955214586262
57162.9158.9445205356573.95547946434331

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 83.7 & 78.524777452074 & 5.17522254792598 \tabularnewline
2 & 106 & 102.033091708755 & 3.96690829124484 \tabularnewline
3 & 123.4 & 130.44630438448 & -7.04630438448 \tabularnewline
4 & 126.5 & 131.252692880435 & -4.75269288043451 \tabularnewline
5 & 120 & 123.705494373234 & -3.70549437323354 \tabularnewline
6 & 141.6 & 134.415740112076 & 7.184259887924 \tabularnewline
7 & 90.5 & 90.57722263798 & -0.077222637979992 \tabularnewline
8 & 96.5 & 102.721487196137 & -6.2214871961366 \tabularnewline
9 & 113.5 & 120.917406044592 & -7.41740604459194 \tabularnewline
10 & 120.1 & 117.544578309095 & 2.55542169090537 \tabularnewline
11 & 123.9 & 125.469399634377 & -1.56939963437743 \tabularnewline
12 & 144.4 & 143.819127760869 & 0.580872239131105 \tabularnewline
13 & 90.8 & 87.2907252999318 & 3.50927470006823 \tabularnewline
14 & 114.2 & 111.188862687416 & 3.01113731258373 \tabularnewline
15 & 138.1 & 138.871144398207 & -0.771144398206966 \tabularnewline
16 & 135 & 140.921704825243 & -5.92170482524313 \tabularnewline
17 & 131.3 & 133.950108047033 & -2.65010804703304 \tabularnewline
18 & 144.6 & 146.733587158415 & -2.13358715841498 \tabularnewline
19 & 101.7 & 99.816341670381 & 1.883658329619 \tabularnewline
20 & 108.7 & 112.670700942886 & -3.97070094288573 \tabularnewline
21 & 135.3 & 129.263964861517 & 6.03603513848342 \tabularnewline
22 & 124.3 & 130.586409284289 & -6.28640928428948 \tabularnewline
23 & 138.3 & 138.106574864597 & 0.193425135403223 \tabularnewline
24 & 158.2 & 158.998932374753 & -0.798932374753439 \tabularnewline
25 & 93.5 & 97.5263593978706 & -4.02635939787064 \tabularnewline
26 & 124.8 & 122.669630852221 & 2.13036914777932 \tabularnewline
27 & 154.4 & 149.999326153483 & 4.40067384651726 \tabularnewline
28 & 152.8 & 149.862214012340 & 2.93778598766044 \tabularnewline
29 & 148.9 & 146.789813421158 & 2.11018657884242 \tabularnewline
30 & 170.3 & 162.551989149233 & 7.74801085076738 \tabularnewline
31 & 124.8 & 117.877715210172 & 6.92228478982777 \tabularnewline
32 & 134.4 & 131.738521888645 & 2.66147811135491 \tabularnewline
33 & 154 & 151.596933176555 & 2.40306682344484 \tabularnewline
34 & 147.9 & 151.576667412523 & -3.67666741252271 \tabularnewline
35 & 168.1 & 159.593713070808 & 8.50628692919152 \tabularnewline
36 & 175.7 & 179.689067126107 & -3.98906712610677 \tabularnewline
37 & 116.7 & 118.877335130028 & -2.17733513002824 \tabularnewline
38 & 140.8 & 145.573375009519 & -4.77337500951892 \tabularnewline
39 & 164.2 & 168.024291061333 & -3.82429106133284 \tabularnewline
40 & 173.8 & 167.226926772381 & 6.5730732276194 \tabularnewline
41 & 167.8 & 162.301601773801 & 5.49839822619864 \tabularnewline
42 & 166.6 & 176.798140473052 & -10.1981404730519 \tabularnewline
43 & 135.1 & 129.565525446508 & 5.53447455349176 \tabularnewline
44 & 158.1 & 141.48973782647 & 16.6102621735300 \tabularnewline
45 & 151.8 & 156.777175381680 & -4.97717538167963 \tabularnewline
46 & 166.7 & 159.292344994093 & 7.40765500590683 \tabularnewline
47 & 165.3 & 172.430312430217 & -7.13031243021731 \tabularnewline
48 & 187 & 182.792872738271 & 4.20712726172911 \tabularnewline
49 & 125.2 & 127.680802720095 & -2.48080272009532 \tabularnewline
50 & 144.4 & 148.735039742089 & -4.33503974208898 \tabularnewline
51 & 181.7 & 174.458934002497 & 7.24106599750255 \tabularnewline
52 & 175.9 & 174.736461509602 & 1.16353849039780 \tabularnewline
53 & 166.3 & 167.552982384775 & -1.25298238477449 \tabularnewline
54 & 181.5 & 184.100543107225 & -2.60054310722453 \tabularnewline
55 & 121.8 & 136.063195034959 & -14.2631950349585 \tabularnewline
56 & 134.8 & 143.879552145863 & -9.07955214586262 \tabularnewline
57 & 162.9 & 158.944520535657 & 3.95547946434331 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57750&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]83.7[/C][C]78.524777452074[/C][C]5.17522254792598[/C][/ROW]
[ROW][C]2[/C][C]106[/C][C]102.033091708755[/C][C]3.96690829124484[/C][/ROW]
[ROW][C]3[/C][C]123.4[/C][C]130.44630438448[/C][C]-7.04630438448[/C][/ROW]
[ROW][C]4[/C][C]126.5[/C][C]131.252692880435[/C][C]-4.75269288043451[/C][/ROW]
[ROW][C]5[/C][C]120[/C][C]123.705494373234[/C][C]-3.70549437323354[/C][/ROW]
[ROW][C]6[/C][C]141.6[/C][C]134.415740112076[/C][C]7.184259887924[/C][/ROW]
[ROW][C]7[/C][C]90.5[/C][C]90.57722263798[/C][C]-0.077222637979992[/C][/ROW]
[ROW][C]8[/C][C]96.5[/C][C]102.721487196137[/C][C]-6.2214871961366[/C][/ROW]
[ROW][C]9[/C][C]113.5[/C][C]120.917406044592[/C][C]-7.41740604459194[/C][/ROW]
[ROW][C]10[/C][C]120.1[/C][C]117.544578309095[/C][C]2.55542169090537[/C][/ROW]
[ROW][C]11[/C][C]123.9[/C][C]125.469399634377[/C][C]-1.56939963437743[/C][/ROW]
[ROW][C]12[/C][C]144.4[/C][C]143.819127760869[/C][C]0.580872239131105[/C][/ROW]
[ROW][C]13[/C][C]90.8[/C][C]87.2907252999318[/C][C]3.50927470006823[/C][/ROW]
[ROW][C]14[/C][C]114.2[/C][C]111.188862687416[/C][C]3.01113731258373[/C][/ROW]
[ROW][C]15[/C][C]138.1[/C][C]138.871144398207[/C][C]-0.771144398206966[/C][/ROW]
[ROW][C]16[/C][C]135[/C][C]140.921704825243[/C][C]-5.92170482524313[/C][/ROW]
[ROW][C]17[/C][C]131.3[/C][C]133.950108047033[/C][C]-2.65010804703304[/C][/ROW]
[ROW][C]18[/C][C]144.6[/C][C]146.733587158415[/C][C]-2.13358715841498[/C][/ROW]
[ROW][C]19[/C][C]101.7[/C][C]99.816341670381[/C][C]1.883658329619[/C][/ROW]
[ROW][C]20[/C][C]108.7[/C][C]112.670700942886[/C][C]-3.97070094288573[/C][/ROW]
[ROW][C]21[/C][C]135.3[/C][C]129.263964861517[/C][C]6.03603513848342[/C][/ROW]
[ROW][C]22[/C][C]124.3[/C][C]130.586409284289[/C][C]-6.28640928428948[/C][/ROW]
[ROW][C]23[/C][C]138.3[/C][C]138.106574864597[/C][C]0.193425135403223[/C][/ROW]
[ROW][C]24[/C][C]158.2[/C][C]158.998932374753[/C][C]-0.798932374753439[/C][/ROW]
[ROW][C]25[/C][C]93.5[/C][C]97.5263593978706[/C][C]-4.02635939787064[/C][/ROW]
[ROW][C]26[/C][C]124.8[/C][C]122.669630852221[/C][C]2.13036914777932[/C][/ROW]
[ROW][C]27[/C][C]154.4[/C][C]149.999326153483[/C][C]4.40067384651726[/C][/ROW]
[ROW][C]28[/C][C]152.8[/C][C]149.862214012340[/C][C]2.93778598766044[/C][/ROW]
[ROW][C]29[/C][C]148.9[/C][C]146.789813421158[/C][C]2.11018657884242[/C][/ROW]
[ROW][C]30[/C][C]170.3[/C][C]162.551989149233[/C][C]7.74801085076738[/C][/ROW]
[ROW][C]31[/C][C]124.8[/C][C]117.877715210172[/C][C]6.92228478982777[/C][/ROW]
[ROW][C]32[/C][C]134.4[/C][C]131.738521888645[/C][C]2.66147811135491[/C][/ROW]
[ROW][C]33[/C][C]154[/C][C]151.596933176555[/C][C]2.40306682344484[/C][/ROW]
[ROW][C]34[/C][C]147.9[/C][C]151.576667412523[/C][C]-3.67666741252271[/C][/ROW]
[ROW][C]35[/C][C]168.1[/C][C]159.593713070808[/C][C]8.50628692919152[/C][/ROW]
[ROW][C]36[/C][C]175.7[/C][C]179.689067126107[/C][C]-3.98906712610677[/C][/ROW]
[ROW][C]37[/C][C]116.7[/C][C]118.877335130028[/C][C]-2.17733513002824[/C][/ROW]
[ROW][C]38[/C][C]140.8[/C][C]145.573375009519[/C][C]-4.77337500951892[/C][/ROW]
[ROW][C]39[/C][C]164.2[/C][C]168.024291061333[/C][C]-3.82429106133284[/C][/ROW]
[ROW][C]40[/C][C]173.8[/C][C]167.226926772381[/C][C]6.5730732276194[/C][/ROW]
[ROW][C]41[/C][C]167.8[/C][C]162.301601773801[/C][C]5.49839822619864[/C][/ROW]
[ROW][C]42[/C][C]166.6[/C][C]176.798140473052[/C][C]-10.1981404730519[/C][/ROW]
[ROW][C]43[/C][C]135.1[/C][C]129.565525446508[/C][C]5.53447455349176[/C][/ROW]
[ROW][C]44[/C][C]158.1[/C][C]141.48973782647[/C][C]16.6102621735300[/C][/ROW]
[ROW][C]45[/C][C]151.8[/C][C]156.777175381680[/C][C]-4.97717538167963[/C][/ROW]
[ROW][C]46[/C][C]166.7[/C][C]159.292344994093[/C][C]7.40765500590683[/C][/ROW]
[ROW][C]47[/C][C]165.3[/C][C]172.430312430217[/C][C]-7.13031243021731[/C][/ROW]
[ROW][C]48[/C][C]187[/C][C]182.792872738271[/C][C]4.20712726172911[/C][/ROW]
[ROW][C]49[/C][C]125.2[/C][C]127.680802720095[/C][C]-2.48080272009532[/C][/ROW]
[ROW][C]50[/C][C]144.4[/C][C]148.735039742089[/C][C]-4.33503974208898[/C][/ROW]
[ROW][C]51[/C][C]181.7[/C][C]174.458934002497[/C][C]7.24106599750255[/C][/ROW]
[ROW][C]52[/C][C]175.9[/C][C]174.736461509602[/C][C]1.16353849039780[/C][/ROW]
[ROW][C]53[/C][C]166.3[/C][C]167.552982384775[/C][C]-1.25298238477449[/C][/ROW]
[ROW][C]54[/C][C]181.5[/C][C]184.100543107225[/C][C]-2.60054310722453[/C][/ROW]
[ROW][C]55[/C][C]121.8[/C][C]136.063195034959[/C][C]-14.2631950349585[/C][/ROW]
[ROW][C]56[/C][C]134.8[/C][C]143.879552145863[/C][C]-9.07955214586262[/C][/ROW]
[ROW][C]57[/C][C]162.9[/C][C]158.944520535657[/C][C]3.95547946434331[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57750&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57750&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
183.778.5247774520745.17522254792598
2106102.0330917087553.96690829124484
3123.4130.44630438448-7.04630438448
4126.5131.252692880435-4.75269288043451
5120123.705494373234-3.70549437323354
6141.6134.4157401120767.184259887924
790.590.57722263798-0.077222637979992
896.5102.721487196137-6.2214871961366
9113.5120.917406044592-7.41740604459194
10120.1117.5445783090952.55542169090537
11123.9125.469399634377-1.56939963437743
12144.4143.8191277608690.580872239131105
1390.887.29072529993183.50927470006823
14114.2111.1888626874163.01113731258373
15138.1138.871144398207-0.771144398206966
16135140.921704825243-5.92170482524313
17131.3133.950108047033-2.65010804703304
18144.6146.733587158415-2.13358715841498
19101.799.8163416703811.883658329619
20108.7112.670700942886-3.97070094288573
21135.3129.2639648615176.03603513848342
22124.3130.586409284289-6.28640928428948
23138.3138.1065748645970.193425135403223
24158.2158.998932374753-0.798932374753439
2593.597.5263593978706-4.02635939787064
26124.8122.6696308522212.13036914777932
27154.4149.9993261534834.40067384651726
28152.8149.8622140123402.93778598766044
29148.9146.7898134211582.11018657884242
30170.3162.5519891492337.74801085076738
31124.8117.8777152101726.92228478982777
32134.4131.7385218886452.66147811135491
33154151.5969331765552.40306682344484
34147.9151.576667412523-3.67666741252271
35168.1159.5937130708088.50628692919152
36175.7179.689067126107-3.98906712610677
37116.7118.877335130028-2.17733513002824
38140.8145.573375009519-4.77337500951892
39164.2168.024291061333-3.82429106133284
40173.8167.2269267723816.5730732276194
41167.8162.3016017738015.49839822619864
42166.6176.798140473052-10.1981404730519
43135.1129.5655254465085.53447455349176
44158.1141.4897378264716.6102621735300
45151.8156.777175381680-4.97717538167963
46166.7159.2923449940937.40765500590683
47165.3172.430312430217-7.13031243021731
48187182.7928727382714.20712726172911
49125.2127.680802720095-2.48080272009532
50144.4148.735039742089-4.33503974208898
51181.7174.4589340024977.24106599750255
52175.9174.7364615096021.16353849039780
53166.3167.552982384775-1.25298238477449
54181.5184.100543107225-2.60054310722453
55121.8136.063195034959-14.2631950349585
56134.8143.879552145863-9.07955214586262
57162.9158.9445205356573.95547946434331







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.08303766526433340.1660753305286670.916962334735667
220.02819550215711490.05639100431422980.971804497842885
230.02566528775139230.05133057550278470.974334712248608
240.053207795214830.106415590429660.94679220478517
250.1663169996475960.3326339992951930.833683000352404
260.09418013906435150.1883602781287030.905819860935648
270.06519178579590280.1303835715918060.934808214204097
280.06139626894807550.1227925378961510.938603731051925
290.1898263717628350.3796527435256690.810173628237165
300.3431006023785430.6862012047570850.656899397621457
310.2427604330709040.4855208661418090.757239566929096
320.1995504843037130.3991009686074260.800449515696287
330.1233617005315590.2467234010631170.876638299468441
340.3600786644051000.7201573288101990.6399213355949
350.3386223271683570.6772446543367140.661377672831643
360.3388487690578370.6776975381156750.661151230942163

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.0830376652643334 & 0.166075330528667 & 0.916962334735667 \tabularnewline
22 & 0.0281955021571149 & 0.0563910043142298 & 0.971804497842885 \tabularnewline
23 & 0.0256652877513923 & 0.0513305755027847 & 0.974334712248608 \tabularnewline
24 & 0.05320779521483 & 0.10641559042966 & 0.94679220478517 \tabularnewline
25 & 0.166316999647596 & 0.332633999295193 & 0.833683000352404 \tabularnewline
26 & 0.0941801390643515 & 0.188360278128703 & 0.905819860935648 \tabularnewline
27 & 0.0651917857959028 & 0.130383571591806 & 0.934808214204097 \tabularnewline
28 & 0.0613962689480755 & 0.122792537896151 & 0.938603731051925 \tabularnewline
29 & 0.189826371762835 & 0.379652743525669 & 0.810173628237165 \tabularnewline
30 & 0.343100602378543 & 0.686201204757085 & 0.656899397621457 \tabularnewline
31 & 0.242760433070904 & 0.485520866141809 & 0.757239566929096 \tabularnewline
32 & 0.199550484303713 & 0.399100968607426 & 0.800449515696287 \tabularnewline
33 & 0.123361700531559 & 0.246723401063117 & 0.876638299468441 \tabularnewline
34 & 0.360078664405100 & 0.720157328810199 & 0.6399213355949 \tabularnewline
35 & 0.338622327168357 & 0.677244654336714 & 0.661377672831643 \tabularnewline
36 & 0.338848769057837 & 0.677697538115675 & 0.661151230942163 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57750&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.0830376652643334[/C][C]0.166075330528667[/C][C]0.916962334735667[/C][/ROW]
[ROW][C]22[/C][C]0.0281955021571149[/C][C]0.0563910043142298[/C][C]0.971804497842885[/C][/ROW]
[ROW][C]23[/C][C]0.0256652877513923[/C][C]0.0513305755027847[/C][C]0.974334712248608[/C][/ROW]
[ROW][C]24[/C][C]0.05320779521483[/C][C]0.10641559042966[/C][C]0.94679220478517[/C][/ROW]
[ROW][C]25[/C][C]0.166316999647596[/C][C]0.332633999295193[/C][C]0.833683000352404[/C][/ROW]
[ROW][C]26[/C][C]0.0941801390643515[/C][C]0.188360278128703[/C][C]0.905819860935648[/C][/ROW]
[ROW][C]27[/C][C]0.0651917857959028[/C][C]0.130383571591806[/C][C]0.934808214204097[/C][/ROW]
[ROW][C]28[/C][C]0.0613962689480755[/C][C]0.122792537896151[/C][C]0.938603731051925[/C][/ROW]
[ROW][C]29[/C][C]0.189826371762835[/C][C]0.379652743525669[/C][C]0.810173628237165[/C][/ROW]
[ROW][C]30[/C][C]0.343100602378543[/C][C]0.686201204757085[/C][C]0.656899397621457[/C][/ROW]
[ROW][C]31[/C][C]0.242760433070904[/C][C]0.485520866141809[/C][C]0.757239566929096[/C][/ROW]
[ROW][C]32[/C][C]0.199550484303713[/C][C]0.399100968607426[/C][C]0.800449515696287[/C][/ROW]
[ROW][C]33[/C][C]0.123361700531559[/C][C]0.246723401063117[/C][C]0.876638299468441[/C][/ROW]
[ROW][C]34[/C][C]0.360078664405100[/C][C]0.720157328810199[/C][C]0.6399213355949[/C][/ROW]
[ROW][C]35[/C][C]0.338622327168357[/C][C]0.677244654336714[/C][C]0.661377672831643[/C][/ROW]
[ROW][C]36[/C][C]0.338848769057837[/C][C]0.677697538115675[/C][C]0.661151230942163[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57750&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57750&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.08303766526433340.1660753305286670.916962334735667
220.02819550215711490.05639100431422980.971804497842885
230.02566528775139230.05133057550278470.974334712248608
240.053207795214830.106415590429660.94679220478517
250.1663169996475960.3326339992951930.833683000352404
260.09418013906435150.1883602781287030.905819860935648
270.06519178579590280.1303835715918060.934808214204097
280.06139626894807550.1227925378961510.938603731051925
290.1898263717628350.3796527435256690.810173628237165
300.3431006023785430.6862012047570850.656899397621457
310.2427604330709040.4855208661418090.757239566929096
320.1995504843037130.3991009686074260.800449515696287
330.1233617005315590.2467234010631170.876638299468441
340.3600786644051000.7201573288101990.6399213355949
350.3386223271683570.6772446543367140.661377672831643
360.3388487690578370.6776975381156750.661151230942163







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 level20.125NOK

\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 & 2 & 0.125 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57750&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]2[/C][C]0.125[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57750&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57750&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 level20.125NOK



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