Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationFri, 20 Nov 2009 11:37:24 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/20/t1258742295l1p80n1oha15tte.htm/, Retrieved Fri, 19 Apr 2024 07:19:10 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58401, Retrieved Fri, 19 Apr 2024 07:19:10 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsWS 7 Model 2
Estimated Impact144
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]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [WS 7] [2009-11-19 23:41:15] [9717cb857c153ca3061376906953b329]
-    D      [Multiple Regression] [WS 7 Model 1] [2009-11-20 18:02:51] [9717cb857c153ca3061376906953b329]
-   P           [Multiple Regression] [WS 7 Model 2] [2009-11-20 18:37:24] [52b85b290d6f50b0921ad6729b8a5af2] [Current]
-   P             [Multiple Regression] [WS 7 Model 3] [2009-11-20 18:55:39] [9717cb857c153ca3061376906953b329]
-    D              [Multiple Regression] [WS 7 Model 4] [2009-11-22 16:57:43] [9717cb857c153ca3061376906953b329]
-    D                [Multiple Regression] [WS 7 Model 5] [2009-11-22 20:04:45] [9717cb857c153ca3061376906953b329]
-    D                  [Multiple Regression] [WS 7 Model 6] [2009-11-23 16:53:08] [9717cb857c153ca3061376906953b329]
Feedback Forum

Post a new message
Dataseries X:
286602	0
283042	0
276687	0
277915	0
277128	0
277103	0
275037	0
270150	0
267140	0
264993	0
287259	0
291186	0
292300	0
288186	0
281477	0
282656	0
280190	0
280408	0
276836	0
275216	0
274352	0
271311	0
289802	0
290726	0
292300	0
278506	0
269826	0
265861	0
269034	0
264176	0
255198	0
253353	0
246057	0
235372	0
258556	0
260993	0
254663	0
250643	0
243422	0
247105	0
248541	0
245039	0
237080	0
237085	0
225554	0
226839	1
247934	1
248333	1
246969	1
245098	1
246263	1
255765	1
264319	1
268347	1
273046	1
273963	1
267430	1
271993	1
292710	1
295881	1




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

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

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58401&T=0

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
nwwmb[t] = + 280315.607407407 -7229.51851851852dummy_variable[t] -4302.90370370365M1[t] -9774.70370370372M2[t] -15334.7037037037M3[t] -13009.3037037037M4[t] -11027.3037037037M5[t] -11855.1037037037M6[t] -15430.3037037037M7[t] -16916.3037037037M8[t] -22763.1037037037M9[t] -23322.2M10[t] -2171.60000000001M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
nwwmb[t] =  +  280315.607407407 -7229.51851851852dummy_variable[t] -4302.90370370365M1[t] -9774.70370370372M2[t] -15334.7037037037M3[t] -13009.3037037037M4[t] -11027.3037037037M5[t] -11855.1037037037M6[t] -15430.3037037037M7[t] -16916.3037037037M8[t] -22763.1037037037M9[t] -23322.2M10[t] -2171.60000000001M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58401&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]nwwmb[t] =  +  280315.607407407 -7229.51851851852dummy_variable[t] -4302.90370370365M1[t] -9774.70370370372M2[t] -15334.7037037037M3[t] -13009.3037037037M4[t] -11027.3037037037M5[t] -11855.1037037037M6[t] -15430.3037037037M7[t] -16916.3037037037M8[t] -22763.1037037037M9[t] -23322.2M10[t] -2171.60000000001M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58401&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58401&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
nwwmb[t] = + 280315.607407407 -7229.51851851852dummy_variable[t] -4302.90370370365M1[t] -9774.70370370372M2[t] -15334.7037037037M3[t] -13009.3037037037M4[t] -11027.3037037037M5[t] -11855.1037037037M6[t] -15430.3037037037M7[t] -16916.3037037037M8[t] -22763.1037037037M9[t] -23322.2M10[t] -2171.60000000001M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)280315.6074074078458.08424333.141700
dummy_variable-7229.518518518525553.004354-1.30190.1992920.099646
M1-4302.9037037036511595.0135-0.37110.7122310.356115
M2-9774.7037037037211595.0135-0.8430.4034930.201747
M3-15334.703703703711595.0135-1.32250.1923930.096196
M4-13009.303703703711595.0135-1.1220.2675730.133786
M5-11027.303703703711595.0135-0.9510.346450.173225
M6-11855.103703703711595.0135-1.02240.3118110.155905
M7-15430.303703703711595.0135-1.33080.1896850.094842
M8-16916.303703703711595.0135-1.45890.1512360.075618
M9-22763.103703703711595.0135-1.96320.0555580.027779
M10-23322.211541.702811-2.02070.049030.024515
M11-2171.6000000000111541.702811-0.18820.8515670.425784

