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 computationSat, 12 Dec 2009 09:54:21 -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/Dec/12/t1260637752tviifbh4nsf3pau.htm/, Retrieved Mon, 29 Apr 2024 14:10:24 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=67082, Retrieved Mon, 29 Apr 2024 14:10:24 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact146
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [] [2009-11-22 16:56:15] [1eac2882020791f6c49a90a91c34285a]
- R PD    [Multiple Regression] [] [2009-12-12 16:54:21] [21503129a47c64de7f80e1fde84c3a45] [Current]
-   PD      [Multiple Regression] [] [2009-12-13 15:36:08] [1eac2882020791f6c49a90a91c34285a]
Feedback Forum

Post a new message
Dataseries X:
99.9	98.8
98.6	100.5
107.2	110.4
95.7	96.4
93.7	101.9
106.7	106.2
86.7	81
95.3	94.7
99.3	101
101.8	109.4
96	102.3
91.7	90.7
95.3	96.2
96.6	96.1
107.2	106
108	103.1
98.4	102
103.1	104.7
81.1	86
96.6	92.1
103.7	106.9
106.6	112.6
97.6	101.7
87.6	92
99.4	97.4
98.5	97
105.2	105.4
104.6	102.7
97.5	98.1
108.9	104.5
86.8	87.4
88.9	89.9
110.3	109.8
114.8	111.7
94.6	98.6
92	96.9
93.8	95.1
93.8	97
107.6	112.7
101	102.9
95.4	97.4
96.5	111.4
89.2	87.4
87.1	96.8
110.5	114.1
110.8	110.3
104.2	103.9
88.9	101.6
89.8	94.6
90	95.9
93.9	104.7
91.3	102.8
87.8	98.1
99.7	113.9
73.5	80.9
79.2	95.7
96.9	113.2
95.2	105.9
95.6	108.8
89.7	102.3




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=67082&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=67082&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67082&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
IndProd[t] = + 84.4853364381417 + 0.135748650387401ProdMetal[t] -1.04833736119274M1[t] -0.149332550138457M2[t] + 9.20693921848341M3[t] + 3.50350868507176M4[t] + 2.17827118122570M5[t] + 9.67526754496379M6[t] -11.2749187994741M7[t] -2.78398075578305M8[t] + 10.3777991105144M9[t] + 11.1270264048558M10[t] + 5.325595284048M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
IndProd[t] =  +  84.4853364381417 +  0.135748650387401ProdMetal[t] -1.04833736119274M1[t] -0.149332550138457M2[t] +  9.20693921848341M3[t] +  3.50350868507176M4[t] +  2.17827118122570M5[t] +  9.67526754496379M6[t] -11.2749187994741M7[t] -2.78398075578305M8[t] +  10.3777991105144M9[t] +  11.1270264048558M10[t] +  5.325595284048M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67082&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]IndProd[t] =  +  84.4853364381417 +  0.135748650387401ProdMetal[t] -1.04833736119274M1[t] -0.149332550138457M2[t] +  9.20693921848341M3[t] +  3.50350868507176M4[t] +  2.17827118122570M5[t] +  9.67526754496379M6[t] -11.2749187994741M7[t] -2.78398075578305M8[t] +  10.3777991105144M9[t] +  11.1270264048558M10[t] +  5.325595284048M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67082&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67082&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
IndProd[t] = + 84.4853364381417 + 0.135748650387401ProdMetal[t] -1.04833736119274M1[t] -0.149332550138457M2[t] + 9.20693921848341M3[t] + 3.50350868507176M4[t] + 2.17827118122570M5[t] + 9.67526754496379M6[t] -11.2749187994741M7[t] -2.78398075578305M8[t] + 10.3777991105144M9[t] + 11.1270264048558M10[t] + 5.325595284048M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)84.48533643814178.35748210.108900
ProdMetal0.1357486503874010.0912831.48710.1436630.071831
M1-1.048337361192742.24351-0.46730.6424620.321231
M2-0.1493325501384572.240602-0.06660.9471440.473572
M39.206939218483412.5408793.62350.0007120.000356
M43.503508685071762.3713191.47750.1462250.073112
M52.178271181225702.2228780.97990.3321370.166068
M69.675267544963792.4848773.89370.0003110.000155
M7-11.27491879947412.262879-4.98269e-064e-06
M8-2.783980755783052.183806-1.27480.2086360.104318
M910.37779911051442.5371514.09030.0001678.4e-05
M1011.12702640485582.6196154.24760.0001015.1e-05
M115.3255952840482.2913372.32420.0244860.012243

