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 computationMon, 22 Dec 2008 09:07:08 -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/2008/Dec/22/t1229962069wytn5tji6wyu391.htm/, Retrieved Mon, 13 May 2024 04:43:13 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=36111, Retrieved Mon, 13 May 2024 04:43:13 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsmultiple lineair regression
Estimated Impact176
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F     [Multiple Regression] [MLR] [2008-11-26 18:25:12] [3ffd109c9e040b1ae7e5dbe576d4698c]
- R P   [Multiple Regression] [Multiple Lineair ...] [2008-12-16 16:18:01] [3ffd109c9e040b1ae7e5dbe576d4698c]
-   P     [Multiple Regression] [Mutliple lineair ...] [2008-12-17 10:07:11] [3ffd109c9e040b1ae7e5dbe576d4698c]
-    D        [Multiple Regression] [multiple lineair ...] [2008-12-22 16:07:08] [962e6c9020896982bc8283b8971710a9] [Current]
-               [Multiple Regression] [met monthly dummi...] [2008-12-24 11:58:38] [b28ef2aea2cd58ceb5ad90223572c703]
Feedback Forum

Post a new message
Dataseries X:
147768	0
137507	0
136919	0
136151	0
133001	0
125554	0
119647	0
114158	0
116193	0
152803	0
161761	0
160942	0
149470	0
139208	0
134588	0
130322	0
126611	0
122401	0
117352	0
112135	0
112879	0
148729	0
157230	0
157221	0
146681	0
136524	0
132111	0
125326	1
122716	1
116615	1
113719	1
110737	1
112093	1
143565	1
149946	1
149147	1
134339	1
122683	1
115614	1
116566	1
111272	1
104609	1
101802	1
94542	1
93051	1
124129	1
130374	1
123946	1
114971	1
105531	1
104919	1
104782	0
101281	0
94545	0
93248	0
84031	0
87486	0
115867	0
120327	0
117008	0
108811	0




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24

\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 & 5 seconds \tabularnewline
R Server & 'Sir Ronald Aylmer Fisher' @ 193.190.124.24 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=36111&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]5 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Sir Ronald Aylmer Fisher' @ 193.190.124.24[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=36111&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36111&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 time5 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24







Multiple Linear Regression - Estimated Regression Equation
jonger_dan_25[t] = + 167690.964705882 + 2367.82608695652plan[t] -11569.5692526286M1[t] -20858.1153168514M2[t] -23568.9237851662M3[t] -25020.1322534811M4[t] -27923.7407217960M5[t] -33405.5491901108M6[t] -36247.1576584257M7[t] -41530.5661267406M8[t] -39561.1745950554M9[t] -6133.38306337028M10[t] + 1525.20846831486M11[t] -749.591531685138t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
jonger_dan_25[t] =  +  167690.964705882 +  2367.82608695652plan[t] -11569.5692526286M1[t] -20858.1153168514M2[t] -23568.9237851662M3[t] -25020.1322534811M4[t] -27923.7407217960M5[t] -33405.5491901108M6[t] -36247.1576584257M7[t] -41530.5661267406M8[t] -39561.1745950554M9[t] -6133.38306337028M10[t] +  1525.20846831486M11[t] -749.591531685138t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=36111&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]jonger_dan_25[t] =  +  167690.964705882 +  2367.82608695652plan[t] -11569.5692526286M1[t] -20858.1153168514M2[t] -23568.9237851662M3[t] -25020.1322534811M4[t] -27923.7407217960M5[t] -33405.5491901108M6[t] -36247.1576584257M7[t] -41530.5661267406M8[t] -39561.1745950554M9[t] -6133.38306337028M10[t] +  1525.20846831486M11[t] -749.591531685138t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=36111&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36111&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
jonger_dan_25[t] = + 167690.964705882 + 2367.82608695652plan[t] -11569.5692526286M1[t] -20858.1153168514M2[t] -23568.9237851662M3[t] -25020.1322534811M4[t] -27923.7407217960M5[t] -33405.5491901108M6[t] -36247.1576584257M7[t] -41530.5661267406M8[t] -39561.1745950554M9[t] -6133.38306337028M10[t] + 1525.20846831486M11[t] -749.591531685138t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)167690.9647058822650.69650563.26300
plan2367.826086956521454.9305681.62740.1103280.055164
M1-11569.56925262863091.377983-3.74250.0004960.000248
M2-20858.11531685143248.70855-6.420400
M3-23568.92378516623243.804918-7.265800
M4-25020.13225348113239.411166-7.723700
M5-27923.74072179603235.529372-8.630300
M6-33405.54919011083232.161379-10.335400
M7-36247.15765842573229.308795-11.224400
M8-41530.56612674063226.972987-12.869800
M9-39561.17459505543225.155078-12.266400
M10-6133.383063370283223.855944-1.90250.0632430.031621
M111525.208468314863223.0762120.47320.638250.319125
t-749.59153168513840.934411-18.31200

