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, 21 Nov 2011 13:42:01 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2011/Nov/21/t13219009373wo6sby8nrpggsn.htm/, Retrieved Fri, 19 Apr 2024 15:27:30 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=145906, Retrieved Fri, 19 Apr 2024 15:27:30 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact155
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 14:03:14] [b98453cac15ba1066b407e146608df68]
-    D    [Multiple Regression] [Ws7.2 Monthly dum...] [2009-11-20 16:13:19] [e0fc65a5811681d807296d590d5b45de]
-    D      [Multiple Regression] [WS 7 SEIZOENSEFFE...] [2010-11-23 08:31:49] [814f53995537cd15c528d8efbf1cf544]
- R             [Multiple Regression] [Dummy variabele] [2011-11-21 18:42:01] [274a40ad31da88f12aea425a159a1f93] [Current]
Feedback Forum

Post a new message
Dataseries X:
151.7	105.2
121.3	105.2
133.0	105.6
119.6	105.6
122.2	106.2
117.4	106.3
106.7	106.4
87.5	106.9
81.0	107.2
110.3	107.3
87.0	107.3
55.7	107.4
146.0	107.55
137.5	107.87
138.5	108.37
135.6	108.38
107.3	107.92
99.0	108.03
91.4	108.14
68.4	108.3
82.6	108.64
98.4	108.66
71.3	109.04
47.6	109.03
130.8	109.03
113.6	109.54
125.7	109.75
113.6	109.83
97.1	109.65
104.4	109.82
91.8	109.95
75.1	110.12
89.2	110.15
110.2	110.2
78.4	109.99
68.4	110.14
122.8	110.14
129.7	110.81
159.1	110.97
139.0	110.99
102.2	109.73
113.6	109.81
81.5	110.02
77.4	110.18
87.6	110.21
101.2	110.25
87.2	110.36
64.9	110.51
133.1	110.64
118.0	110.95
135.9	111.18
125.7	111.19
108.0	111.69
128.3	111.7
84.7	111.83
86.4	111.77
92.2	111.73
95.8	112.01
92.3	111.86
54.3	112.04




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'AstonUniversity' @ aston.wessa.net