\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) & 280315.607407407 & 8458.084243 & 33.1417 & 0 & 0 \tabularnewline
dummy_variable & -7229.51851851852 & 5553.004354 & -1.3019 & 0.199292 & 0.099646 \tabularnewline
M1 & -4302.90370370365 & 11595.0135 & -0.3711 & 0.712231 & 0.356115 \tabularnewline
M2 & -9774.70370370372 & 11595.0135 & -0.843 & 0.403493 & 0.201747 \tabularnewline
M3 & -15334.7037037037 & 11595.0135 & -1.3225 & 0.192393 & 0.096196 \tabularnewline
M4 & -13009.3037037037 & 11595.0135 & -1.122 & 0.267573 & 0.133786 \tabularnewline
M5 & -11027.3037037037 & 11595.0135 & -0.951 & 0.34645 & 0.173225 \tabularnewline
M6 & -11855.1037037037 & 11595.0135 & -1.0224 & 0.311811 & 0.155905 \tabularnewline
M7 & -15430.3037037037 & 11595.0135 & -1.3308 & 0.189685 & 0.094842 \tabularnewline
M8 & -16916.3037037037 & 11595.0135 & -1.4589 & 0.151236 & 0.075618 \tabularnewline
M9 & -22763.1037037037 & 11595.0135 & -1.9632 & 0.055558 & 0.027779 \tabularnewline
M10 & -23322.2 & 11541.702811 & -2.0207 & 0.04903 & 0.024515 \tabularnewline
M11 & -2171.60000000001 & 11541.702811 & -0.1882 & 0.851567 & 0.425784 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58401&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]280315.607407407[/C][C]8458.084243[/C][C]33.1417[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]dummy_variable[/C][C]-7229.51851851852[/C][C]5553.004354[/C][C]-1.3019[/C][C]0.199292[/C][C]0.099646[/C][/ROW]
[ROW][C]M1[/C][C]-4302.90370370365[/C][C]11595.0135[/C][C]-0.3711[/C][C]0.712231[/C][C]0.356115[/C][/ROW]
[ROW][C]M2[/C][C]-9774.70370370372[/C][C]11595.0135[/C][C]-0.843[/C][C]0.403493[/C][C]0.201747[/C][/ROW]
[ROW][C]M3[/C][C]-15334.7037037037[/C][C]11595.0135[/C][C]-1.3225[/C][C]0.192393[/C][C]0.096196[/C][/ROW]
[ROW][C]M4[/C][C]-13009.3037037037[/C][C]11595.0135[/C][C]-1.122[/C][C]0.267573[/C][C]0.133786[/C][/ROW]
[ROW][C]M5[/C][C]-11027.3037037037[/C][C]11595.0135[/C][C]-0.951[/C][C]0.34645[/C][C]0.173225[/C][/ROW]
[ROW][C]M6[/C][C]-11855.1037037037[/C][C]11595.0135[/C][C]-1.0224[/C][C]0.311811[/C][C]0.155905[/C][/ROW]
[ROW][C]M7[/C][C]-15430.3037037037[/C][C]11595.0135[/C][C]-1.3308[/C][C]0.189685[/C][C]0.094842[/C][/ROW]
[ROW][C]M8[/C][C]-16916.3037037037[/C][C]11595.0135[/C][C]-1.4589[/C][C]0.151236[/C][C]0.075618[/C][/ROW]
[ROW][C]M9[/C][C]-22763.1037037037[/C][C]11595.0135[/C][C]-1.9632[/C][C]0.055558[/C][C]0.027779[/C][/ROW]
[ROW][C]M10[/C][C]-23322.2[/C][C]11541.702811[/C][C]-2.0207[/C][C]0.04903[/C][C]0.024515[/C][/ROW]
[ROW][C]M11[/C][C]-2171.60000000001[/C][C]11541.702811[/C][C]-0.1882[/C][C]0.851567[/C][C]0.425784[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58401&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58401&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)280315.6074074078458.08424333.141700
dummy_variable-7229.518518518525553.004354-1.30190.1992920.099646
M1-4302.9037037036511595.0135-0.37110.7122310.356115
M2-9774.7037037037211595.0135-0.8430.4034930.201747
M3-15334.703703703711595.0135-1.32250.1923930.096196
M4-13009.303703703711595.0135-1.1220.2675730.133786
M5-11027.303703703711595.0135-0.9510.346450.173225
M6-11855.103703703711595.0135-1.02240.3118110.155905
M7-15430.303703703711595.0135-1.33080.1896850.094842
M8-16916.303703703711595.0135-1.45890.1512360.075618
M9-22763.103703703711595.0135-1.96320.0555580.027779
M10-23322.211541.702811-2.02070.049030.024515
M11-2171.6000000000111541.702811-0.18820.8515670.425784