\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) & 167690.964705882 & 2650.696505 & 63.263 & 0 & 0 \tabularnewline
plan & 2367.82608695652 & 1454.930568 & 1.6274 & 0.110328 & 0.055164 \tabularnewline
M1 & -11569.5692526286 & 3091.377983 & -3.7425 & 0.000496 & 0.000248 \tabularnewline
M2 & -20858.1153168514 & 3248.70855 & -6.4204 & 0 & 0 \tabularnewline
M3 & -23568.9237851662 & 3243.804918 & -7.2658 & 0 & 0 \tabularnewline
M4 & -25020.1322534811 & 3239.411166 & -7.7237 & 0 & 0 \tabularnewline
M5 & -27923.7407217960 & 3235.529372 & -8.6303 & 0 & 0 \tabularnewline
M6 & -33405.5491901108 & 3232.161379 & -10.3354 & 0 & 0 \tabularnewline
M7 & -36247.1576584257 & 3229.308795 & -11.2244 & 0 & 0 \tabularnewline
M8 & -41530.5661267406 & 3226.972987 & -12.8698 & 0 & 0 \tabularnewline
M9 & -39561.1745950554 & 3225.155078 & -12.2664 & 0 & 0 \tabularnewline
M10 & -6133.38306337028 & 3223.855944 & -1.9025 & 0.063243 & 0.031621 \tabularnewline
M11 & 1525.20846831486 & 3223.076212 & 0.4732 & 0.63825 & 0.319125 \tabularnewline
t & -749.591531685138 & 40.934411 & -18.312 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=36111&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]167690.964705882[/C][C]2650.696505[/C][C]63.263[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]plan[/C][C]2367.82608695652[/C][C]1454.930568[/C][C]1.6274[/C][C]0.110328[/C][C]0.055164[/C][/ROW]
[ROW][C]M1[/C][C]-11569.5692526286[/C][C]3091.377983[/C][C]-3.7425[/C][C]0.000496[/C][C]0.000248[/C][/ROW]
[ROW][C]M2[/C][C]-20858.1153168514[/C][C]3248.70855[/C][C]-6.4204[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M3[/C][C]-23568.9237851662[/C][C]3243.804918[/C][C]-7.2658[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M4[/C][C]-25020.1322534811[/C][C]3239.411166[/C][C]-7.7237[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M5[/C][C]-27923.7407217960[/C][C]3235.529372[/C][C]-8.6303[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M6[/C][C]-33405.5491901108[/C][C]3232.161379[/C][C]-10.3354[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M7[/C][C]-36247.1576584257[/C][C]3229.308795[/C][C]-11.2244[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]-41530.5661267406[/C][C]3226.972987[/C][C]-12.8698[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M9[/C][C]-39561.1745950554[/C][C]3225.155078[/C][C]-12.2664[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M10[/C][C]-6133.38306337028[/C][C]3223.855944[/C][C]-1.9025[/C][C]0.063243[/C][C]0.031621[/C][/ROW]
[ROW][C]M11[/C][C]1525.20846831486[/C][C]3223.076212[/C][C]0.4732[/C][C]0.63825[/C][C]0.319125[/C][/ROW]
[ROW][C]t[/C][C]-749.591531685138[/C][C]40.934411[/C][C]-18.312[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=36111&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36111&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)167690.9647058822650.69650563.26300
plan2367.826086956521454.9305681.62740.1103280.055164
M1-11569.56925262863091.377983-3.74250.0004960.000248
M2-20858.11531685143248.70855-6.420400
M3-23568.92378516623243.804918-7.265800
M4-25020.13225348113239.411166-7.723700
M5-27923.74072179603235.529372-8.630300
M6-33405.54919011083232.161379-10.335400
M7-36247.15765842573229.308795-11.224400
M8-41530.56612674063226.972987-12.869800
M9-39561.17459505543225.155078-12.266400
M10-6133.383063370283223.855944-1.90250.0632430.031621
M111525.208468314863223.0762120.47320.638250.319125
t-749.59153168513840.934411-18.31200







Multiple Linear Regression - Regression Statistics
Multiple R0.971752807351331
R-squared0.944303518595193
Adjusted R-squared0.928898108844928
F-TEST (value)61.2968777788535
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5095.71992960273
Sum Squared Residuals1220418995.24467

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.971752807351331 \tabularnewline
R-squared & 0.944303518595193 \tabularnewline
Adjusted R-squared & 0.928898108844928 \tabularnewline
F-TEST (value) & 61.2968777788535 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 5095.71992960273 \tabularnewline
Sum Squared Residuals & 1220418995.24467 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=36111&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.971752807351331[/C][/ROW]
[ROW][C]R-squared[/C][C]0.944303518595193[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.928898108844928[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]61.2968777788535[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/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]5095.71992960273[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1220418995.24467[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=36111&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36111&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.971752807351331
R-squared0.944303518595193
Adjusted R-squared0.928898108844928
F-TEST (value)61.2968777788535
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5095.71992960273
Sum Squared Residuals1220418995.24467







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1147768155371.803921569-7603.80392156853
2137507145333.666325661-7826.6663256607
3136919141873.266325661-4954.2663256607
4136151139672.466325661-3521.46632566071
5133001136019.266325661-3018.26632566070
6125554129787.866325661-4233.86632566071
7119647126196.666325661-6549.6663256607
8114158120163.666325661-6005.66632566072
9116193121383.466325661-5190.46632566072
10152803154061.666325661-1258.66632566071
11161761160970.666325661790.3336743393
12160942158695.8663256612246.1336743393
13149470146376.7055413473093.29445865301
14139208136338.5679454392869.43205456096
15134588132878.1679454391709.83205456095
16130322130677.367945439-355.367945439043
17126611127024.167945439-413.167945439047
18122401120792.7679454391608.23205456095
19117352117201.567945439150.432054560950
20112135111168.567945439966.432054560955
21112879112388.367945439490.632054560954
22148729145066.5679454393662.43205456095
23157230151975.5679454395254.43205456095
24157221149700.7679454397520.23205456095
25146681137381.6071611259299.39283887466
26136524127343.4695652179180.5304347826
27132111123883.0695652178227.93043478261
28125326124050.0956521741275.90434782609
29122716120396.8956521742319.10434782609
30116615114165.4956521742449.50434782609
31113719110574.2956521743144.70434782609
32110737104541.2956521746195.70434782609
33112093105761.0956521746331.9043478261
34143565138439.2956521745125.70434782609
35149946145348.2956521744597.70434782608
36149147143073.4956521746073.50434782609
37134339130754.3348678603584.66513213979
38122683120716.1972719521966.80272804774
39115614117255.797271952-1641.79727195226
40116566115054.9972719521511.00272804775
41111272111401.797271952-129.797271952260
42104609105170.397271952-561.397271952254
43101802101579.197271952222.802728047744
449454295546.1972719523-1004.19727195225
459305196765.9972719522-3714.99727195225
46124129129444.197271952-5315.19727195226
47130374136353.197271952-5979.19727195226
48123946134078.397271952-10132.3972719523
49114971121759.236487639-6788.23648763855
50105531111721.098891731-6190.09889173061
51104919108260.698891731-3341.6988917306
52104782103692.0728047741089.92719522591
53101281100038.8728047741242.12719522592
549454593807.472804774737.527195225917
559324890216.2728047743031.72719522592
568403184183.272804774-152.272804774075
578748685403.0728047742082.92719522592
58115867118081.272804774-2214.27280477407
59120327124990.272804774-4663.27280477407
60117008122715.472804774-5707.47280477408
61108811110396.312020460-1585.31202046038

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 147768 & 155371.803921569 & -7603.80392156853 \tabularnewline
2 & 137507 & 145333.666325661 & -7826.6663256607 \tabularnewline
3 & 136919 & 141873.266325661 & -4954.2663256607 \tabularnewline
4 & 136151 & 139672.466325661 & -3521.46632566071 \tabularnewline
5 & 133001 & 136019.266325661 & -3018.26632566070 \tabularnewline
6 & 125554 & 129787.866325661 & -4233.86632566071 \tabularnewline
7 & 119647 & 126196.666325661 & -6549.6663256607 \tabularnewline
8 & 114158 & 120163.666325661 & -6005.66632566072 \tabularnewline
9 & 116193 & 121383.466325661 & -5190.46632566072 \tabularnewline
10 & 152803 & 154061.666325661 & -1258.66632566071 \tabularnewline
11 & 161761 & 160970.666325661 & 790.3336743393 \tabularnewline
12 & 160942 & 158695.866325661 & 2246.1336743393 \tabularnewline
13 & 149470 & 146376.705541347 & 3093.29445865301 \tabularnewline
14 & 139208 & 136338.567945439 & 2869.43205456096 \tabularnewline
15 & 134588 & 132878.167945439 & 1709.83205456095 \tabularnewline
16 & 130322 & 130677.367945439 & -355.367945439043 \tabularnewline
17 & 126611 & 127024.167945439 & -413.167945439047 \tabularnewline
18 & 122401 & 120792.767945439 & 1608.23205456095 \tabularnewline
19 & 117352 & 117201.567945439 & 150.432054560950 \tabularnewline
20 & 112135 & 111168.567945439 & 966.432054560955 \tabularnewline
21 & 112879 & 112388.367945439 & 490.632054560954 \tabularnewline
22 & 148729 & 145066.567945439 & 3662.43205456095 \tabularnewline
23 & 157230 & 151975.567945439 & 5254.43205456095 \tabularnewline
24 & 157221 & 149700.767945439 & 7520.23205456095 \tabularnewline
25 & 146681 & 137381.607161125 & 9299.39283887466 \tabularnewline
26 & 136524 & 127343.469565217 & 9180.5304347826 \tabularnewline
27 & 132111 & 123883.069565217 & 8227.93043478261 \tabularnewline
28 & 125326 & 124050.095652174 & 1275.90434782609 \tabularnewline
29 & 122716 & 120396.895652174 & 2319.10434782609 \tabularnewline
30 & 116615 & 114165.495652174 & 2449.50434782609 \tabularnewline
31 & 113719 & 110574.295652174 & 3144.70434782609 \tabularnewline
32 & 110737 & 104541.295652174 & 6195.70434782609 \tabularnewline
33 & 112093 & 105761.095652174 & 6331.9043478261 \tabularnewline
34 & 143565 & 138439.295652174 & 5125.70434782609 \tabularnewline
35 & 149946 & 145348.295652174 & 4597.70434782608 \tabularnewline
36 & 149147 & 143073.495652174 & 6073.50434782609 \tabularnewline
37 & 134339 & 130754.334867860 & 3584.66513213979 \tabularnewline
38 & 122683 & 120716.197271952 & 1966.80272804774 \tabularnewline
39 & 115614 & 117255.797271952 & -1641.79727195226 \tabularnewline
40 & 116566 & 115054.997271952 & 1511.00272804775 \tabularnewline
41 & 111272 & 111401.797271952 & -129.797271952260 \tabularnewline
42 & 104609 & 105170.397271952 & -561.397271952254 \tabularnewline
43 & 101802 & 101579.197271952 & 222.802728047744 \tabularnewline
44 & 94542 & 95546.1972719523 & -1004.19727195225 \tabularnewline
45 & 93051 & 96765.9972719522 & -3714.99727195225 \tabularnewline
46 & 124129 & 129444.197271952 & -5315.19727195226 \tabularnewline
47 & 130374 & 136353.197271952 & -5979.19727195226 \tabularnewline
48 & 123946 & 134078.397271952 & -10132.3972719523 \tabularnewline
49 & 114971 & 121759.236487639 & -6788.23648763855 \tabularnewline
50 & 105531 & 111721.098891731 & -6190.09889173061 \tabularnewline
51 & 104919 & 108260.698891731 & -3341.6988917306 \tabularnewline
52 & 104782 & 103692.072804774 & 1089.92719522591 \tabularnewline
53 & 101281 & 100038.872804774 & 1242.12719522592 \tabularnewline
54 & 94545 & 93807.472804774 & 737.527195225917 \tabularnewline
55 & 93248 & 90216.272804774 & 3031.72719522592 \tabularnewline
56 & 84031 & 84183.272804774 & -152.272804774075 \tabularnewline
57 & 87486 & 85403.072804774 & 2082.92719522592 \tabularnewline
58 & 115867 & 118081.272804774 & -2214.27280477407 \tabularnewline
59 & 120327 & 124990.272804774 & -4663.27280477407 \tabularnewline
60 & 117008 & 122715.472804774 & -5707.47280477408 \tabularnewline
61 & 108811 & 110396.312020460 & -1585.31202046038 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=36111&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]147768[/C][C]155371.803921569[/C][C]-7603.80392156853[/C][/ROW]
[ROW][C]2[/C][C]137507[/C][C]145333.666325661[/C][C]-7826.6663256607[/C][/ROW]
[ROW][C]3[/C][C]136919[/C][C]141873.266325661[/C][C]-4954.2663256607[/C][/ROW]
[ROW][C]4[/C][C]136151[/C][C]139672.466325661[/C][C]-3521.46632566071[/C][/ROW]
[ROW][C]5[/C][C]133001[/C][C]136019.266325661[/C][C]-3018.26632566070[/C][/ROW]
[ROW][C]6[/C][C]125554[/C][C]129787.866325661[/C][C]-4233.86632566071[/C][/ROW]
[ROW][C]7[/C][C]119647[/C][C]126196.666325661[/C][C]-6549.6663256607[/C][/ROW]
[ROW][C]8[/C][C]114158[/C][C]120163.666325661[/C][C]-6005.66632566072[/C][/ROW]
[ROW][C]9[/C][C]116193[/C][C]121383.466325661[/C][C]-5190.46632566072[/C][/ROW]
[ROW][C]10[/C][C]152803[/C][C]154061.666325661[/C][C]-1258.66632566071[/C][/ROW]
[ROW][C]11[/C][C]161761[/C][C]160970.666325661[/C][C]790.3336743393[/C][/ROW]
[ROW][C]12[/C][C]160942[/C][C]158695.866325661[/C][C]2246.1336743393[/C][/ROW]
[ROW][C]13[/C][C]149470[/C][C]146376.705541347[/C][C]3093.29445865301[/C][/ROW]
[ROW][C]14[/C][C]139208[/C][C]136338.567945439[/C][C]2869.43205456096[/C][/ROW]
[ROW][C]15[/C][C]134588[/C][C]132878.167945439[/C][C]1709.83205456095[/C][/ROW]
[ROW][C]16[/C][C]130322[/C][C]130677.367945439[/C][C]-355.367945439043[/C][/ROW]
[ROW][C]17[/C][C]126611[/C][C]127024.167945439[/C][C]-413.167945439047[/C][/ROW]
[ROW][C]18[/C][C]122401[/C][C]120792.767945439[/C][C]1608.23205456095[/C][/ROW]
[ROW][C]19[/C][C]117352[/C][C]117201.567945439[/C][C]150.432054560950[/C][/ROW]
[ROW][C]20[/C][C]112135[/C][C]111168.567945439[/C][C]966.432054560955[/C][/ROW]
[ROW][C]21[/C][C]112879[/C][C]112388.367945439[/C][C]490.632054560954[/C][/ROW]
[ROW][C]22[/C][C]148729[/C][C]145066.567945439[/C][C]3662.43205456095[/C][/ROW]
[ROW][C]23[/C][C]157230[/C][C]151975.567945439[/C][C]5254.43205456095[/C][/ROW]
[ROW][C]24[/C][C]157221[/C][C]149700.767945439[/C][C]7520.23205456095[/C][/ROW]
[ROW][C]25[/C][C]146681[/C][C]137381.607161125[/C][C]9299.39283887466[/C][/ROW]
[ROW][C]26[/C][C]136524[/C][C]127343.469565217[/C][C]9180.5304347826[/C][/ROW]
[ROW][C]27[/C][C]132111[/C][C]123883.069565217[/C][C]8227.93043478261[/C][/ROW]
[ROW][C]28[/C][C]125326[/C][C]124050.095652174[/C][C]1275.90434782609[/C][/ROW]
[ROW][C]29[/C][C]122716[/C][C]120396.895652174[/C][C]2319.10434782609[/C][/ROW]
[ROW][C]30[/C][C]116615[/C][C]114165.495652174[/C][C]2449.50434782609[/C][/ROW]
[ROW][C]31[/C][C]113719[/C][C]110574.295652174[/C][C]3144.70434782609[/C][/ROW]
[ROW][C]32[/C][C]110737[/C][C]104541.295652174[/C][C]6195.70434782609[/C][/ROW]
[ROW][C]33[/C][C]112093[/C][C]105761.095652174[/C][C]6331.9043478261[/C][/ROW]
[ROW][C]34[/C][C]143565[/C][C]138439.295652174[/C][C]5125.70434782609[/C][/ROW]
[ROW][C]35[/C][C]149946[/C][C]145348.295652174[/C][C]4597.70434782608[/C][/ROW]
[ROW][C]36[/C][C]149147[/C][C]143073.495652174[/C][C]6073.50434782609[/C][/ROW]
[ROW][C]37[/C][C]134339[/C][C]130754.334867860[/C][C]3584.66513213979[/C][/ROW]
[ROW][C]38[/C][C]122683[/C][C]120716.197271952[/C][C]1966.80272804774[/C][/ROW]
[ROW][C]39[/C][C]115614[/C][C]117255.797271952[/C][C]-1641.79727195226[/C][/ROW]
[ROW][C]40[/C][C]116566[/C][C]115054.997271952[/C][C]1511.00272804775[/C][/ROW]
[ROW][C]41[/C][C]111272[/C][C]111401.797271952[/C][C]-129.797271952260[/C][/ROW]
[ROW][C]42[/C][C]104609[/C][C]105170.397271952[/C][C]-561.397271952254[/C][/ROW]
[ROW][C]43[/C][C]101802[/C][C]101579.197271952[/C][C]222.802728047744[/C][/ROW]
[ROW][C]44[/C][C]94542[/C][C]95546.1972719523[/C][C]-1004.19727195225[/C][/ROW]
[ROW][C]45[/C][C]93051[/C][C]96765.9972719522[/C][C]-3714.99727195225[/C][/ROW]
[ROW][C]46[/C][C]124129[/C][C]129444.197271952[/C][C]-5315.19727195226[/C][/ROW]
[ROW][C]47[/C][C]130374[/C][C]136353.197271952[/C][C]-5979.19727195226[/C][/ROW]
[ROW][C]48[/C][C]123946[/C][C]134078.397271952[/C][C]-10132.3972719523[/C][/ROW]
[ROW][C]49[/C][C]114971[/C][C]121759.236487639[/C][C]-6788.23648763855[/C][/ROW]
[ROW][C]50[/C][C]105531[/C][C]111721.098891731[/C][C]-6190.09889173061[/C][/ROW]
[ROW][C]51[/C][C]104919[/C][C]108260.698891731[/C][C]-3341.6988917306[/C][/ROW]
[ROW][C]52[/C][C]104782[/C][C]103692.072804774[/C][C]1089.92719522591[/C][/ROW]
[ROW][C]53[/C][C]101281[/C][C]100038.872804774[/C][C]1242.12719522592[/C][/ROW]
[ROW][C]54[/C][C]94545[/C][C]93807.472804774[/C][C]737.527195225917[/C][/ROW]
[ROW][C]55[/C][C]93248[/C][C]90216.272804774[/C][C]3031.72719522592[/C][/ROW]
[ROW][C]56[/C][C]84031[/C][C]84183.272804774[/C][C]-152.272804774075[/C][/ROW]
[ROW][C]57[/C][C]87486[/C][C]85403.072804774[/C][C]2082.92719522592[/C][/ROW]
[ROW][C]58[/C][C]115867[/C][C]118081.272804774[/C][C]-2214.27280477407[/C][/ROW]
[ROW][C]59[/C][C]120327[/C][C]124990.272804774[/C][C]-4663.27280477407[/C][/ROW]
[ROW][C]60[/C][C]117008[/C][C]122715.472804774[/C][C]-5707.47280477408[/C][/ROW]
[ROW][C]61[/C][C]108811[/C][C]110396.312020460[/C][C]-1585.31202046038[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=36111&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36111&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
1147768155371.803921569-7603.80392156853
2137507145333.666325661-7826.6663256607
3136919141873.266325661-4954.2663256607
4136151139672.466325661-3521.46632566071
5133001136019.266325661-3018.26632566070
6125554129787.866325661-4233.86632566071
7119647126196.666325661-6549.6663256607
8114158120163.666325661-6005.66632566072
9116193121383.466325661-5190.46632566072
10152803154061.666325661-1258.66632566071
11161761160970.666325661790.3336743393
12160942158695.8663256612246.1336743393
13149470146376.7055413473093.29445865301
14139208136338.5679454392869.43205456096
15134588132878.1679454391709.83205456095
16130322130677.367945439-355.367945439043
17126611127024.167945439-413.167945439047
18122401120792.7679454391608.23205456095
19117352117201.567945439150.432054560950
20112135111168.567945439966.432054560955
21112879112388.367945439490.632054560954
22148729145066.5679454393662.43205456095
23157230151975.5679454395254.43205456095
24157221149700.7679454397520.23205456095
25146681137381.6071611259299.39283887466
26136524127343.4695652179180.5304347826
27132111123883.0695652178227.93043478261
28125326124050.0956521741275.90434782609
29122716120396.8956521742319.10434782609
30116615114165.4956521742449.50434782609
31113719110574.2956521743144.70434782609
32110737104541.2956521746195.70434782609
33112093105761.0956521746331.9043478261
34143565138439.2956521745125.70434782609
35149946145348.2956521744597.70434782608
36149147143073.4956521746073.50434782609
37134339130754.3348678603584.66513213979
38122683120716.1972719521966.80272804774
39115614117255.797271952-1641.79727195226
40116566115054.9972719521511.00272804775
41111272111401.797271952-129.797271952260
42104609105170.397271952-561.397271952254
43101802101579.197271952222.802728047744
449454295546.1972719523-1004.19727195225
459305196765.9972719522-3714.99727195225
46124129129444.197271952-5315.19727195226
47130374136353.197271952-5979.19727195226
48123946134078.397271952-10132.3972719523
49114971121759.236487639-6788.23648763855
50105531111721.098891731-6190.09889173061
51104919108260.698891731-3341.6988917306
52104782103692.0728047741089.92719522591
53101281100038.8728047741242.12719522592
549454593807.472804774737.527195225917
559324890216.2728047743031.72719522592
568403184183.272804774-152.272804774075
578748685403.0728047742082.92719522592
58115867118081.272804774-2214.27280477407
59120327124990.272804774-4663.27280477407
60117008122715.472804774-5707.47280477408
61108811110396.312020460-1585.31202046038







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.3890880674301140.7781761348602280.610911932569886
180.2471738605830970.4943477211661950.752826139416903
190.1757301777114340.3514603554228690.824269822288566
200.1352629782572450.2705259565144900.864737021742755
210.1528361041921320.3056722083842650.847163895807868
220.1390885549960160.2781771099920320.860911445003984
230.1190480558862070.2380961117724140.880951944113793
240.07637570086978130.1527514017395630.923624299130219
250.06219076219895140.1243815243979030.937809237801049
260.04740330475458470.09480660950916930.952596695245415
270.04621682245541950.0924336449108390.95378317754458
280.04975615152160360.09951230304320710.950243848478396
290.0469512522644130.0939025045288260.953048747735587
300.04609113382097820.09218226764195630.953908866179022
310.1106786558478180.2213573116956370.889321344152182
320.1520604187812070.3041208375624140.847939581218793
330.1531971471952040.3063942943904090.846802852804796
340.1135514850046920.2271029700093830.886448514995308
350.1284119961561290.2568239923122570.871588003843871
360.56016071159350.8796785768129990.439839288406499
370.7574299349491830.4851401301016340.242570065050817
380.9344814690583370.1310370618833260.0655185309416628
390.9596863435257130.08062731294857490.0403136564742874
400.9718426845062040.05631463098759220.0281573154937961
410.964989445553390.07002110889322020.0350105544466101
420.9558072645075870.08838547098482650.0441927354924132
430.9059815656305740.1880368687388510.0940184343694256
440.9018625354642640.1962749290714730.0981374645357363

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.389088067430114 & 0.778176134860228 & 0.610911932569886 \tabularnewline
18 & 0.247173860583097 & 0.494347721166195 & 0.752826139416903 \tabularnewline
19 & 0.175730177711434 & 0.351460355422869 & 0.824269822288566 \tabularnewline
20 & 0.135262978257245 & 0.270525956514490 & 0.864737021742755 \tabularnewline
21 & 0.152836104192132 & 0.305672208384265 & 0.847163895807868 \tabularnewline
22 & 0.139088554996016 & 0.278177109992032 & 0.860911445003984 \tabularnewline
23 & 0.119048055886207 & 0.238096111772414 & 0.880951944113793 \tabularnewline
24 & 0.0763757008697813 & 0.152751401739563 & 0.923624299130219 \tabularnewline
25 & 0.0621907621989514 & 0.124381524397903 & 0.937809237801049 \tabularnewline
26 & 0.0474033047545847 & 0.0948066095091693 & 0.952596695245415 \tabularnewline
27 & 0.0462168224554195 & 0.092433644910839 & 0.95378317754458 \tabularnewline
28 & 0.0497561515216036 & 0.0995123030432071 & 0.950243848478396 \tabularnewline
29 & 0.046951252264413 & 0.093902504528826 & 0.953048747735587 \tabularnewline
30 & 0.0460911338209782 & 0.0921822676419563 & 0.953908866179022 \tabularnewline
31 & 0.110678655847818 & 0.221357311695637 & 0.889321344152182 \tabularnewline
32 & 0.152060418781207 & 0.304120837562414 & 0.847939581218793 \tabularnewline
33 & 0.153197147195204 & 0.306394294390409 & 0.846802852804796 \tabularnewline
34 & 0.113551485004692 & 0.227102970009383 & 0.886448514995308 \tabularnewline
35 & 0.128411996156129 & 0.256823992312257 & 0.871588003843871 \tabularnewline
36 & 0.5601607115935 & 0.879678576812999 & 0.439839288406499 \tabularnewline
37 & 0.757429934949183 & 0.485140130101634 & 0.242570065050817 \tabularnewline
38 & 0.934481469058337 & 0.131037061883326 & 0.0655185309416628 \tabularnewline
39 & 0.959686343525713 & 0.0806273129485749 & 0.0403136564742874 \tabularnewline
40 & 0.971842684506204 & 0.0563146309875922 & 0.0281573154937961 \tabularnewline
41 & 0.96498944555339 & 0.0700211088932202 & 0.0350105544466101 \tabularnewline
42 & 0.955807264507587 & 0.0883854709848265 & 0.0441927354924132 \tabularnewline
43 & 0.905981565630574 & 0.188036868738851 & 0.0940184343694256 \tabularnewline
44 & 0.901862535464264 & 0.196274929071473 & 0.0981374645357363 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=36111&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]17[/C][C]0.389088067430114[/C][C]0.778176134860228[/C][C]0.610911932569886[/C][/ROW]
[ROW][C]18[/C][C]0.247173860583097[/C][C]0.494347721166195[/C][C]0.752826139416903[/C][/ROW]
[ROW][C]19[/C][C]0.175730177711434[/C][C]0.351460355422869[/C][C]0.824269822288566[/C][/ROW]
[ROW][C]20[/C][C]0.135262978257245[/C][C]0.270525956514490[/C][C]0.864737021742755[/C][/ROW]
[ROW][C]21[/C][C]0.152836104192132[/C][C]0.305672208384265[/C][C]0.847163895807868[/C][/ROW]
[ROW][C]22[/C][C]0.139088554996016[/C][C]0.278177109992032[/C][C]0.860911445003984[/C][/ROW]
[ROW][C]23[/C][C]0.119048055886207[/C][C]0.238096111772414[/C][C]0.880951944113793[/C][/ROW]
[ROW][C]24[/C][C]0.0763757008697813[/C][C]0.152751401739563[/C][C]0.923624299130219[/C][/ROW]
[ROW][C]25[/C][C]0.0621907621989514[/C][C]0.124381524397903[/C][C]0.937809237801049[/C][/ROW]
[ROW][C]26[/C][C]0.0474033047545847[/C][C]0.0948066095091693[/C][C]0.952596695245415[/C][/ROW]
[ROW][C]27[/C][C]0.0462168224554195[/C][C]0.092433644910839[/C][C]0.95378317754458[/C][/ROW]
[ROW][C]28[/C][C]0.0497561515216036[/C][C]0.0995123030432071[/C][C]0.950243848478396[/C][/ROW]
[ROW][C]29[/C][C]0.046951252264413[/C][C]0.093902504528826[/C][C]0.953048747735587[/C][/ROW]
[ROW][C]30[/C][C]0.0460911338209782[/C][C]0.0921822676419563[/C][C]0.953908866179022[/C][/ROW]
[ROW][C]31[/C][C]0.110678655847818[/C][C]0.221357311695637[/C][C]0.889321344152182[/C][/ROW]
[ROW][C]32[/C][C]0.152060418781207[/C][C]0.304120837562414[/C][C]0.847939581218793[/C][/ROW]
[ROW][C]33[/C][C]0.153197147195204[/C][C]0.306394294390409[/C][C]0.846802852804796[/C][/ROW]
[ROW][C]34[/C][C]0.113551485004692[/C][C]0.227102970009383[/C][C]0.886448514995308[/C][/ROW]
[ROW][C]35[/C][C]0.128411996156129[/C][C]0.256823992312257[/C][C]0.871588003843871[/C][/ROW]
[ROW][C]36[/C][C]0.5601607115935[/C][C]0.879678576812999[/C][C]0.439839288406499[/C][/ROW]
[ROW][C]37[/C][C]0.757429934949183[/C][C]0.485140130101634[/C][C]0.242570065050817[/C][/ROW]
[ROW][C]38[/C][C]0.934481469058337[/C][C]0.131037061883326[/C][C]0.0655185309416628[/C][/ROW]
[ROW][C]39[/C][C]0.959686343525713[/C][C]0.0806273129485749[/C][C]0.0403136564742874[/C][/ROW]
[ROW][C]40[/C][C]0.971842684506204[/C][C]0.0563146309875922[/C][C]0.0281573154937961[/C][/ROW]
[ROW][C]41[/C][C]0.96498944555339[/C][C]0.0700211088932202[/C][C]0.0350105544466101[/C][/ROW]
[ROW][C]42[/C][C]0.955807264507587[/C][C]0.0883854709848265[/C][C]0.0441927354924132[/C][/ROW]
[ROW][C]43[/C][C]0.905981565630574[/C][C]0.188036868738851[/C][C]0.0940184343694256[/C][/ROW]
[ROW][C]44[/C][C]0.901862535464264[/C][C]0.196274929071473[/C][C]0.0981374645357363[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=36111&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.3890880674301140.7781761348602280.610911932569886
180.2471738605830970.4943477211661950.752826139416903
190.1757301777114340.3514603554228690.824269822288566
200.1352629782572450.2705259565144900.864737021742755
210.1528361041921320.3056722083842650.847163895807868
220.1390885549960160.2781771099920320.860911445003984
230.1190480558862070.2380961117724140.880951944113793
240.07637570086978130.1527514017395630.923624299130219
250.06219076219895140.1243815243979030.937809237801049
260.04740330475458470.09480660950916930.952596695245415
270.04621682245541950.0924336449108390.95378317754458
280.04975615152160360.09951230304320710.950243848478396
290.0469512522644130.0939025045288260.953048747735587
300.04609113382097820.09218226764195630.953908866179022
310.1106786558478180.2213573116956370.889321344152182
320.1520604187812070.3041208375624140.847939581218793
330.1531971471952040.3063942943904090.846802852804796
340.1135514850046920.2271029700093830.886448514995308
350.1284119961561290.2568239923122570.871588003843871
360.56016071159350.8796785768129990.439839288406499
370.7574299349491830.4851401301016340.242570065050817
380.9344814690583370.1310370618833260.0655185309416628
390.9596863435257130.08062731294857490.0403136564742874
400.9718426845062040.05631463098759220.0281573154937961
410.964989445553390.07002110889322020.0350105544466101
420.9558072645075870.08838547098482650.0441927354924132
430.9059815656305740.1880368687388510.0940184343694256
440.9018625354642640.1962749290714730.0981374645357363







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 level90.321428571428571NOK

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

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



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