\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 & 'AstonUniversity' @ aston.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=145906&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]'AstonUniversity' @ aston.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=145906&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=145906&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'AstonUniversity' @ aston.wessa.net







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 96.9593479050561 -0.35310449359936X[t] + 78.2367269043976M1[t] + 65.5045507310806M2[t] + 80.0304820791604M3[t] + 68.2989565870068M4[t] + 48.9024598680309M5[t] + 54.1156516904292M6[t] + 32.8436739015587M7[t] + 20.6493513373682M8[t] + 28.2559611305233M9[t] + 44.9505653708961M10[t] + 25.0197460877297M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  96.9593479050561 -0.35310449359936X[t] +  78.2367269043976M1[t] +  65.5045507310806M2[t] +  80.0304820791604M3[t] +  68.2989565870068M4[t] +  48.9024598680309M5[t] +  54.1156516904292M6[t] +  32.8436739015587M7[t] +  20.6493513373682M8[t] +  28.2559611305233M9[t] +  44.9505653708961M10[t] +  25.0197460877297M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=145906&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  96.9593479050561 -0.35310449359936X[t] +  78.2367269043976M1[t] +  65.5045507310806M2[t] +  80.0304820791604M3[t] +  68.2989565870068M4[t] +  48.9024598680309M5[t] +  54.1156516904292M6[t] +  32.8436739015587M7[t] +  20.6493513373682M8[t] +  28.2559611305233M9[t] +  44.9505653708961M10[t] +  25.0197460877297M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=145906&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 96.9593479050561 -0.35310449359936X[t] + 78.2367269043976M1[t] + 65.5045507310806M2[t] + 80.0304820791604M3[t] + 68.2989565870068M4[t] + 48.9024598680309M5[t] + 54.1156516904292M6[t] + 32.8436739015587M7[t] + 20.6493513373682M8[t] + 28.2559611305233M9[t] + 44.9505653708961M10[t] + 25.0197460877297M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)96.959347905056174.9084811.29440.2018610.100931
X-0.353104493599360.680962-0.51850.6065160.303258
M178.23672690439766.1221612.779300
M265.50455073108066.0910710.754200
M380.03048207916046.07277113.178600
M468.29895658700686.07160211.248900
M548.90245986803096.0802238.042900
M654.11565169042926.0749238.90800
M732.84367390155876.0684425.41222e-061e-06
M820.64935133736826.0618583.40640.0013570.000679
M928.25596113052336.0587874.66362.6e-051.3e-05
M1044.95056537089616.0573697.420800
M1125.01974608772976.0571174.13060.0001477.4e-05

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Ordinary Least Squares \tabularnewline
Variable & Parameter & S.D. & T-STATH0: parameter = 0 & 2-tail p-value & 1-tail p-value \tabularnewline
(Intercept) & 96.9593479050561 & 74.908481 & 1.2944 & 0.201861 & 0.100931 \tabularnewline
X & -0.35310449359936 & 0.680962 & -0.5185 & 0.606516 & 0.303258 \tabularnewline
M1 & 78.2367269043976 & 6.12216 & 12.7793 & 0 & 0 \tabularnewline
M2 & 65.5045507310806 & 6.09107 & 10.7542 & 0 & 0 \tabularnewline
M3 & 80.0304820791604 & 6.072771 & 13.1786 & 0 & 0 \tabularnewline
M4 & 68.2989565870068 & 6.071602 & 11.2489 & 0 & 0 \tabularnewline
M5 & 48.9024598680309 & 6.080223 & 8.0429 & 0 & 0 \tabularnewline
M6 & 54.1156516904292 & 6.074923 & 8.908 & 0 & 0 \tabularnewline
M7 & 32.8436739015587 & 6.068442 & 5.4122 & 2e-06 & 1e-06 \tabularnewline
M8 & 20.6493513373682 & 6.061858 & 3.4064 & 0.001357 & 0.000679 \tabularnewline
M9 & 28.2559611305233 & 6.058787 & 4.6636 & 2.6e-05 & 1.3e-05 \tabularnewline
M10 & 44.9505653708961 & 6.057369 & 7.4208 & 0 & 0 \tabularnewline
M11 & 25.0197460877297 & 6.057117 & 4.1306 & 0.000147 & 7.4e-05 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=145906&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]96.9593479050561[/C][C]74.908481[/C][C]1.2944[/C][C]0.201861[/C][C]0.100931[/C][/ROW]
[ROW][C]X[/C][C]-0.35310449359936[/C][C]0.680962[/C][C]-0.5185[/C][C]0.606516[/C][C]0.303258[/C][/ROW]
[ROW][C]M1[/C][C]78.2367269043976[/C][C]6.12216[/C][C]12.7793[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M2[/C][C]65.5045507310806[/C][C]6.09107[/C][C]10.7542[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M3[/C][C]80.0304820791604[/C][C]6.072771[/C][C]13.1786[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M4[/C][C]68.2989565870068[/C][C]6.071602[/C][C]11.2489[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M5[/C][C]48.9024598680309[/C][C]6.080223[/C][C]8.0429[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M6[/C][C]54.1156516904292[/C][C]6.074923[/C][C]8.908[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M7[/C][C]32.8436739015587[/C][C]6.068442[/C][C]5.4122[/C][C]2e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M8[/C][C]20.6493513373682[/C][C]6.061858[/C][C]3.4064[/C][C]0.001357[/C][C]0.000679[/C][/ROW]
[ROW][C]M9[/C][C]28.2559611305233[/C][C]6.058787[/C][C]4.6636[/C][C]2.6e-05[/C][C]1.3e-05[/C][/ROW]
[ROW][C]M10[/C][C]44.9505653708961[/C][C]6.057369[/C][C]7.4208[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M11[/C][C]25.0197460877297[/C][C]6.057117[/C][C]4.1306[/C][C]0.000147[/C][C]7.4e-05[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=145906&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=145906&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)96.959347905056174.9084811.29440.2018610.100931
X-0.353104493599360.680962-0.51850.6065160.303258
M178.23672690439766.1221612.779300
M265.50455073108066.0910710.754200
M380.03048207916046.07277113.178600
M468.29895658700686.07160211.248900
M548.90245986803096.0802238.042900
M654.11565169042926.0749238.90800
M732.84367390155876.0684425.41222e-061e-06
M820.64935133736826.0618583.40640.0013570.000679
M928.25596113052336.0587874.66362.6e-051.3e-05
M1044.95056537089616.0573697.420800
M1125.01974608772976.0571174.13060.0001477.4e-05







Multiple Linear Regression - Regression Statistics
Multiple R0.942832350779459
R-squared0.88893284167632
Adjusted R-squared0.86057526933836
F-TEST (value)31.3472828732363
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation9.57635585105123
Sum Squared Residuals4310.20979514027

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.942832350779459 \tabularnewline
R-squared & 0.88893284167632 \tabularnewline
Adjusted R-squared & 0.86057526933836 \tabularnewline
F-TEST (value) & 31.3472828732363 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 9.57635585105123 \tabularnewline
Sum Squared Residuals & 4310.20979514027 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=145906&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.942832350779459[/C][/ROW]
[ROW][C]R-squared[/C][C]0.88893284167632[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.86057526933836[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]31.3472828732363[/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[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]9.57635585105123[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]4310.20979514027[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=145906&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=145906&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.942832350779459
R-squared0.88893284167632
Adjusted R-squared0.86057526933836
F-TEST (value)31.3472828732363
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation9.57635585105123
Sum Squared Residuals4310.20979514027







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1151.7138.04948208280113.6505179171987
2121.3125.317305909484-4.01730590948407
3133139.701995460124-6.7019954601241
4119.6127.970469967971-8.3704699679705
5122.2108.36211055283513.837889447165
6117.4113.5399919258733.86000807412662
7106.792.23270368764314.467296312357
887.579.86182887665287.63817112334724
98187.362507321728-6.36250732172808
10110.3104.0218011127416.27819888725912
118784.09098182957452.90901817042554
1255.759.0359252924849-3.33592529248486
13146137.2196865228438.78031347715745
14137.5124.37451691157413.1254830884263
15138.5138.723896012854-0.223896012853891
16135.6126.9888394757648.61116052423572
17107.3107.754770823844-0.454770823844098
1899112.929121151947-13.9291211519465
1991.491.61830186878-0.218301868780076
2068.479.3674825856137-10.9674825856137
2182.686.854036850945-4.25403685094501
2298.4103.541579001446-5.14157900144574
2371.383.4765800107116-12.1765800107116
2447.658.4603649679179-10.8603649679179
25130.8136.697091872315-5.89709187231548
26113.6123.784832407263-10.1848324072628
27125.7138.236611811687-12.5366118116868
28113.6126.476837960045-12.8768379600452
2997.1107.143900049917-10.0439000499172
30104.4112.297064108404-7.89706410840365
3191.890.97918273536520.820817264634766
3275.178.7248324072628-3.62483240726283
3389.286.320849065612.87915093439005
34110.2102.9977980813037.20220191869727
3578.483.1411307417922-4.74113074179219
3668.458.068418980022610.3315810199774
37122.8136.30514588442-13.5051458844202
38129.7123.3363897003926.36361029960836
39159.1137.80582432949621.2941756705044
40139126.0672367474712.9327632525301
41102.2107.115651690429-4.91565169042924
42113.6112.300595153341.29940484666035
4381.590.9544654208133-9.4544654208133
4477.478.7036461376469-1.30364613764686
4587.686.2996627959941.300337204006
46101.2102.980142856623-1.78014285662275
4787.283.01048207916044.18951792083959
4864.957.93777031739086.96222968260916
49133.1136.128593637621-3.02859363762052
50118123.286955071288-5.28695507128772
51135.9137.73167238584-1.83167238583969
52125.7125.99661584875-0.296615848750062
53108106.4235668829741.57643311702551
54128.3111.63322766043716.6667723395632
5584.790.3153462873984-5.61534628739844
5686.478.14220999282398.25779000717611
5792.285.7629439657236.43705603427704
5895.8102.358678947888-6.55867894788789
5992.382.48082533876149.81917466123863
6054.357.3975204421838-3.09752044218383

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 151.7 & 138.049482082801 & 13.6505179171987 \tabularnewline
2 & 121.3 & 125.317305909484 & -4.01730590948407 \tabularnewline
3 & 133 & 139.701995460124 & -6.7019954601241 \tabularnewline
4 & 119.6 & 127.970469967971 & -8.3704699679705 \tabularnewline
5 & 122.2 & 108.362110552835 & 13.837889447165 \tabularnewline
6 & 117.4 & 113.539991925873 & 3.86000807412662 \tabularnewline
7 & 106.7 & 92.232703687643 & 14.467296312357 \tabularnewline
8 & 87.5 & 79.8618288766528 & 7.63817112334724 \tabularnewline
9 & 81 & 87.362507321728 & -6.36250732172808 \tabularnewline
10 & 110.3 & 104.021801112741 & 6.27819888725912 \tabularnewline
11 & 87 & 84.0909818295745 & 2.90901817042554 \tabularnewline
12 & 55.7 & 59.0359252924849 & -3.33592529248486 \tabularnewline
13 & 146 & 137.219686522843 & 8.78031347715745 \tabularnewline
14 & 137.5 & 124.374516911574 & 13.1254830884263 \tabularnewline
15 & 138.5 & 138.723896012854 & -0.223896012853891 \tabularnewline
16 & 135.6 & 126.988839475764 & 8.61116052423572 \tabularnewline
17 & 107.3 & 107.754770823844 & -0.454770823844098 \tabularnewline
18 & 99 & 112.929121151947 & -13.9291211519465 \tabularnewline
19 & 91.4 & 91.61830186878 & -0.218301868780076 \tabularnewline
20 & 68.4 & 79.3674825856137 & -10.9674825856137 \tabularnewline
21 & 82.6 & 86.854036850945 & -4.25403685094501 \tabularnewline
22 & 98.4 & 103.541579001446 & -5.14157900144574 \tabularnewline
23 & 71.3 & 83.4765800107116 & -12.1765800107116 \tabularnewline
24 & 47.6 & 58.4603649679179 & -10.8603649679179 \tabularnewline
25 & 130.8 & 136.697091872315 & -5.89709187231548 \tabularnewline
26 & 113.6 & 123.784832407263 & -10.1848324072628 \tabularnewline
27 & 125.7 & 138.236611811687 & -12.5366118116868 \tabularnewline
28 & 113.6 & 126.476837960045 & -12.8768379600452 \tabularnewline
29 & 97.1 & 107.143900049917 & -10.0439000499172 \tabularnewline
30 & 104.4 & 112.297064108404 & -7.89706410840365 \tabularnewline
31 & 91.8 & 90.9791827353652 & 0.820817264634766 \tabularnewline
32 & 75.1 & 78.7248324072628 & -3.62483240726283 \tabularnewline
33 & 89.2 & 86.32084906561 & 2.87915093439005 \tabularnewline
34 & 110.2 & 102.997798081303 & 7.20220191869727 \tabularnewline
35 & 78.4 & 83.1411307417922 & -4.74113074179219 \tabularnewline
36 & 68.4 & 58.0684189800226 & 10.3315810199774 \tabularnewline
37 & 122.8 & 136.30514588442 & -13.5051458844202 \tabularnewline
38 & 129.7 & 123.336389700392 & 6.36361029960836 \tabularnewline
39 & 159.1 & 137.805824329496 & 21.2941756705044 \tabularnewline
40 & 139 & 126.06723674747 & 12.9327632525301 \tabularnewline
41 & 102.2 & 107.115651690429 & -4.91565169042924 \tabularnewline
42 & 113.6 & 112.30059515334 & 1.29940484666035 \tabularnewline
43 & 81.5 & 90.9544654208133 & -9.4544654208133 \tabularnewline
44 & 77.4 & 78.7036461376469 & -1.30364613764686 \tabularnewline
45 & 87.6 & 86.299662795994 & 1.300337204006 \tabularnewline
46 & 101.2 & 102.980142856623 & -1.78014285662275 \tabularnewline
47 & 87.2 & 83.0104820791604 & 4.18951792083959 \tabularnewline
48 & 64.9 & 57.9377703173908 & 6.96222968260916 \tabularnewline
49 & 133.1 & 136.128593637621 & -3.02859363762052 \tabularnewline
50 & 118 & 123.286955071288 & -5.28695507128772 \tabularnewline
51 & 135.9 & 137.73167238584 & -1.83167238583969 \tabularnewline
52 & 125.7 & 125.99661584875 & -0.296615848750062 \tabularnewline
53 & 108 & 106.423566882974 & 1.57643311702551 \tabularnewline
54 & 128.3 & 111.633227660437 & 16.6667723395632 \tabularnewline
55 & 84.7 & 90.3153462873984 & -5.61534628739844 \tabularnewline
56 & 86.4 & 78.1422099928239 & 8.25779000717611 \tabularnewline
57 & 92.2 & 85.762943965723 & 6.43705603427704 \tabularnewline
58 & 95.8 & 102.358678947888 & -6.55867894788789 \tabularnewline
59 & 92.3 & 82.4808253387614 & 9.81917466123863 \tabularnewline
60 & 54.3 & 57.3975204421838 & -3.09752044218383 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=145906&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]151.7[/C][C]138.049482082801[/C][C]13.6505179171987[/C][/ROW]
[ROW][C]2[/C][C]121.3[/C][C]125.317305909484[/C][C]-4.01730590948407[/C][/ROW]
[ROW][C]3[/C][C]133[/C][C]139.701995460124[/C][C]-6.7019954601241[/C][/ROW]
[ROW][C]4[/C][C]119.6[/C][C]127.970469967971[/C][C]-8.3704699679705[/C][/ROW]
[ROW][C]5[/C][C]122.2[/C][C]108.362110552835[/C][C]13.837889447165[/C][/ROW]
[ROW][C]6[/C][C]117.4[/C][C]113.539991925873[/C][C]3.86000807412662[/C][/ROW]
[ROW][C]7[/C][C]106.7[/C][C]92.232703687643[/C][C]14.467296312357[/C][/ROW]
[ROW][C]8[/C][C]87.5[/C][C]79.8618288766528[/C][C]7.63817112334724[/C][/ROW]
[ROW][C]9[/C][C]81[/C][C]87.362507321728[/C][C]-6.36250732172808[/C][/ROW]
[ROW][C]10[/C][C]110.3[/C][C]104.021801112741[/C][C]6.27819888725912[/C][/ROW]
[ROW][C]11[/C][C]87[/C][C]84.0909818295745[/C][C]2.90901817042554[/C][/ROW]
[ROW][C]12[/C][C]55.7[/C][C]59.0359252924849[/C][C]-3.33592529248486[/C][/ROW]
[ROW][C]13[/C][C]146[/C][C]137.219686522843[/C][C]8.78031347715745[/C][/ROW]
[ROW][C]14[/C][C]137.5[/C][C]124.374516911574[/C][C]13.1254830884263[/C][/ROW]
[ROW][C]15[/C][C]138.5[/C][C]138.723896012854[/C][C]-0.223896012853891[/C][/ROW]
[ROW][C]16[/C][C]135.6[/C][C]126.988839475764[/C][C]8.61116052423572[/C][/ROW]
[ROW][C]17[/C][C]107.3[/C][C]107.754770823844[/C][C]-0.454770823844098[/C][/ROW]
[ROW][C]18[/C][C]99[/C][C]112.929121151947[/C][C]-13.9291211519465[/C][/ROW]
[ROW][C]19[/C][C]91.4[/C][C]91.61830186878[/C][C]-0.218301868780076[/C][/ROW]
[ROW][C]20[/C][C]68.4[/C][C]79.3674825856137[/C][C]-10.9674825856137[/C][/ROW]
[ROW][C]21[/C][C]82.6[/C][C]86.854036850945[/C][C]-4.25403685094501[/C][/ROW]
[ROW][C]22[/C][C]98.4[/C][C]103.541579001446[/C][C]-5.14157900144574[/C][/ROW]
[ROW][C]23[/C][C]71.3[/C][C]83.4765800107116[/C][C]-12.1765800107116[/C][/ROW]
[ROW][C]24[/C][C]47.6[/C][C]58.4603649679179[/C][C]-10.8603649679179[/C][/ROW]
[ROW][C]25[/C][C]130.8[/C][C]136.697091872315[/C][C]-5.89709187231548[/C][/ROW]
[ROW][C]26[/C][C]113.6[/C][C]123.784832407263[/C][C]-10.1848324072628[/C][/ROW]
[ROW][C]27[/C][C]125.7[/C][C]138.236611811687[/C][C]-12.5366118116868[/C][/ROW]
[ROW][C]28[/C][C]113.6[/C][C]126.476837960045[/C][C]-12.8768379600452[/C][/ROW]
[ROW][C]29[/C][C]97.1[/C][C]107.143900049917[/C][C]-10.0439000499172[/C][/ROW]
[ROW][C]30[/C][C]104.4[/C][C]112.297064108404[/C][C]-7.89706410840365[/C][/ROW]
[ROW][C]31[/C][C]91.8[/C][C]90.9791827353652[/C][C]0.820817264634766[/C][/ROW]
[ROW][C]32[/C][C]75.1[/C][C]78.7248324072628[/C][C]-3.62483240726283[/C][/ROW]
[ROW][C]33[/C][C]89.2[/C][C]86.32084906561[/C][C]2.87915093439005[/C][/ROW]
[ROW][C]34[/C][C]110.2[/C][C]102.997798081303[/C][C]7.20220191869727[/C][/ROW]
[ROW][C]35[/C][C]78.4[/C][C]83.1411307417922[/C][C]-4.74113074179219[/C][/ROW]
[ROW][C]36[/C][C]68.4[/C][C]58.0684189800226[/C][C]10.3315810199774[/C][/ROW]
[ROW][C]37[/C][C]122.8[/C][C]136.30514588442[/C][C]-13.5051458844202[/C][/ROW]
[ROW][C]38[/C][C]129.7[/C][C]123.336389700392[/C][C]6.36361029960836[/C][/ROW]
[ROW][C]39[/C][C]159.1[/C][C]137.805824329496[/C][C]21.2941756705044[/C][/ROW]
[ROW][C]40[/C][C]139[/C][C]126.06723674747[/C][C]12.9327632525301[/C][/ROW]
[ROW][C]41[/C][C]102.2[/C][C]107.115651690429[/C][C]-4.91565169042924[/C][/ROW]
[ROW][C]42[/C][C]113.6[/C][C]112.30059515334[/C][C]1.29940484666035[/C][/ROW]
[ROW][C]43[/C][C]81.5[/C][C]90.9544654208133[/C][C]-9.4544654208133[/C][/ROW]
[ROW][C]44[/C][C]77.4[/C][C]78.7036461376469[/C][C]-1.30364613764686[/C][/ROW]
[ROW][C]45[/C][C]87.6[/C][C]86.299662795994[/C][C]1.300337204006[/C][/ROW]
[ROW][C]46[/C][C]101.2[/C][C]102.980142856623[/C][C]-1.78014285662275[/C][/ROW]
[ROW][C]47[/C][C]87.2[/C][C]83.0104820791604[/C][C]4.18951792083959[/C][/ROW]
[ROW][C]48[/C][C]64.9[/C][C]57.9377703173908[/C][C]6.96222968260916[/C][/ROW]
[ROW][C]49[/C][C]133.1[/C][C]136.128593637621[/C][C]-3.02859363762052[/C][/ROW]
[ROW][C]50[/C][C]118[/C][C]123.286955071288[/C][C]-5.28695507128772[/C][/ROW]
[ROW][C]51[/C][C]135.9[/C][C]137.73167238584[/C][C]-1.83167238583969[/C][/ROW]
[ROW][C]52[/C][C]125.7[/C][C]125.99661584875[/C][C]-0.296615848750062[/C][/ROW]
[ROW][C]53[/C][C]108[/C][C]106.423566882974[/C][C]1.57643311702551[/C][/ROW]
[ROW][C]54[/C][C]128.3[/C][C]111.633227660437[/C][C]16.6667723395632[/C][/ROW]
[ROW][C]55[/C][C]84.7[/C][C]90.3153462873984[/C][C]-5.61534628739844[/C][/ROW]
[ROW][C]56[/C][C]86.4[/C][C]78.1422099928239[/C][C]8.25779000717611[/C][/ROW]
[ROW][C]57[/C][C]92.2[/C][C]85.762943965723[/C][C]6.43705603427704[/C][/ROW]
[ROW][C]58[/C][C]95.8[/C][C]102.358678947888[/C][C]-6.55867894788789[/C][/ROW]
[ROW][C]59[/C][C]92.3[/C][C]82.4808253387614[/C][C]9.81917466123863[/C][/ROW]
[ROW][C]60[/C][C]54.3[/C][C]57.3975204421838[/C][C]-3.09752044218383[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=145906&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=145906&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
1151.7138.04948208280113.6505179171987
2121.3125.317305909484-4.01730590948407
3133139.701995460124-6.7019954601241
4119.6127.970469967971-8.3704699679705
5122.2108.36211055283513.837889447165
6117.4113.5399919258733.86000807412662
7106.792.23270368764314.467296312357
887.579.86182887665287.63817112334724
98187.362507321728-6.36250732172808
10110.3104.0218011127416.27819888725912
118784.09098182957452.90901817042554
1255.759.0359252924849-3.33592529248486
13146137.2196865228438.78031347715745
14137.5124.37451691157413.1254830884263
15138.5138.723896012854-0.223896012853891
16135.6126.9888394757648.61116052423572
17107.3107.754770823844-0.454770823844098
1899112.929121151947-13.9291211519465
1991.491.61830186878-0.218301868780076
2068.479.3674825856137-10.9674825856137
2182.686.854036850945-4.25403685094501
2298.4103.541579001446-5.14157900144574
2371.383.4765800107116-12.1765800107116
2447.658.4603649679179-10.8603649679179
25130.8136.697091872315-5.89709187231548
26113.6123.784832407263-10.1848324072628
27125.7138.236611811687-12.5366118116868
28113.6126.476837960045-12.8768379600452
2997.1107.143900049917-10.0439000499172
30104.4112.297064108404-7.89706410840365
3191.890.97918273536520.820817264634766
3275.178.7248324072628-3.62483240726283
3389.286.320849065612.87915093439005
34110.2102.9977980813037.20220191869727
3578.483.1411307417922-4.74113074179219
3668.458.068418980022610.3315810199774
37122.8136.30514588442-13.5051458844202
38129.7123.3363897003926.36361029960836
39159.1137.80582432949621.2941756705044
40139126.0672367474712.9327632525301
41102.2107.115651690429-4.91565169042924
42113.6112.300595153341.29940484666035
4381.590.9544654208133-9.4544654208133
4477.478.7036461376469-1.30364613764686
4587.686.2996627959941.300337204006
46101.2102.980142856623-1.78014285662275
4787.283.01048207916044.18951792083959
4864.957.93777031739086.96222968260916
49133.1136.128593637621-3.02859363762052
50118123.286955071288-5.28695507128772
51135.9137.73167238584-1.83167238583969
52125.7125.99661584875-0.296615848750062
53108106.4235668829741.57643311702551
54128.3111.63322766043716.6667723395632
5584.790.3153462873984-5.61534628739844
5686.478.14220999282398.25779000717611
5792.285.7629439657236.43705603427704
5895.8102.358678947888-6.55867894788789
5992.382.48082533876149.81917466123863
6054.357.3975204421838-3.09752044218383







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.4536650432312090.9073300864624180.546334956768791
170.6967345075802230.6065309848395550.303265492419777
180.8258687214910150.3482625570179710.174131278508985
190.8656790479729720.2686419040540560.134320952027028
200.8872253576663280.2255492846673430.112774642333672
210.8233845857541640.3532308284916730.176615414245836
220.7861058788216420.4277882423567160.213894121178358
230.7754499722463570.4491000555072850.224550027753643
240.7189499987158440.5621000025683110.281050001284156
250.7126169214434540.5747661571130920.287383078556546
260.6548703901832490.6902592196335030.345129609816751
270.6674447830560690.6651104338878620.332555216943931
280.6827053621570670.6345892756858650.317294637842933
290.6389095792232080.7221808415535840.361090420776792
300.6639101327684630.6721797344630740.336089867231537
310.620597940016260.758804119967480.37940205998374
320.5522744779352790.8954510441294420.447725522064721
330.5293131851387160.9413736297225680.470686814861284
340.5773036732474430.8453926535051140.422696326752557
350.5390038514913510.9219922970172970.460996148508649
360.6399876430949570.7200247138100860.360012356905043
370.6288745465495230.7422509069009540.371125453450477
380.639623589285940.720752821428120.36037641071406
390.9373299770182230.1253400459635530.0626700229817767
400.963141405935940.07371718812812220.0368585940640611
410.9245775238202760.1508449523594490.0754224761797244
420.9378449673255710.1243100653488580.062155032674429
430.87546067137320.2490786572536010.1245393286268
440.8457193716256680.3085612567486650.154280628374332

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.453665043231209 & 0.907330086462418 & 0.546334956768791 \tabularnewline
17 & 0.696734507580223 & 0.606530984839555 & 0.303265492419777 \tabularnewline
18 & 0.825868721491015 & 0.348262557017971 & 0.174131278508985 \tabularnewline
19 & 0.865679047972972 & 0.268641904054056 & 0.134320952027028 \tabularnewline
20 & 0.887225357666328 & 0.225549284667343 & 0.112774642333672 \tabularnewline
21 & 0.823384585754164 & 0.353230828491673 & 0.176615414245836 \tabularnewline
22 & 0.786105878821642 & 0.427788242356716 & 0.213894121178358 \tabularnewline
23 & 0.775449972246357 & 0.449100055507285 & 0.224550027753643 \tabularnewline
24 & 0.718949998715844 & 0.562100002568311 & 0.281050001284156 \tabularnewline
25 & 0.712616921443454 & 0.574766157113092 & 0.287383078556546 \tabularnewline
26 & 0.654870390183249 & 0.690259219633503 & 0.345129609816751 \tabularnewline
27 & 0.667444783056069 & 0.665110433887862 & 0.332555216943931 \tabularnewline
28 & 0.682705362157067 & 0.634589275685865 & 0.317294637842933 \tabularnewline
29 & 0.638909579223208 & 0.722180841553584 & 0.361090420776792 \tabularnewline
30 & 0.663910132768463 & 0.672179734463074 & 0.336089867231537 \tabularnewline
31 & 0.62059794001626 & 0.75880411996748 & 0.37940205998374 \tabularnewline
32 & 0.552274477935279 & 0.895451044129442 & 0.447725522064721 \tabularnewline
33 & 0.529313185138716 & 0.941373629722568 & 0.470686814861284 \tabularnewline
34 & 0.577303673247443 & 0.845392653505114 & 0.422696326752557 \tabularnewline
35 & 0.539003851491351 & 0.921992297017297 & 0.460996148508649 \tabularnewline
36 & 0.639987643094957 & 0.720024713810086 & 0.360012356905043 \tabularnewline
37 & 0.628874546549523 & 0.742250906900954 & 0.371125453450477 \tabularnewline
38 & 0.63962358928594 & 0.72075282142812 & 0.36037641071406 \tabularnewline
39 & 0.937329977018223 & 0.125340045963553 & 0.0626700229817767 \tabularnewline
40 & 0.96314140593594 & 0.0737171881281222 & 0.0368585940640611 \tabularnewline
41 & 0.924577523820276 & 0.150844952359449 & 0.0754224761797244 \tabularnewline
42 & 0.937844967325571 & 0.124310065348858 & 0.062155032674429 \tabularnewline
43 & 0.8754606713732 & 0.249078657253601 & 0.1245393286268 \tabularnewline
44 & 0.845719371625668 & 0.308561256748665 & 0.154280628374332 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=145906&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.453665043231209[/C][C]0.907330086462418[/C][C]0.546334956768791[/C][/ROW]
[ROW][C]17[/C][C]0.696734507580223[/C][C]0.606530984839555[/C][C]0.303265492419777[/C][/ROW]
[ROW][C]18[/C][C]0.825868721491015[/C][C]0.348262557017971[/C][C]0.174131278508985[/C][/ROW]
[ROW][C]19[/C][C]0.865679047972972[/C][C]0.268641904054056[/C][C]0.134320952027028[/C][/ROW]
[ROW][C]20[/C][C]0.887225357666328[/C][C]0.225549284667343[/C][C]0.112774642333672[/C][/ROW]
[ROW][C]21[/C][C]0.823384585754164[/C][C]0.353230828491673[/C][C]0.176615414245836[/C][/ROW]
[ROW][C]22[/C][C]0.786105878821642[/C][C]0.427788242356716[/C][C]0.213894121178358[/C][/ROW]
[ROW][C]23[/C][C]0.775449972246357[/C][C]0.449100055507285[/C][C]0.224550027753643[/C][/ROW]
[ROW][C]24[/C][C]0.718949998715844[/C][C]0.562100002568311[/C][C]0.281050001284156[/C][/ROW]
[ROW][C]25[/C][C]0.712616921443454[/C][C]0.574766157113092[/C][C]0.287383078556546[/C][/ROW]
[ROW][C]26[/C][C]0.654870390183249[/C][C]0.690259219633503[/C][C]0.345129609816751[/C][/ROW]
[ROW][C]27[/C][C]0.667444783056069[/C][C]0.665110433887862[/C][C]0.332555216943931[/C][/ROW]
[ROW][C]28[/C][C]0.682705362157067[/C][C]0.634589275685865[/C][C]0.317294637842933[/C][/ROW]
[ROW][C]29[/C][C]0.638909579223208[/C][C]0.722180841553584[/C][C]0.361090420776792[/C][/ROW]
[ROW][C]30[/C][C]0.663910132768463[/C][C]0.672179734463074[/C][C]0.336089867231537[/C][/ROW]
[ROW][C]31[/C][C]0.62059794001626[/C][C]0.75880411996748[/C][C]0.37940205998374[/C][/ROW]
[ROW][C]32[/C][C]0.552274477935279[/C][C]0.895451044129442[/C][C]0.447725522064721[/C][/ROW]
[ROW][C]33[/C][C]0.529313185138716[/C][C]0.941373629722568[/C][C]0.470686814861284[/C][/ROW]
[ROW][C]34[/C][C]0.577303673247443[/C][C]0.845392653505114[/C][C]0.422696326752557[/C][/ROW]
[ROW][C]35[/C][C]0.539003851491351[/C][C]0.921992297017297[/C][C]0.460996148508649[/C][/ROW]
[ROW][C]36[/C][C]0.639987643094957[/C][C]0.720024713810086[/C][C]0.360012356905043[/C][/ROW]
[ROW][C]37[/C][C]0.628874546549523[/C][C]0.742250906900954[/C][C]0.371125453450477[/C][/ROW]
[ROW][C]38[/C][C]0.63962358928594[/C][C]0.72075282142812[/C][C]0.36037641071406[/C][/ROW]
[ROW][C]39[/C][C]0.937329977018223[/C][C]0.125340045963553[/C][C]0.0626700229817767[/C][/ROW]
[ROW][C]40[/C][C]0.96314140593594[/C][C]0.0737171881281222[/C][C]0.0368585940640611[/C][/ROW]
[ROW][C]41[/C][C]0.924577523820276[/C][C]0.150844952359449[/C][C]0.0754224761797244[/C][/ROW]
[ROW][C]42[/C][C]0.937844967325571[/C][C]0.124310065348858[/C][C]0.062155032674429[/C][/ROW]
[ROW][C]43[/C][C]0.8754606713732[/C][C]0.249078657253601[/C][C]0.1245393286268[/C][/ROW]
[ROW][C]44[/C][C]0.845719371625668[/C][C]0.308561256748665[/C][C]0.154280628374332[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=145906&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=145906&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.4536650432312090.9073300864624180.546334956768791
170.6967345075802230.6065309848395550.303265492419777
180.8258687214910150.3482625570179710.174131278508985
190.8656790479729720.2686419040540560.134320952027028
200.8872253576663280.2255492846673430.112774642333672
210.8233845857541640.3532308284916730.176615414245836
220.7861058788216420.4277882423567160.213894121178358
230.7754499722463570.4491000555072850.224550027753643
240.7189499987158440.5621000025683110.281050001284156
250.7126169214434540.5747661571130920.287383078556546
260.6548703901832490.6902592196335030.345129609816751
270.6674447830560690.6651104338878620.332555216943931
280.6827053621570670.6345892756858650.317294637842933
290.6389095792232080.7221808415535840.361090420776792
300.6639101327684630.6721797344630740.336089867231537
310.620597940016260.758804119967480.37940205998374
320.5522744779352790.8954510441294420.447725522064721
330.5293131851387160.9413736297225680.470686814861284
340.5773036732474430.8453926535051140.422696326752557
350.5390038514913510.9219922970172970.460996148508649
360.6399876430949570.7200247138100860.360012356905043
370.6288745465495230.7422509069009540.371125453450477
380.639623589285940.720752821428120.36037641071406
390.9373299770182230.1253400459635530.0626700229817767
400.963141405935940.07371718812812220.0368585940640611
410.9245775238202760.1508449523594490.0754224761797244
420.9378449673255710.1243100653488580.062155032674429
430.87546067137320.2490786572536010.1245393286268
440.8457193716256680.3085612567486650.154280628374332







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 level10.0344827586206897OK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=145906&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 level10.0344827586206897OK



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