Multiple Linear Regression - Regression Statistics
Multiple R0.423309059985496
R-squared0.179190560265804
Adjusted R-squared-0.0303778073259051
F-TEST (value)0.855045836950505
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.595817608029634
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation18249.0344800242
Sum Squared Residuals15652281194.2963

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.423309059985496 \tabularnewline
R-squared & 0.179190560265804 \tabularnewline
Adjusted R-squared & -0.0303778073259051 \tabularnewline
F-TEST (value) & 0.855045836950505 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0.595817608029634 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 18249.0344800242 \tabularnewline
Sum Squared Residuals & 15652281194.2963 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58401&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.423309059985496[/C][/ROW]
[ROW][C]R-squared[/C][C]0.179190560265804[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]-0.0303778073259051[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]0.855045836950505[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]0.595817608029634[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]18249.0344800242[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]15652281194.2963[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58401&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58401&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.423309059985496
R-squared0.179190560265804
Adjusted R-squared-0.0303778073259051
F-TEST (value)0.855045836950505
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0.595817608029634
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation18249.0344800242
Sum Squared Residuals15652281194.2963







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1286602276012.70370370310589.2962962966
2283042270540.90370370412501.0962962963
3276687264980.90370370411706.0962962963
4277915267306.30370370410608.6962962963
5277128269288.3037037047839.69629629632
6277103268460.5037037048642.4962962963
7275037264885.30370370410151.6962962963
8270150263399.3037037046750.69629629628
9267140257552.5037037049587.49629629633
10264993256993.4074074077999.5925925926
11287259278144.0074074079114.99259259259
12291186280315.60740740710870.3925925926
13292300276012.70370370416287.2962962962
14288186270540.90370370417645.0962962963
15281477264980.90370370416496.0962962963
16282656267306.30370370415349.6962962963
17280190269288.30370370410901.6962962963
18280408268460.50370370411947.4962962963
19276836264885.30370370411950.6962962963
20275216263399.30370370411816.6962962963
21274352257552.50370370416799.4962962963
22271311256993.40740740714317.5925925926
23289802278144.00740740711657.9925925926
24290726280315.60740740710410.3925925926
25292300276012.70370370416287.2962962962
26278506270540.9037037047965.0962962963
27269826264980.9037037044845.09629629629
28265861267306.303703704-1445.30370370371
29269034269288.303703704-254.303703703708
30264176268460.503703704-4284.5037037037
31255198264885.303703704-9687.3037037037
32253353263399.303703704-10046.3037037037
33246057257552.503703704-11495.5037037037
34235372256993.407407407-21621.4074074074
35258556278144.007407407-19588.0074074074
36260993280315.607407407-19322.6074074074
37254663276012.703703704-21349.7037037038
38250643270540.903703704-19897.9037037037
39243422264980.903703704-21558.9037037037
40247105267306.303703704-20201.3037037037
41248541269288.303703704-20747.3037037037
42245039268460.503703704-23421.5037037037
43237080264885.303703704-27805.3037037037
44237085263399.303703704-26314.3037037037
45225554257552.503703704-31998.5037037037
46226839249763.888888889-22924.8888888889
47247934270914.488888889-22980.4888888889
48248333273086.088888889-24753.0888888889
49246969268783.185185185-21814.1851851852
50245098263311.385185185-18213.3851851852
51246263257751.385185185-11488.3851851852
52255765260076.785185185-4311.78518518518
53264319262058.7851851852260.21481481482
54268347261230.9851851857116.01481481482
55273046257655.78518518515390.2148148148
56273963256169.78518518517793.2148148148
57267430250322.98518518517107.0148148148
58271993249763.88888888922229.1111111111
59292710270914.48888888921795.5111111111
60295881273086.08888888922794.9111111111

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 286602 & 276012.703703703 & 10589.2962962966 \tabularnewline
2 & 283042 & 270540.903703704 & 12501.0962962963 \tabularnewline
3 & 276687 & 264980.903703704 & 11706.0962962963 \tabularnewline
4 & 277915 & 267306.303703704 & 10608.6962962963 \tabularnewline
5 & 277128 & 269288.303703704 & 7839.69629629632 \tabularnewline
6 & 277103 & 268460.503703704 & 8642.4962962963 \tabularnewline
7 & 275037 & 264885.303703704 & 10151.6962962963 \tabularnewline
8 & 270150 & 263399.303703704 & 6750.69629629628 \tabularnewline
9 & 267140 & 257552.503703704 & 9587.49629629633 \tabularnewline
10 & 264993 & 256993.407407407 & 7999.5925925926 \tabularnewline
11 & 287259 & 278144.007407407 & 9114.99259259259 \tabularnewline
12 & 291186 & 280315.607407407 & 10870.3925925926 \tabularnewline
13 & 292300 & 276012.703703704 & 16287.2962962962 \tabularnewline
14 & 288186 & 270540.903703704 & 17645.0962962963 \tabularnewline
15 & 281477 & 264980.903703704 & 16496.0962962963 \tabularnewline
16 & 282656 & 267306.303703704 & 15349.6962962963 \tabularnewline
17 & 280190 & 269288.303703704 & 10901.6962962963 \tabularnewline
18 & 280408 & 268460.503703704 & 11947.4962962963 \tabularnewline
19 & 276836 & 264885.303703704 & 11950.6962962963 \tabularnewline
20 & 275216 & 263399.303703704 & 11816.6962962963 \tabularnewline
21 & 274352 & 257552.503703704 & 16799.4962962963 \tabularnewline
22 & 271311 & 256993.407407407 & 14317.5925925926 \tabularnewline
23 & 289802 & 278144.007407407 & 11657.9925925926 \tabularnewline
24 & 290726 & 280315.607407407 & 10410.3925925926 \tabularnewline
25 & 292300 & 276012.703703704 & 16287.2962962962 \tabularnewline
26 & 278506 & 270540.903703704 & 7965.0962962963 \tabularnewline
27 & 269826 & 264980.903703704 & 4845.09629629629 \tabularnewline
28 & 265861 & 267306.303703704 & -1445.30370370371 \tabularnewline
29 & 269034 & 269288.303703704 & -254.303703703708 \tabularnewline
30 & 264176 & 268460.503703704 & -4284.5037037037 \tabularnewline
31 & 255198 & 264885.303703704 & -9687.3037037037 \tabularnewline
32 & 253353 & 263399.303703704 & -10046.3037037037 \tabularnewline
33 & 246057 & 257552.503703704 & -11495.5037037037 \tabularnewline
34 & 235372 & 256993.407407407 & -21621.4074074074 \tabularnewline
35 & 258556 & 278144.007407407 & -19588.0074074074 \tabularnewline
36 & 260993 & 280315.607407407 & -19322.6074074074 \tabularnewline
37 & 254663 & 276012.703703704 & -21349.7037037038 \tabularnewline
38 & 250643 & 270540.903703704 & -19897.9037037037 \tabularnewline
39 & 243422 & 264980.903703704 & -21558.9037037037 \tabularnewline
40 & 247105 & 267306.303703704 & -20201.3037037037 \tabularnewline
41 & 248541 & 269288.303703704 & -20747.3037037037 \tabularnewline
42 & 245039 & 268460.503703704 & -23421.5037037037 \tabularnewline
43 & 237080 & 264885.303703704 & -27805.3037037037 \tabularnewline
44 & 237085 & 263399.303703704 & -26314.3037037037 \tabularnewline
45 & 225554 & 257552.503703704 & -31998.5037037037 \tabularnewline
46 & 226839 & 249763.888888889 & -22924.8888888889 \tabularnewline
47 & 247934 & 270914.488888889 & -22980.4888888889 \tabularnewline
48 & 248333 & 273086.088888889 & -24753.0888888889 \tabularnewline
49 & 246969 & 268783.185185185 & -21814.1851851852 \tabularnewline
50 & 245098 & 263311.385185185 & -18213.3851851852 \tabularnewline
51 & 246263 & 257751.385185185 & -11488.3851851852 \tabularnewline
52 & 255765 & 260076.785185185 & -4311.78518518518 \tabularnewline
53 & 264319 & 262058.785185185 & 2260.21481481482 \tabularnewline
54 & 268347 & 261230.985185185 & 7116.01481481482 \tabularnewline
55 & 273046 & 257655.785185185 & 15390.2148148148 \tabularnewline
56 & 273963 & 256169.785185185 & 17793.2148148148 \tabularnewline
57 & 267430 & 250322.985185185 & 17107.0148148148 \tabularnewline
58 & 271993 & 249763.888888889 & 22229.1111111111 \tabularnewline
59 & 292710 & 270914.488888889 & 21795.5111111111 \tabularnewline
60 & 295881 & 273086.088888889 & 22794.9111111111 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58401&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]286602[/C][C]276012.703703703[/C][C]10589.2962962966[/C][/ROW]
[ROW][C]2[/C][C]283042[/C][C]270540.903703704[/C][C]12501.0962962963[/C][/ROW]
[ROW][C]3[/C][C]276687[/C][C]264980.903703704[/C][C]11706.0962962963[/C][/ROW]
[ROW][C]4[/C][C]277915[/C][C]267306.303703704[/C][C]10608.6962962963[/C][/ROW]
[ROW][C]5[/C][C]277128[/C][C]269288.303703704[/C][C]7839.69629629632[/C][/ROW]
[ROW][C]6[/C][C]277103[/C][C]268460.503703704[/C][C]8642.4962962963[/C][/ROW]
[ROW][C]7[/C][C]275037[/C][C]264885.303703704[/C][C]10151.6962962963[/C][/ROW]
[ROW][C]8[/C][C]270150[/C][C]263399.303703704[/C][C]6750.69629629628[/C][/ROW]
[ROW][C]9[/C][C]267140[/C][C]257552.503703704[/C][C]9587.49629629633[/C][/ROW]
[ROW][C]10[/C][C]264993[/C][C]256993.407407407[/C][C]7999.5925925926[/C][/ROW]
[ROW][C]11[/C][C]287259[/C][C]278144.007407407[/C][C]9114.99259259259[/C][/ROW]
[ROW][C]12[/C][C]291186[/C][C]280315.607407407[/C][C]10870.3925925926[/C][/ROW]
[ROW][C]13[/C][C]292300[/C][C]276012.703703704[/C][C]16287.2962962962[/C][/ROW]
[ROW][C]14[/C][C]288186[/C][C]270540.903703704[/C][C]17645.0962962963[/C][/ROW]
[ROW][C]15[/C][C]281477[/C][C]264980.903703704[/C][C]16496.0962962963[/C][/ROW]
[ROW][C]16[/C][C]282656[/C][C]267306.303703704[/C][C]15349.6962962963[/C][/ROW]
[ROW][C]17[/C][C]280190[/C][C]269288.303703704[/C][C]10901.6962962963[/C][/ROW]
[ROW][C]18[/C][C]280408[/C][C]268460.503703704[/C][C]11947.4962962963[/C][/ROW]
[ROW][C]19[/C][C]276836[/C][C]264885.303703704[/C][C]11950.6962962963[/C][/ROW]
[ROW][C]20[/C][C]275216[/C][C]263399.303703704[/C][C]11816.6962962963[/C][/ROW]
[ROW][C]21[/C][C]274352[/C][C]257552.503703704[/C][C]16799.4962962963[/C][/ROW]
[ROW][C]22[/C][C]271311[/C][C]256993.407407407[/C][C]14317.5925925926[/C][/ROW]
[ROW][C]23[/C][C]289802[/C][C]278144.007407407[/C][C]11657.9925925926[/C][/ROW]
[ROW][C]24[/C][C]290726[/C][C]280315.607407407[/C][C]10410.3925925926[/C][/ROW]
[ROW][C]25[/C][C]292300[/C][C]276012.703703704[/C][C]16287.2962962962[/C][/ROW]
[ROW][C]26[/C][C]278506[/C][C]270540.903703704[/C][C]7965.0962962963[/C][/ROW]
[ROW][C]27[/C][C]269826[/C][C]264980.903703704[/C][C]4845.09629629629[/C][/ROW]
[ROW][C]28[/C][C]265861[/C][C]267306.303703704[/C][C]-1445.30370370371[/C][/ROW]
[ROW][C]29[/C][C]269034[/C][C]269288.303703704[/C][C]-254.303703703708[/C][/ROW]
[ROW][C]30[/C][C]264176[/C][C]268460.503703704[/C][C]-4284.5037037037[/C][/ROW]
[ROW][C]31[/C][C]255198[/C][C]264885.303703704[/C][C]-9687.3037037037[/C][/ROW]
[ROW][C]32[/C][C]253353[/C][C]263399.303703704[/C][C]-10046.3037037037[/C][/ROW]
[ROW][C]33[/C][C]246057[/C][C]257552.503703704[/C][C]-11495.5037037037[/C][/ROW]
[ROW][C]34[/C][C]235372[/C][C]256993.407407407[/C][C]-21621.4074074074[/C][/ROW]
[ROW][C]35[/C][C]258556[/C][C]278144.007407407[/C][C]-19588.0074074074[/C][/ROW]
[ROW][C]36[/C][C]260993[/C][C]280315.607407407[/C][C]-19322.6074074074[/C][/ROW]
[ROW][C]37[/C][C]254663[/C][C]276012.703703704[/C][C]-21349.7037037038[/C][/ROW]
[ROW][C]38[/C][C]250643[/C][C]270540.903703704[/C][C]-19897.9037037037[/C][/ROW]
[ROW][C]39[/C][C]243422[/C][C]264980.903703704[/C][C]-21558.9037037037[/C][/ROW]
[ROW][C]40[/C][C]247105[/C][C]267306.303703704[/C][C]-20201.3037037037[/C][/ROW]
[ROW][C]41[/C][C]248541[/C][C]269288.303703704[/C][C]-20747.3037037037[/C][/ROW]
[ROW][C]42[/C][C]245039[/C][C]268460.503703704[/C][C]-23421.5037037037[/C][/ROW]
[ROW][C]43[/C][C]237080[/C][C]264885.303703704[/C][C]-27805.3037037037[/C][/ROW]
[ROW][C]44[/C][C]237085[/C][C]263399.303703704[/C][C]-26314.3037037037[/C][/ROW]
[ROW][C]45[/C][C]225554[/C][C]257552.503703704[/C][C]-31998.5037037037[/C][/ROW]
[ROW][C]46[/C][C]226839[/C][C]249763.888888889[/C][C]-22924.8888888889[/C][/ROW]
[ROW][C]47[/C][C]247934[/C][C]270914.488888889[/C][C]-22980.4888888889[/C][/ROW]
[ROW][C]48[/C][C]248333[/C][C]273086.088888889[/C][C]-24753.0888888889[/C][/ROW]
[ROW][C]49[/C][C]246969[/C][C]268783.185185185[/C][C]-21814.1851851852[/C][/ROW]
[ROW][C]50[/C][C]245098[/C][C]263311.385185185[/C][C]-18213.3851851852[/C][/ROW]
[ROW][C]51[/C][C]246263[/C][C]257751.385185185[/C][C]-11488.3851851852[/C][/ROW]
[ROW][C]52[/C][C]255765[/C][C]260076.785185185[/C][C]-4311.78518518518[/C][/ROW]
[ROW][C]53[/C][C]264319[/C][C]262058.785185185[/C][C]2260.21481481482[/C][/ROW]
[ROW][C]54[/C][C]268347[/C][C]261230.985185185[/C][C]7116.01481481482[/C][/ROW]
[ROW][C]55[/C][C]273046[/C][C]257655.785185185[/C][C]15390.2148148148[/C][/ROW]
[ROW][C]56[/C][C]273963[/C][C]256169.785185185[/C][C]17793.2148148148[/C][/ROW]
[ROW][C]57[/C][C]267430[/C][C]250322.985185185[/C][C]17107.0148148148[/C][/ROW]
[ROW][C]58[/C][C]271993[/C][C]249763.888888889[/C][C]22229.1111111111[/C][/ROW]
[ROW][C]59[/C][C]292710[/C][C]270914.488888889[/C][C]21795.5111111111[/C][/ROW]
[ROW][C]60[/C][C]295881[/C][C]273086.088888889[/C][C]22794.9111111111[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58401&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58401&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
1286602276012.70370370310589.2962962966
2283042270540.90370370412501.0962962963
3276687264980.90370370411706.0962962963
4277915267306.30370370410608.6962962963
5277128269288.3037037047839.69629629632
6277103268460.5037037048642.4962962963
7275037264885.30370370410151.6962962963
8270150263399.3037037046750.69629629628
9267140257552.5037037049587.49629629633
10264993256993.4074074077999.5925925926
11287259278144.0074074079114.99259259259
12291186280315.60740740710870.3925925926
13292300276012.70370370416287.2962962962
14288186270540.90370370417645.0962962963
15281477264980.90370370416496.0962962963
16282656267306.30370370415349.6962962963
17280190269288.30370370410901.6962962963
18280408268460.50370370411947.4962962963
19276836264885.30370370411950.6962962963
20275216263399.30370370411816.6962962963
21274352257552.50370370416799.4962962963
22271311256993.40740740714317.5925925926
23289802278144.00740740711657.9925925926
24290726280315.60740740710410.3925925926
25292300276012.70370370416287.2962962962
26278506270540.9037037047965.0962962963
27269826264980.9037037044845.09629629629
28265861267306.303703704-1445.30370370371
29269034269288.303703704-254.303703703708
30264176268460.503703704-4284.5037037037
31255198264885.303703704-9687.3037037037
32253353263399.303703704-10046.3037037037
33246057257552.503703704-11495.5037037037
34235372256993.407407407-21621.4074074074
35258556278144.007407407-19588.0074074074
36260993280315.607407407-19322.6074074074
37254663276012.703703704-21349.7037037038
38250643270540.903703704-19897.9037037037
39243422264980.903703704-21558.9037037037
40247105267306.303703704-20201.3037037037
41248541269288.303703704-20747.3037037037
42245039268460.503703704-23421.5037037037
43237080264885.303703704-27805.3037037037
44237085263399.303703704-26314.3037037037
45225554257552.503703704-31998.5037037037
46226839249763.888888889-22924.8888888889
47247934270914.488888889-22980.4888888889
48248333273086.088888889-24753.0888888889
49246969268783.185185185-21814.1851851852
50245098263311.385185185-18213.3851851852
51246263257751.385185185-11488.3851851852
52255765260076.785185185-4311.78518518518
53264319262058.7851851852260.21481481482
54268347261230.9851851857116.01481481482
55273046257655.78518518515390.2148148148
56273963256169.78518518517793.2148148148
57267430250322.98518518517107.0148148148
58271993249763.88888888922229.1111111111
59292710270914.48888888921795.5111111111
60295881273086.08888888922794.9111111111







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.01320034024509380.02640068049018770.986799659754906
170.002762821085192640.005525642170385270.997237178914807
180.0005905518063446120.001181103612689220.999409448193655
190.0001070981336186310.0002141962672372610.999892901866381
203.19451423826744e-056.38902847653488e-050.999968054857617
211.85074315587043e-053.70148631174086e-050.999981492568441
228.629697499727e-061.7259394999454e-050.9999913703025
232.22681911124678e-064.45363822249355e-060.999997773180889
245.21299249819169e-071.04259849963834e-060.99999947870075
253.11468622378155e-076.22937244756309e-070.999999688531378
264.89464989846093e-079.78929979692187e-070.99999951053501
271.33583296998494e-062.67166593996987e-060.99999866416703
281.11248061855685e-052.22496123711369e-050.999988875193814
291.27486690731494e-052.54973381462989e-050.999987251330927
303.48197090339416e-056.96394180678833e-050.999965180290966
310.0002077858565615760.0004155717131231520.999792214143438
320.0004529761794929560.0009059523589859120.999547023820507
330.001502464908984930.003004929817969860.998497535091015
340.006990953350796040.01398190670159210.993009046649204
350.01295848715566060.02591697431132130.98704151284434
360.0184999509668820.0369999019337640.981500049033118
370.04523921813421640.09047843626843290.954760781865784
380.07409043186145390.1481808637229080.925909568138546
390.0941116758838650.188223351767730.905888324116135
400.09439153401383840.1887830680276770.905608465986162
410.08149561297036320.1629912259407260.918504387029637
420.06414405607262510.1282881121452500.935855943927375
430.04441487391755660.08882974783511330.955585126082443
440.02528704383854580.05057408767709160.974712956161454

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.0132003402450938 & 0.0264006804901877 & 0.986799659754906 \tabularnewline
17 & 0.00276282108519264 & 0.00552564217038527 & 0.997237178914807 \tabularnewline
18 & 0.000590551806344612 & 0.00118110361268922 & 0.999409448193655 \tabularnewline
19 & 0.000107098133618631 & 0.000214196267237261 & 0.999892901866381 \tabularnewline
20 & 3.19451423826744e-05 & 6.38902847653488e-05 & 0.999968054857617 \tabularnewline
21 & 1.85074315587043e-05 & 3.70148631174086e-05 & 0.999981492568441 \tabularnewline
22 & 8.629697499727e-06 & 1.7259394999454e-05 & 0.9999913703025 \tabularnewline
23 & 2.22681911124678e-06 & 4.45363822249355e-06 & 0.999997773180889 \tabularnewline
24 & 5.21299249819169e-07 & 1.04259849963834e-06 & 0.99999947870075 \tabularnewline
25 & 3.11468622378155e-07 & 6.22937244756309e-07 & 0.999999688531378 \tabularnewline
26 & 4.89464989846093e-07 & 9.78929979692187e-07 & 0.99999951053501 \tabularnewline
27 & 1.33583296998494e-06 & 2.67166593996987e-06 & 0.99999866416703 \tabularnewline
28 & 1.11248061855685e-05 & 2.22496123711369e-05 & 0.999988875193814 \tabularnewline
29 & 1.27486690731494e-05 & 2.54973381462989e-05 & 0.999987251330927 \tabularnewline
30 & 3.48197090339416e-05 & 6.96394180678833e-05 & 0.999965180290966 \tabularnewline
31 & 0.000207785856561576 & 0.000415571713123152 & 0.999792214143438 \tabularnewline
32 & 0.000452976179492956 & 0.000905952358985912 & 0.999547023820507 \tabularnewline
33 & 0.00150246490898493 & 0.00300492981796986 & 0.998497535091015 \tabularnewline
34 & 0.00699095335079604 & 0.0139819067015921 & 0.993009046649204 \tabularnewline
35 & 0.0129584871556606 & 0.0259169743113213 & 0.98704151284434 \tabularnewline
36 & 0.018499950966882 & 0.036999901933764 & 0.981500049033118 \tabularnewline
37 & 0.0452392181342164 & 0.0904784362684329 & 0.954760781865784 \tabularnewline
38 & 0.0740904318614539 & 0.148180863722908 & 0.925909568138546 \tabularnewline
39 & 0.094111675883865 & 0.18822335176773 & 0.905888324116135 \tabularnewline
40 & 0.0943915340138384 & 0.188783068027677 & 0.905608465986162 \tabularnewline
41 & 0.0814956129703632 & 0.162991225940726 & 0.918504387029637 \tabularnewline
42 & 0.0641440560726251 & 0.128288112145250 & 0.935855943927375 \tabularnewline
43 & 0.0444148739175566 & 0.0888297478351133 & 0.955585126082443 \tabularnewline
44 & 0.0252870438385458 & 0.0505740876770916 & 0.974712956161454 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58401&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]16[/C][C]0.0132003402450938[/C][C]0.0264006804901877[/C][C]0.986799659754906[/C][/ROW]
[ROW][C]17[/C][C]0.00276282108519264[/C][C]0.00552564217038527[/C][C]0.997237178914807[/C][/ROW]
[ROW][C]18[/C][C]0.000590551806344612[/C][C]0.00118110361268922[/C][C]0.999409448193655[/C][/ROW]
[ROW][C]19[/C][C]0.000107098133618631[/C][C]0.000214196267237261[/C][C]0.999892901866381[/C][/ROW]
[ROW][C]20[/C][C]3.19451423826744e-05[/C][C]6.38902847653488e-05[/C][C]0.999968054857617[/C][/ROW]
[ROW][C]21[/C][C]1.85074315587043e-05[/C][C]3.70148631174086e-05[/C][C]0.999981492568441[/C][/ROW]
[ROW][C]22[/C][C]8.629697499727e-06[/C][C]1.7259394999454e-05[/C][C]0.9999913703025[/C][/ROW]
[ROW][C]23[/C][C]2.22681911124678e-06[/C][C]4.45363822249355e-06[/C][C]0.999997773180889[/C][/ROW]
[ROW][C]24[/C][C]5.21299249819169e-07[/C][C]1.04259849963834e-06[/C][C]0.99999947870075[/C][/ROW]
[ROW][C]25[/C][C]3.11468622378155e-07[/C][C]6.22937244756309e-07[/C][C]0.999999688531378[/C][/ROW]
[ROW][C]26[/C][C]4.89464989846093e-07[/C][C]9.78929979692187e-07[/C][C]0.99999951053501[/C][/ROW]
[ROW][C]27[/C][C]1.33583296998494e-06[/C][C]2.67166593996987e-06[/C][C]0.99999866416703[/C][/ROW]
[ROW][C]28[/C][C]1.11248061855685e-05[/C][C]2.22496123711369e-05[/C][C]0.999988875193814[/C][/ROW]
[ROW][C]29[/C][C]1.27486690731494e-05[/C][C]2.54973381462989e-05[/C][C]0.999987251330927[/C][/ROW]
[ROW][C]30[/C][C]3.48197090339416e-05[/C][C]6.96394180678833e-05[/C][C]0.999965180290966[/C][/ROW]
[ROW][C]31[/C][C]0.000207785856561576[/C][C]0.000415571713123152[/C][C]0.999792214143438[/C][/ROW]
[ROW][C]32[/C][C]0.000452976179492956[/C][C]0.000905952358985912[/C][C]0.999547023820507[/C][/ROW]
[ROW][C]33[/C][C]0.00150246490898493[/C][C]0.00300492981796986[/C][C]0.998497535091015[/C][/ROW]
[ROW][C]34[/C][C]0.00699095335079604[/C][C]0.0139819067015921[/C][C]0.993009046649204[/C][/ROW]
[ROW][C]35[/C][C]0.0129584871556606[/C][C]0.0259169743113213[/C][C]0.98704151284434[/C][/ROW]
[ROW][C]36[/C][C]0.018499950966882[/C][C]0.036999901933764[/C][C]0.981500049033118[/C][/ROW]
[ROW][C]37[/C][C]0.0452392181342164[/C][C]0.0904784362684329[/C][C]0.954760781865784[/C][/ROW]
[ROW][C]38[/C][C]0.0740904318614539[/C][C]0.148180863722908[/C][C]0.925909568138546[/C][/ROW]
[ROW][C]39[/C][C]0.094111675883865[/C][C]0.18822335176773[/C][C]0.905888324116135[/C][/ROW]
[ROW][C]40[/C][C]0.0943915340138384[/C][C]0.188783068027677[/C][C]0.905608465986162[/C][/ROW]
[ROW][C]41[/C][C]0.0814956129703632[/C][C]0.162991225940726[/C][C]0.918504387029637[/C][/ROW]
[ROW][C]42[/C][C]0.0641440560726251[/C][C]0.128288112145250[/C][C]0.935855943927375[/C][/ROW]
[ROW][C]43[/C][C]0.0444148739175566[/C][C]0.0888297478351133[/C][C]0.955585126082443[/C][/ROW]
[ROW][C]44[/C][C]0.0252870438385458[/C][C]0.0505740876770916[/C][C]0.974712956161454[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58401&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58401&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
160.01320034024509380.02640068049018770.986799659754906
170.002762821085192640.005525642170385270.997237178914807
180.0005905518063446120.001181103612689220.999409448193655
190.0001070981336186310.0002141962672372610.999892901866381
203.19451423826744e-056.38902847653488e-050.999968054857617
211.85074315587043e-053.70148631174086e-050.999981492568441
228.629697499727e-061.7259394999454e-050.9999913703025
232.22681911124678e-064.45363822249355e-060.999997773180889
245.21299249819169e-071.04259849963834e-060.99999947870075
253.11468622378155e-076.22937244756309e-070.999999688531378
264.89464989846093e-079.78929979692187e-070.99999951053501
271.33583296998494e-062.67166593996987e-060.99999866416703
281.11248061855685e-052.22496123711369e-050.999988875193814
291.27486690731494e-052.54973381462989e-050.999987251330927
303.48197090339416e-056.96394180678833e-050.999965180290966
310.0002077858565615760.0004155717131231520.999792214143438
320.0004529761794929560.0009059523589859120.999547023820507
330.001502464908984930.003004929817969860.998497535091015
340.006990953350796040.01398190670159210.993009046649204
350.01295848715566060.02591697431132130.98704151284434
360.0184999509668820.0369999019337640.981500049033118
370.04523921813421640.09047843626843290.954760781865784
380.07409043186145390.1481808637229080.925909568138546
390.0941116758838650.188223351767730.905888324116135
400.09439153401383840.1887830680276770.905608465986162
410.08149561297036320.1629912259407260.918504387029637
420.06414405607262510.1282881121452500.935855943927375
430.04441487391755660.08882974783511330.955585126082443
440.02528704383854580.05057408767709160.974712956161454







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level170.586206896551724NOK
5% type I error level210.724137931034483NOK
10% type I error level240.827586206896552NOK

\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 & 17 & 0.586206896551724 & NOK \tabularnewline
5% type I error level & 21 & 0.724137931034483 & NOK \tabularnewline
10% type I error level & 24 & 0.827586206896552 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58401&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]17[/C][C]0.586206896551724[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]21[/C][C]0.724137931034483[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]24[/C][C]0.827586206896552[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58401&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58401&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 level170.586206896551724NOK
5% type I error level210.724137931034483NOK
10% type I error level240.827586206896552NOK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No 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')
}