\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) & 84.4853364381417 & 8.357482 & 10.1089 & 0 & 0 \tabularnewline
ProdMetal & 0.135748650387401 & 0.091283 & 1.4871 & 0.143663 & 0.071831 \tabularnewline
M1 & -1.04833736119274 & 2.24351 & -0.4673 & 0.642462 & 0.321231 \tabularnewline
M2 & -0.149332550138457 & 2.240602 & -0.0666 & 0.947144 & 0.473572 \tabularnewline
M3 & 9.20693921848341 & 2.540879 & 3.6235 & 0.000712 & 0.000356 \tabularnewline
M4 & 3.50350868507176 & 2.371319 & 1.4775 & 0.146225 & 0.073112 \tabularnewline
M5 & 2.17827118122570 & 2.222878 & 0.9799 & 0.332137 & 0.166068 \tabularnewline
M6 & 9.67526754496379 & 2.484877 & 3.8937 & 0.000311 & 0.000155 \tabularnewline
M7 & -11.2749187994741 & 2.262879 & -4.9826 & 9e-06 & 4e-06 \tabularnewline
M8 & -2.78398075578305 & 2.183806 & -1.2748 & 0.208636 & 0.104318 \tabularnewline
M9 & 10.3777991105144 & 2.537151 & 4.0903 & 0.000167 & 8.4e-05 \tabularnewline
M10 & 11.1270264048558 & 2.619615 & 4.2476 & 0.000101 & 5.1e-05 \tabularnewline
M11 & 5.325595284048 & 2.291337 & 2.3242 & 0.024486 & 0.012243 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67082&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]84.4853364381417[/C][C]8.357482[/C][C]10.1089[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]ProdMetal[/C][C]0.135748650387401[/C][C]0.091283[/C][C]1.4871[/C][C]0.143663[/C][C]0.071831[/C][/ROW]
[ROW][C]M1[/C][C]-1.04833736119274[/C][C]2.24351[/C][C]-0.4673[/C][C]0.642462[/C][C]0.321231[/C][/ROW]
[ROW][C]M2[/C][C]-0.149332550138457[/C][C]2.240602[/C][C]-0.0666[/C][C]0.947144[/C][C]0.473572[/C][/ROW]
[ROW][C]M3[/C][C]9.20693921848341[/C][C]2.540879[/C][C]3.6235[/C][C]0.000712[/C][C]0.000356[/C][/ROW]
[ROW][C]M4[/C][C]3.50350868507176[/C][C]2.371319[/C][C]1.4775[/C][C]0.146225[/C][C]0.073112[/C][/ROW]
[ROW][C]M5[/C][C]2.17827118122570[/C][C]2.222878[/C][C]0.9799[/C][C]0.332137[/C][C]0.166068[/C][/ROW]
[ROW][C]M6[/C][C]9.67526754496379[/C][C]2.484877[/C][C]3.8937[/C][C]0.000311[/C][C]0.000155[/C][/ROW]
[ROW][C]M7[/C][C]-11.2749187994741[/C][C]2.262879[/C][C]-4.9826[/C][C]9e-06[/C][C]4e-06[/C][/ROW]
[ROW][C]M8[/C][C]-2.78398075578305[/C][C]2.183806[/C][C]-1.2748[/C][C]0.208636[/C][C]0.104318[/C][/ROW]
[ROW][C]M9[/C][C]10.3777991105144[/C][C]2.537151[/C][C]4.0903[/C][C]0.000167[/C][C]8.4e-05[/C][/ROW]
[ROW][C]M10[/C][C]11.1270264048558[/C][C]2.619615[/C][C]4.2476[/C][C]0.000101[/C][C]5.1e-05[/C][/ROW]
[ROW][C]M11[/C][C]5.325595284048[/C][C]2.291337[/C][C]2.3242[/C][C]0.024486[/C][C]0.012243[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67082&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67082&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)84.48533643814178.35748210.108900
ProdMetal0.1357486503874010.0912831.48710.1436630.071831
M1-1.048337361192742.24351-0.46730.6424620.321231
M2-0.1493325501384572.240602-0.06660.9471440.473572
M39.206939218483412.5408793.62350.0007120.000356
M43.503508685071762.3713191.47750.1462250.073112
M52.178271181225702.2228780.97990.3321370.166068
M69.675267544963792.4848773.89370.0003110.000155
M7-11.27491879947412.262879-4.98269e-064e-06
M8-2.783980755783052.183806-1.27480.2086360.104318
M910.37779911051442.5371514.09030.0001678.4e-05
M1011.12702640485582.6196154.24760.0001015.1e-05
M115.3255952840482.2913372.32420.0244860.012243







Multiple Linear Regression - Regression Statistics
Multiple R0.921265756082445
R-squared0.848730593330158
Adjusted R-squared0.810108617159135
F-TEST (value)21.975327973169
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value2.66453525910038e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.45195491173586
Sum Squared Residuals560.051657494894

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.921265756082445 \tabularnewline
R-squared & 0.848730593330158 \tabularnewline
Adjusted R-squared & 0.810108617159135 \tabularnewline
F-TEST (value) & 21.975327973169 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 2.66453525910038e-15 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 3.45195491173586 \tabularnewline
Sum Squared Residuals & 560.051657494894 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67082&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.921265756082445[/C][/ROW]
[ROW][C]R-squared[/C][C]0.848730593330158[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.810108617159135[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]21.975327973169[/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]2.66453525910038e-15[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]3.45195491173586[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]560.051657494894[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67082&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67082&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.921265756082445
R-squared0.848730593330158
Adjusted R-squared0.810108617159135
F-TEST (value)21.975327973169
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value2.66453525910038e-15
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation3.45195491173586
Sum Squared Residuals560.051657494894







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
198.896.99828925065051.80171074934948
2100.597.7208208162012.77917918379904
3110.4108.2445309781542.15546902184554
496.4100.979990965288-4.57999096528768
5101.999.38325616066682.51674383933317
6106.2108.644984979441-2.44498497944114
78184.9798256272552-3.97982562725518
894.794.6382020642780.061797935722086
9101108.342976532125-7.34297653212498
10109.4109.431575452435-0.0315754524348984
11102.3102.842802159380-0.54280215938016
1290.796.9334876786663-6.23348767866633
1396.296.3738454588682-0.173845458868235
1496.197.4493235154261-1.34932351542614
15106108.244530978154-2.24453097815446
16103.1102.6496993650530.45030063494727
17102100.0212748174881.97872518251238
18104.7108.156289838046-3.45628983804649
198684.21963318508571.78036681491426
2092.194.8146753097815-2.71467530978155
21106.9108.940270593830-2.04027059382954
22112.6110.0831689742942.51683102570557
23101.7103.06-1.36000000000000
249296.376918212078-4.37691821207798
2597.496.93041492545660.469585074543429
269797.7072459511622-0.707245951162202
27105.4107.973033677380-2.57303367737965
28102.7102.1881539537360.511846046264444
2998.199.899101032139-1.79910103213897
30104.5108.943632010293-4.44363201029342
3187.484.9934004922942.40659950770608
3289.993.7694107017985-3.86941070179855
33109.8109.836211686386-0.036211686386394
34111.7111.1963079074710.503692092528893
3598.6102.652754048838-4.0527540488378
3696.996.9742122737826-0.0742122737825428
3795.196.1702224832871-1.07022248328714
389797.0692272943414-0.069227294341417
39112.7108.2988304383094.40116956169059
40102.9101.6994588123411.20054118765909
4197.499.6140288663254-2.21402886632541
42111.4107.2603487454904.13965125451037
4387.485.31919725322372.08080274677632
4496.893.52506313110123.27493686889877
45114.1109.8633614164644.23663858353612
46110.3110.653313305922-0.353313305921513
47103.9103.955941092557-0.0559410925568403
48101.696.55339145758165.04660854241839
4994.695.6272278817375-1.02722788173753
5095.996.5533824228693-0.653382422869288
51104.7106.439073928002-1.73907392800202
52102.8100.3826969035832.41730309641687
5398.198.5823391233812-0.482339123381171
54113.9107.6947444267296.20525557327068
5580.983.1879434421415-2.28794344214148
5695.792.45264879304083.24735120695924
57113.2108.0171797711955.18282022880479
58105.9108.535634359878-2.63563435987805
59108.8102.7885026992256.0114973007748
60102.396.66199037789155.63800962210847

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 98.8 & 96.9982892506505 & 1.80171074934948 \tabularnewline
2 & 100.5 & 97.720820816201 & 2.77917918379904 \tabularnewline
3 & 110.4 & 108.244530978154 & 2.15546902184554 \tabularnewline
4 & 96.4 & 100.979990965288 & -4.57999096528768 \tabularnewline
5 & 101.9 & 99.3832561606668 & 2.51674383933317 \tabularnewline
6 & 106.2 & 108.644984979441 & -2.44498497944114 \tabularnewline
7 & 81 & 84.9798256272552 & -3.97982562725518 \tabularnewline
8 & 94.7 & 94.638202064278 & 0.061797935722086 \tabularnewline
9 & 101 & 108.342976532125 & -7.34297653212498 \tabularnewline
10 & 109.4 & 109.431575452435 & -0.0315754524348984 \tabularnewline
11 & 102.3 & 102.842802159380 & -0.54280215938016 \tabularnewline
12 & 90.7 & 96.9334876786663 & -6.23348767866633 \tabularnewline
13 & 96.2 & 96.3738454588682 & -0.173845458868235 \tabularnewline
14 & 96.1 & 97.4493235154261 & -1.34932351542614 \tabularnewline
15 & 106 & 108.244530978154 & -2.24453097815446 \tabularnewline
16 & 103.1 & 102.649699365053 & 0.45030063494727 \tabularnewline
17 & 102 & 100.021274817488 & 1.97872518251238 \tabularnewline
18 & 104.7 & 108.156289838046 & -3.45628983804649 \tabularnewline
19 & 86 & 84.2196331850857 & 1.78036681491426 \tabularnewline
20 & 92.1 & 94.8146753097815 & -2.71467530978155 \tabularnewline
21 & 106.9 & 108.940270593830 & -2.04027059382954 \tabularnewline
22 & 112.6 & 110.083168974294 & 2.51683102570557 \tabularnewline
23 & 101.7 & 103.06 & -1.36000000000000 \tabularnewline
24 & 92 & 96.376918212078 & -4.37691821207798 \tabularnewline
25 & 97.4 & 96.9304149254566 & 0.469585074543429 \tabularnewline
26 & 97 & 97.7072459511622 & -0.707245951162202 \tabularnewline
27 & 105.4 & 107.973033677380 & -2.57303367737965 \tabularnewline
28 & 102.7 & 102.188153953736 & 0.511846046264444 \tabularnewline
29 & 98.1 & 99.899101032139 & -1.79910103213897 \tabularnewline
30 & 104.5 & 108.943632010293 & -4.44363201029342 \tabularnewline
31 & 87.4 & 84.993400492294 & 2.40659950770608 \tabularnewline
32 & 89.9 & 93.7694107017985 & -3.86941070179855 \tabularnewline
33 & 109.8 & 109.836211686386 & -0.036211686386394 \tabularnewline
34 & 111.7 & 111.196307907471 & 0.503692092528893 \tabularnewline
35 & 98.6 & 102.652754048838 & -4.0527540488378 \tabularnewline
36 & 96.9 & 96.9742122737826 & -0.0742122737825428 \tabularnewline
37 & 95.1 & 96.1702224832871 & -1.07022248328714 \tabularnewline
38 & 97 & 97.0692272943414 & -0.069227294341417 \tabularnewline
39 & 112.7 & 108.298830438309 & 4.40116956169059 \tabularnewline
40 & 102.9 & 101.699458812341 & 1.20054118765909 \tabularnewline
41 & 97.4 & 99.6140288663254 & -2.21402886632541 \tabularnewline
42 & 111.4 & 107.260348745490 & 4.13965125451037 \tabularnewline
43 & 87.4 & 85.3191972532237 & 2.08080274677632 \tabularnewline
44 & 96.8 & 93.5250631311012 & 3.27493686889877 \tabularnewline
45 & 114.1 & 109.863361416464 & 4.23663858353612 \tabularnewline
46 & 110.3 & 110.653313305922 & -0.353313305921513 \tabularnewline
47 & 103.9 & 103.955941092557 & -0.0559410925568403 \tabularnewline
48 & 101.6 & 96.5533914575816 & 5.04660854241839 \tabularnewline
49 & 94.6 & 95.6272278817375 & -1.02722788173753 \tabularnewline
50 & 95.9 & 96.5533824228693 & -0.653382422869288 \tabularnewline
51 & 104.7 & 106.439073928002 & -1.73907392800202 \tabularnewline
52 & 102.8 & 100.382696903583 & 2.41730309641687 \tabularnewline
53 & 98.1 & 98.5823391233812 & -0.482339123381171 \tabularnewline
54 & 113.9 & 107.694744426729 & 6.20525557327068 \tabularnewline
55 & 80.9 & 83.1879434421415 & -2.28794344214148 \tabularnewline
56 & 95.7 & 92.4526487930408 & 3.24735120695924 \tabularnewline
57 & 113.2 & 108.017179771195 & 5.18282022880479 \tabularnewline
58 & 105.9 & 108.535634359878 & -2.63563435987805 \tabularnewline
59 & 108.8 & 102.788502699225 & 6.0114973007748 \tabularnewline
60 & 102.3 & 96.6619903778915 & 5.63800962210847 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67082&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]98.8[/C][C]96.9982892506505[/C][C]1.80171074934948[/C][/ROW]
[ROW][C]2[/C][C]100.5[/C][C]97.720820816201[/C][C]2.77917918379904[/C][/ROW]
[ROW][C]3[/C][C]110.4[/C][C]108.244530978154[/C][C]2.15546902184554[/C][/ROW]
[ROW][C]4[/C][C]96.4[/C][C]100.979990965288[/C][C]-4.57999096528768[/C][/ROW]
[ROW][C]5[/C][C]101.9[/C][C]99.3832561606668[/C][C]2.51674383933317[/C][/ROW]
[ROW][C]6[/C][C]106.2[/C][C]108.644984979441[/C][C]-2.44498497944114[/C][/ROW]
[ROW][C]7[/C][C]81[/C][C]84.9798256272552[/C][C]-3.97982562725518[/C][/ROW]
[ROW][C]8[/C][C]94.7[/C][C]94.638202064278[/C][C]0.061797935722086[/C][/ROW]
[ROW][C]9[/C][C]101[/C][C]108.342976532125[/C][C]-7.34297653212498[/C][/ROW]
[ROW][C]10[/C][C]109.4[/C][C]109.431575452435[/C][C]-0.0315754524348984[/C][/ROW]
[ROW][C]11[/C][C]102.3[/C][C]102.842802159380[/C][C]-0.54280215938016[/C][/ROW]
[ROW][C]12[/C][C]90.7[/C][C]96.9334876786663[/C][C]-6.23348767866633[/C][/ROW]
[ROW][C]13[/C][C]96.2[/C][C]96.3738454588682[/C][C]-0.173845458868235[/C][/ROW]
[ROW][C]14[/C][C]96.1[/C][C]97.4493235154261[/C][C]-1.34932351542614[/C][/ROW]
[ROW][C]15[/C][C]106[/C][C]108.244530978154[/C][C]-2.24453097815446[/C][/ROW]
[ROW][C]16[/C][C]103.1[/C][C]102.649699365053[/C][C]0.45030063494727[/C][/ROW]
[ROW][C]17[/C][C]102[/C][C]100.021274817488[/C][C]1.97872518251238[/C][/ROW]
[ROW][C]18[/C][C]104.7[/C][C]108.156289838046[/C][C]-3.45628983804649[/C][/ROW]
[ROW][C]19[/C][C]86[/C][C]84.2196331850857[/C][C]1.78036681491426[/C][/ROW]
[ROW][C]20[/C][C]92.1[/C][C]94.8146753097815[/C][C]-2.71467530978155[/C][/ROW]
[ROW][C]21[/C][C]106.9[/C][C]108.940270593830[/C][C]-2.04027059382954[/C][/ROW]
[ROW][C]22[/C][C]112.6[/C][C]110.083168974294[/C][C]2.51683102570557[/C][/ROW]
[ROW][C]23[/C][C]101.7[/C][C]103.06[/C][C]-1.36000000000000[/C][/ROW]
[ROW][C]24[/C][C]92[/C][C]96.376918212078[/C][C]-4.37691821207798[/C][/ROW]
[ROW][C]25[/C][C]97.4[/C][C]96.9304149254566[/C][C]0.469585074543429[/C][/ROW]
[ROW][C]26[/C][C]97[/C][C]97.7072459511622[/C][C]-0.707245951162202[/C][/ROW]
[ROW][C]27[/C][C]105.4[/C][C]107.973033677380[/C][C]-2.57303367737965[/C][/ROW]
[ROW][C]28[/C][C]102.7[/C][C]102.188153953736[/C][C]0.511846046264444[/C][/ROW]
[ROW][C]29[/C][C]98.1[/C][C]99.899101032139[/C][C]-1.79910103213897[/C][/ROW]
[ROW][C]30[/C][C]104.5[/C][C]108.943632010293[/C][C]-4.44363201029342[/C][/ROW]
[ROW][C]31[/C][C]87.4[/C][C]84.993400492294[/C][C]2.40659950770608[/C][/ROW]
[ROW][C]32[/C][C]89.9[/C][C]93.7694107017985[/C][C]-3.86941070179855[/C][/ROW]
[ROW][C]33[/C][C]109.8[/C][C]109.836211686386[/C][C]-0.036211686386394[/C][/ROW]
[ROW][C]34[/C][C]111.7[/C][C]111.196307907471[/C][C]0.503692092528893[/C][/ROW]
[ROW][C]35[/C][C]98.6[/C][C]102.652754048838[/C][C]-4.0527540488378[/C][/ROW]
[ROW][C]36[/C][C]96.9[/C][C]96.9742122737826[/C][C]-0.0742122737825428[/C][/ROW]
[ROW][C]37[/C][C]95.1[/C][C]96.1702224832871[/C][C]-1.07022248328714[/C][/ROW]
[ROW][C]38[/C][C]97[/C][C]97.0692272943414[/C][C]-0.069227294341417[/C][/ROW]
[ROW][C]39[/C][C]112.7[/C][C]108.298830438309[/C][C]4.40116956169059[/C][/ROW]
[ROW][C]40[/C][C]102.9[/C][C]101.699458812341[/C][C]1.20054118765909[/C][/ROW]
[ROW][C]41[/C][C]97.4[/C][C]99.6140288663254[/C][C]-2.21402886632541[/C][/ROW]
[ROW][C]42[/C][C]111.4[/C][C]107.260348745490[/C][C]4.13965125451037[/C][/ROW]
[ROW][C]43[/C][C]87.4[/C][C]85.3191972532237[/C][C]2.08080274677632[/C][/ROW]
[ROW][C]44[/C][C]96.8[/C][C]93.5250631311012[/C][C]3.27493686889877[/C][/ROW]
[ROW][C]45[/C][C]114.1[/C][C]109.863361416464[/C][C]4.23663858353612[/C][/ROW]
[ROW][C]46[/C][C]110.3[/C][C]110.653313305922[/C][C]-0.353313305921513[/C][/ROW]
[ROW][C]47[/C][C]103.9[/C][C]103.955941092557[/C][C]-0.0559410925568403[/C][/ROW]
[ROW][C]48[/C][C]101.6[/C][C]96.5533914575816[/C][C]5.04660854241839[/C][/ROW]
[ROW][C]49[/C][C]94.6[/C][C]95.6272278817375[/C][C]-1.02722788173753[/C][/ROW]
[ROW][C]50[/C][C]95.9[/C][C]96.5533824228693[/C][C]-0.653382422869288[/C][/ROW]
[ROW][C]51[/C][C]104.7[/C][C]106.439073928002[/C][C]-1.73907392800202[/C][/ROW]
[ROW][C]52[/C][C]102.8[/C][C]100.382696903583[/C][C]2.41730309641687[/C][/ROW]
[ROW][C]53[/C][C]98.1[/C][C]98.5823391233812[/C][C]-0.482339123381171[/C][/ROW]
[ROW][C]54[/C][C]113.9[/C][C]107.694744426729[/C][C]6.20525557327068[/C][/ROW]
[ROW][C]55[/C][C]80.9[/C][C]83.1879434421415[/C][C]-2.28794344214148[/C][/ROW]
[ROW][C]56[/C][C]95.7[/C][C]92.4526487930408[/C][C]3.24735120695924[/C][/ROW]
[ROW][C]57[/C][C]113.2[/C][C]108.017179771195[/C][C]5.18282022880479[/C][/ROW]
[ROW][C]58[/C][C]105.9[/C][C]108.535634359878[/C][C]-2.63563435987805[/C][/ROW]
[ROW][C]59[/C][C]108.8[/C][C]102.788502699225[/C][C]6.0114973007748[/C][/ROW]
[ROW][C]60[/C][C]102.3[/C][C]96.6619903778915[/C][C]5.63800962210847[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67082&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67082&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
198.896.99828925065051.80171074934948
2100.597.7208208162012.77917918379904
3110.4108.2445309781542.15546902184554
496.4100.979990965288-4.57999096528768
5101.999.38325616066682.51674383933317
6106.2108.644984979441-2.44498497944114
78184.9798256272552-3.97982562725518
894.794.6382020642780.061797935722086
9101108.342976532125-7.34297653212498
10109.4109.431575452435-0.0315754524348984
11102.3102.842802159380-0.54280215938016
1290.796.9334876786663-6.23348767866633
1396.296.3738454588682-0.173845458868235
1496.197.4493235154261-1.34932351542614
15106108.244530978154-2.24453097815446
16103.1102.6496993650530.45030063494727
17102100.0212748174881.97872518251238
18104.7108.156289838046-3.45628983804649
198684.21963318508571.78036681491426
2092.194.8146753097815-2.71467530978155
21106.9108.940270593830-2.04027059382954
22112.6110.0831689742942.51683102570557
23101.7103.06-1.36000000000000
249296.376918212078-4.37691821207798
2597.496.93041492545660.469585074543429
269797.7072459511622-0.707245951162202
27105.4107.973033677380-2.57303367737965
28102.7102.1881539537360.511846046264444
2998.199.899101032139-1.79910103213897
30104.5108.943632010293-4.44363201029342
3187.484.9934004922942.40659950770608
3289.993.7694107017985-3.86941070179855
33109.8109.836211686386-0.036211686386394
34111.7111.1963079074710.503692092528893
3598.6102.652754048838-4.0527540488378
3696.996.9742122737826-0.0742122737825428
3795.196.1702224832871-1.07022248328714
389797.0692272943414-0.069227294341417
39112.7108.2988304383094.40116956169059
40102.9101.6994588123411.20054118765909
4197.499.6140288663254-2.21402886632541
42111.4107.2603487454904.13965125451037
4387.485.31919725322372.08080274677632
4496.893.52506313110123.27493686889877
45114.1109.8633614164644.23663858353612
46110.3110.653313305922-0.353313305921513
47103.9103.955941092557-0.0559410925568403
48101.696.55339145758165.04660854241839
4994.695.6272278817375-1.02722788173753
5095.996.5533824228693-0.653382422869288
51104.7106.439073928002-1.73907392800202
52102.8100.3826969035832.41730309641687
5398.198.5823391233812-0.482339123381171
54113.9107.6947444267296.20525557327068
5580.983.1879434421415-2.28794344214148
5695.792.45264879304083.24735120695924
57113.2108.0171797711955.18282022880479
58105.9108.535634359878-2.63563435987805
59108.8102.7885026992256.0114973007748
60102.396.66199037789155.63800962210847







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.2711172298410290.5422344596820580.728882770158971
170.1881176401373120.3762352802746240.811882359862688
180.1064862622392440.2129725244784870.893513737760756
190.3123804056957990.6247608113915990.6876195943042
200.2567895064419440.5135790128838890.743210493558056
210.2725166600496010.5450333200992020.7274833399504
220.2002312871198420.4004625742396850.799768712880158
230.1367079120689860.2734158241379720.863292087931014
240.1712977547983850.3425955095967690.828702245201616
250.1158685171490050.2317370342980100.884131482850995
260.07817600456148250.1563520091229650.921823995438517
270.06273873047619230.1254774609523850.937261269523808
280.04232050241375960.08464100482751910.95767949758624
290.04747689544702650.0949537908940530.952523104552974
300.1179036159176350.2358072318352700.882096384082365
310.1015734567708610.2031469135417220.898426543229139
320.1690765588092410.3381531176184810.83092344119076
330.2191474793585870.4382949587171740.780852520641413
340.1945858204727870.3891716409455740.805414179527213
350.3598316341793490.7196632683586980.640168365820651
360.6147966075551710.7704067848896580.385203392444829
370.5106369283618180.9787261432763640.489363071638182
380.4031063245938660.8062126491877320.596893675406134
390.6149346555577610.7701306888844790.385065344442239
400.5407940280744740.9184119438510520.459205971925526
410.4759585621857860.9519171243715710.524041437814214
420.5657418117804390.8685163764391230.434258188219561
430.5974596748868770.8050806502262470.402540325113123
440.4726107414559470.9452214829118940.527389258544053

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.271117229841029 & 0.542234459682058 & 0.728882770158971 \tabularnewline
17 & 0.188117640137312 & 0.376235280274624 & 0.811882359862688 \tabularnewline
18 & 0.106486262239244 & 0.212972524478487 & 0.893513737760756 \tabularnewline
19 & 0.312380405695799 & 0.624760811391599 & 0.6876195943042 \tabularnewline
20 & 0.256789506441944 & 0.513579012883889 & 0.743210493558056 \tabularnewline
21 & 0.272516660049601 & 0.545033320099202 & 0.7274833399504 \tabularnewline
22 & 0.200231287119842 & 0.400462574239685 & 0.799768712880158 \tabularnewline
23 & 0.136707912068986 & 0.273415824137972 & 0.863292087931014 \tabularnewline
24 & 0.171297754798385 & 0.342595509596769 & 0.828702245201616 \tabularnewline
25 & 0.115868517149005 & 0.231737034298010 & 0.884131482850995 \tabularnewline
26 & 0.0781760045614825 & 0.156352009122965 & 0.921823995438517 \tabularnewline
27 & 0.0627387304761923 & 0.125477460952385 & 0.937261269523808 \tabularnewline
28 & 0.0423205024137596 & 0.0846410048275191 & 0.95767949758624 \tabularnewline
29 & 0.0474768954470265 & 0.094953790894053 & 0.952523104552974 \tabularnewline
30 & 0.117903615917635 & 0.235807231835270 & 0.882096384082365 \tabularnewline
31 & 0.101573456770861 & 0.203146913541722 & 0.898426543229139 \tabularnewline
32 & 0.169076558809241 & 0.338153117618481 & 0.83092344119076 \tabularnewline
33 & 0.219147479358587 & 0.438294958717174 & 0.780852520641413 \tabularnewline
34 & 0.194585820472787 & 0.389171640945574 & 0.805414179527213 \tabularnewline
35 & 0.359831634179349 & 0.719663268358698 & 0.640168365820651 \tabularnewline
36 & 0.614796607555171 & 0.770406784889658 & 0.385203392444829 \tabularnewline
37 & 0.510636928361818 & 0.978726143276364 & 0.489363071638182 \tabularnewline
38 & 0.403106324593866 & 0.806212649187732 & 0.596893675406134 \tabularnewline
39 & 0.614934655557761 & 0.770130688884479 & 0.385065344442239 \tabularnewline
40 & 0.540794028074474 & 0.918411943851052 & 0.459205971925526 \tabularnewline
41 & 0.475958562185786 & 0.951917124371571 & 0.524041437814214 \tabularnewline
42 & 0.565741811780439 & 0.868516376439123 & 0.434258188219561 \tabularnewline
43 & 0.597459674886877 & 0.805080650226247 & 0.402540325113123 \tabularnewline
44 & 0.472610741455947 & 0.945221482911894 & 0.527389258544053 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67082&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.271117229841029[/C][C]0.542234459682058[/C][C]0.728882770158971[/C][/ROW]
[ROW][C]17[/C][C]0.188117640137312[/C][C]0.376235280274624[/C][C]0.811882359862688[/C][/ROW]
[ROW][C]18[/C][C]0.106486262239244[/C][C]0.212972524478487[/C][C]0.893513737760756[/C][/ROW]
[ROW][C]19[/C][C]0.312380405695799[/C][C]0.624760811391599[/C][C]0.6876195943042[/C][/ROW]
[ROW][C]20[/C][C]0.256789506441944[/C][C]0.513579012883889[/C][C]0.743210493558056[/C][/ROW]
[ROW][C]21[/C][C]0.272516660049601[/C][C]0.545033320099202[/C][C]0.7274833399504[/C][/ROW]
[ROW][C]22[/C][C]0.200231287119842[/C][C]0.400462574239685[/C][C]0.799768712880158[/C][/ROW]
[ROW][C]23[/C][C]0.136707912068986[/C][C]0.273415824137972[/C][C]0.863292087931014[/C][/ROW]
[ROW][C]24[/C][C]0.171297754798385[/C][C]0.342595509596769[/C][C]0.828702245201616[/C][/ROW]
[ROW][C]25[/C][C]0.115868517149005[/C][C]0.231737034298010[/C][C]0.884131482850995[/C][/ROW]
[ROW][C]26[/C][C]0.0781760045614825[/C][C]0.156352009122965[/C][C]0.921823995438517[/C][/ROW]
[ROW][C]27[/C][C]0.0627387304761923[/C][C]0.125477460952385[/C][C]0.937261269523808[/C][/ROW]
[ROW][C]28[/C][C]0.0423205024137596[/C][C]0.0846410048275191[/C][C]0.95767949758624[/C][/ROW]
[ROW][C]29[/C][C]0.0474768954470265[/C][C]0.094953790894053[/C][C]0.952523104552974[/C][/ROW]
[ROW][C]30[/C][C]0.117903615917635[/C][C]0.235807231835270[/C][C]0.882096384082365[/C][/ROW]
[ROW][C]31[/C][C]0.101573456770861[/C][C]0.203146913541722[/C][C]0.898426543229139[/C][/ROW]
[ROW][C]32[/C][C]0.169076558809241[/C][C]0.338153117618481[/C][C]0.83092344119076[/C][/ROW]
[ROW][C]33[/C][C]0.219147479358587[/C][C]0.438294958717174[/C][C]0.780852520641413[/C][/ROW]
[ROW][C]34[/C][C]0.194585820472787[/C][C]0.389171640945574[/C][C]0.805414179527213[/C][/ROW]
[ROW][C]35[/C][C]0.359831634179349[/C][C]0.719663268358698[/C][C]0.640168365820651[/C][/ROW]
[ROW][C]36[/C][C]0.614796607555171[/C][C]0.770406784889658[/C][C]0.385203392444829[/C][/ROW]
[ROW][C]37[/C][C]0.510636928361818[/C][C]0.978726143276364[/C][C]0.489363071638182[/C][/ROW]
[ROW][C]38[/C][C]0.403106324593866[/C][C]0.806212649187732[/C][C]0.596893675406134[/C][/ROW]
[ROW][C]39[/C][C]0.614934655557761[/C][C]0.770130688884479[/C][C]0.385065344442239[/C][/ROW]
[ROW][C]40[/C][C]0.540794028074474[/C][C]0.918411943851052[/C][C]0.459205971925526[/C][/ROW]
[ROW][C]41[/C][C]0.475958562185786[/C][C]0.951917124371571[/C][C]0.524041437814214[/C][/ROW]
[ROW][C]42[/C][C]0.565741811780439[/C][C]0.868516376439123[/C][C]0.434258188219561[/C][/ROW]
[ROW][C]43[/C][C]0.597459674886877[/C][C]0.805080650226247[/C][C]0.402540325113123[/C][/ROW]
[ROW][C]44[/C][C]0.472610741455947[/C][C]0.945221482911894[/C][C]0.527389258544053[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67082&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=67082&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.2711172298410290.5422344596820580.728882770158971
170.1881176401373120.3762352802746240.811882359862688
180.1064862622392440.2129725244784870.893513737760756
190.3123804056957990.6247608113915990.6876195943042
200.2567895064419440.5135790128838890.743210493558056
210.2725166600496010.5450333200992020.7274833399504
220.2002312871198420.4004625742396850.799768712880158
230.1367079120689860.2734158241379720.863292087931014
240.1712977547983850.3425955095967690.828702245201616
250.1158685171490050.2317370342980100.884131482850995
260.07817600456148250.1563520091229650.921823995438517
270.06273873047619230.1254774609523850.937261269523808
280.04232050241375960.08464100482751910.95767949758624
290.04747689544702650.0949537908940530.952523104552974
300.1179036159176350.2358072318352700.882096384082365
310.1015734567708610.2031469135417220.898426543229139
320.1690765588092410.3381531176184810.83092344119076
330.2191474793585870.4382949587171740.780852520641413
340.1945858204727870.3891716409455740.805414179527213
350.3598316341793490.7196632683586980.640168365820651
360.6147966075551710.7704067848896580.385203392444829
370.5106369283618180.9787261432763640.489363071638182
380.4031063245938660.8062126491877320.596893675406134
390.6149346555577610.7701306888844790.385065344442239
400.5407940280744740.9184119438510520.459205971925526
410.4759585621857860.9519171243715710.524041437814214
420.5657418117804390.8685163764391230.434258188219561
430.5974596748868770.8050806502262470.402540325113123
440.4726107414559470.9452214829118940.527389258544053







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level20.0689655172413793OK

\begin{tabular}{lllllllll}
\hline
Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
Description & # significant tests & % significant tests & OK/NOK \tabularnewline
1% type I error level & 0 & 0 & OK \tabularnewline
5% type I error level & 0 & 0 & OK \tabularnewline
10% type I error level & 2 & 0.0689655172413793 & OK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=67082&T=6

[TABLE]
[ROW][C]Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]Description[/C][C]# significant tests[/C][C]% significant tests[/C][C]OK/NOK[/C][/ROW]
[ROW][C]1% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]2[/C][C]0.0689655172413793[/C][C]OK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=67082&T=6

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

As an alternative you can also use a QR Code:  

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

Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level00OK
10% type I error level20.0689655172413793OK



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