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, 21 Nov 2009 06:16:06 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/21/t1258809454l4a5z8yhpn0xcmq.htm/, Retrieved Sun, 28 Apr 2024 13:44:31 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58537, Retrieved Sun, 28 Apr 2024 13:44:31 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact134
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [Multiple Linear R...] [2009-11-21 13:16:06] [b42c0aeada8a5fa89825c81e73c10645] [Current]
Feedback Forum

Post a new message
Dataseries X:
8.5	104.1
8.6	90.2
8.5	99.2
8.2	116.5
8.1	98.4
7.9	90.6
8.6	130.5
8.7	107.4
8.7	106
8.5	196.5
8.4	107.8
8.5	90.5
8.7	123.8
8.7	114.7
8.6	115.3
8.5	197
8.3	88.4
8	93.8
8.2	111.3
8.1	105.9
8.1	123.6
8	171
7.9	97
7.9	99.2
8	126.6
8	103.4
7.9	121.3
8	129.6
7.7	110.8
7.2	98.9
7.5	122.8
7.3	120.9
7	133.1
7	203.1
7	110.2
7.2	119.5
7.3	135.1
7.1	113.9
6.8	137.4
6.4	157.1
6.1	126.4
6.5	112.2
7.7	128.8
7.9	136.8
7.5	156.5
6.9	215.2
6.6	146.7
6.9	130.8
7.7	133.1
8	153.4
8	159.9
7.7	174.6
7.3	145
7.4	112.9
8.1	137.8
8.3	150.6




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58537&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
Yt-4[t] = + 52.0823136100608 + 3.85640117510045X[t] + 17.6916980839663M1[t] + 7.16702112263573M2[t] + 18.1793683493212M3[t] + 46.3402276700147M4[t] + 5.23247106121416M5[t] -7.4523097356024M6[t] + 13.7663006215087M7[t] + 10.7416236601781M8[t] + 21.8799825079597M9[t] + 88.4472518580307M10[t] + 6.95388109059166M11[t] + 0.950420914326608t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Yt-4[t] =  +  52.0823136100608 +  3.85640117510045X[t] +  17.6916980839663M1[t] +  7.16702112263573M2[t] +  18.1793683493212M3[t] +  46.3402276700147M4[t] +  5.23247106121416M5[t] -7.4523097356024M6[t] +  13.7663006215087M7[t] +  10.7416236601781M8[t] +  21.8799825079597M9[t] +  88.4472518580307M10[t] +  6.95388109059166M11[t] +  0.950420914326608t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58537&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Yt-4[t] =  +  52.0823136100608 +  3.85640117510045X[t] +  17.6916980839663M1[t] +  7.16702112263573M2[t] +  18.1793683493212M3[t] +  46.3402276700147M4[t] +  5.23247106121416M5[t] -7.4523097356024M6[t] +  13.7663006215087M7[t] +  10.7416236601781M8[t] +  21.8799825079597M9[t] +  88.4472518580307M10[t] +  6.95388109059166M11[t] +  0.950420914326608t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58537&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58537&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
Yt-4[t] = + 52.0823136100608 + 3.85640117510045X[t] + 17.6916980839663M1[t] + 7.16702112263573M2[t] + 18.1793683493212M3[t] + 46.3402276700147M4[t] + 5.23247106121416M5[t] -7.4523097356024M6[t] + 13.7663006215087M7[t] + 10.7416236601781M8[t] + 21.8799825079597M9[t] + 88.4472518580307M10[t] + 6.95388109059166M11[t] + 0.950420914326608t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)52.082313610060835.5351061.46570.1501880.075094
X3.856401175100454.1236020.93520.355030.177515
M117.69169808396639.2532171.9120.062720.03136
M27.167021122635739.2854440.77190.4445210.222261
M318.17936834932129.228491.96990.0554650.027733
M446.34022767001479.1707155.05319e-064e-06
M55.232471061214169.1835590.56980.5718720.285936
M6-7.45230973560249.208474-0.80930.4229110.211455
M713.76630062150879.3256261.47620.1473540.073677
M810.74162366017819.382551.14490.2587530.129377
M921.87998250795979.6760692.26120.0289830.014492
M1088.44725185803079.665199.151100
M116.953881090591669.6852060.7180.4767380.238369
t0.9504209143266080.1574226.037400

\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) & 52.0823136100608 & 35.535106 & 1.4657 & 0.150188 & 0.075094 \tabularnewline
X & 3.85640117510045 & 4.123602 & 0.9352 & 0.35503 & 0.177515 \tabularnewline
M1 & 17.6916980839663 & 9.253217 & 1.912 & 0.06272 & 0.03136 \tabularnewline
M2 & 7.16702112263573 & 9.285444 & 0.7719 & 0.444521 & 0.222261 \tabularnewline
M3 & 18.1793683493212 & 9.22849 & 1.9699 & 0.055465 & 0.027733 \tabularnewline
M4 & 46.3402276700147 & 9.170715 & 5.0531 & 9e-06 & 4e-06 \tabularnewline
M5 & 5.23247106121416 & 9.183559 & 0.5698 & 0.571872 & 0.285936 \tabularnewline
M6 & -7.4523097356024 & 9.208474 & -0.8093 & 0.422911 & 0.211455 \tabularnewline
M7 & 13.7663006215087 & 9.325626 & 1.4762 & 0.147354 & 0.073677 \tabularnewline
M8 & 10.7416236601781 & 9.38255 & 1.1449 & 0.258753 & 0.129377 \tabularnewline
M9 & 21.8799825079597 & 9.676069 & 2.2612 & 0.028983 & 0.014492 \tabularnewline
M10 & 88.4472518580307 & 9.66519 & 9.1511 & 0 & 0 \tabularnewline
M11 & 6.95388109059166 & 9.685206 & 0.718 & 0.476738 & 0.238369 \tabularnewline
t & 0.950420914326608 & 0.157422 & 6.0374 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58537&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]52.0823136100608[/C][C]35.535106[/C][C]1.4657[/C][C]0.150188[/C][C]0.075094[/C][/ROW]
[ROW][C]X[/C][C]3.85640117510045[/C][C]4.123602[/C][C]0.9352[/C][C]0.35503[/C][C]0.177515[/C][/ROW]
[ROW][C]M1[/C][C]17.6916980839663[/C][C]9.253217[/C][C]1.912[/C][C]0.06272[/C][C]0.03136[/C][/ROW]
[ROW][C]M2[/C][C]7.16702112263573[/C][C]9.285444[/C][C]0.7719[/C][C]0.444521[/C][C]0.222261[/C][/ROW]
[ROW][C]M3[/C][C]18.1793683493212[/C][C]9.22849[/C][C]1.9699[/C][C]0.055465[/C][C]0.027733[/C][/ROW]
[ROW][C]M4[/C][C]46.3402276700147[/C][C]9.170715[/C][C]5.0531[/C][C]9e-06[/C][C]4e-06[/C][/ROW]
[ROW][C]M5[/C][C]5.23247106121416[/C][C]9.183559[/C][C]0.5698[/C][C]0.571872[/C][C]0.285936[/C][/ROW]
[ROW][C]M6[/C][C]-7.4523097356024[/C][C]9.208474[/C][C]-0.8093[/C][C]0.422911[/C][C]0.211455[/C][/ROW]
[ROW][C]M7[/C][C]13.7663006215087[/C][C]9.325626[/C][C]1.4762[/C][C]0.147354[/C][C]0.073677[/C][/ROW]
[ROW][C]M8[/C][C]10.7416236601781[/C][C]9.38255[/C][C]1.1449[/C][C]0.258753[/C][C]0.129377[/C][/ROW]
[ROW][C]M9[/C][C]21.8799825079597[/C][C]9.676069[/C][C]2.2612[/C][C]0.028983[/C][C]0.014492[/C][/ROW]
[ROW][C]M10[/C][C]88.4472518580307[/C][C]9.66519[/C][C]9.1511[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M11[/C][C]6.95388109059166[/C][C]9.685206[/C][C]0.718[/C][C]0.476738[/C][C]0.238369[/C][/ROW]
[ROW][C]t[/C][C]0.950420914326608[/C][C]0.157422[/C][C]6.0374[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58537&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58537&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)52.082313610060835.5351061.46570.1501880.075094
X3.856401175100454.1236020.93520.355030.177515
M117.69169808396639.2532171.9120.062720.03136
M27.167021122635739.2854440.77190.4445210.222261
M318.17936834932129.228491.96990.0554650.027733
M446.34022767001479.1707155.05319e-064e-06
M55.232471061214169.1835590.56980.5718720.285936
M6-7.45230973560249.208474-0.80930.4229110.211455
M713.76630062150879.3256261.47620.1473540.073677
M810.74162366017819.382551.14490.2587530.129377
M921.87998250795979.6760692.26120.0289830.014492
M1088.44725185803079.665199.151100
M116.953881090591669.6852060.7180.4767380.238369
t0.9504209143266080.1574226.037400







Multiple Linear Regression - Regression Statistics
Multiple R0.915004088656497
R-squared0.837232482258107
Adjusted R-squared0.786852060099902
F-TEST (value)16.6182109317985
F-TEST (DF numerator)13
F-TEST (DF denominator)42
p-value1.55486734598753e-12
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation13.6573269030295
Sum Squared Residuals7833.94828172099

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.915004088656497 \tabularnewline
R-squared & 0.837232482258107 \tabularnewline
Adjusted R-squared & 0.786852060099902 \tabularnewline
F-TEST (value) & 16.6182109317985 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 42 \tabularnewline
p-value & 1.55486734598753e-12 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 13.6573269030295 \tabularnewline
Sum Squared Residuals & 7833.94828172099 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58537&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.915004088656497[/C][/ROW]
[ROW][C]R-squared[/C][C]0.837232482258107[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.786852060099902[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]16.6182109317985[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]42[/C][/ROW]
[ROW][C]p-value[/C][C]1.55486734598753e-12[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]13.6573269030295[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]7833.94828172099[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58537&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58537&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.915004088656497
R-squared0.837232482258107
Adjusted R-squared0.786852060099902
F-TEST (value)16.6182109317985
F-TEST (DF numerator)13
F-TEST (DF denominator)42
p-value1.55486734598753e-12
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation13.6573269030295
Sum Squared Residuals7833.94828172099







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1104.1103.5038425967080.596157403292294
290.294.3152266672137-4.11522666721365
399.2105.892354690716-6.69235469071565
4116.5133.846714573206-17.3467145732056
598.493.30373876122175.09626123877832
690.680.79809864371169.80190135628835
7130.5105.66661073772024.8333892622803
8107.4103.9779948082263.4220051917743
9106116.066774570334-10.0667745703340
10196.5182.81318459971113.6868154002885
11107.8101.8845946290895.91540537091103
1290.596.266774570334-5.76677457033391
13123.8115.6801738036478.11982619635302
14114.7106.1059177566438.59408224335702
15115.3117.683045780145-2.383045780145
16197146.40868589765550.591314102345
1788.4105.480069968161-17.0800699681611
1893.892.5887897331411.21121026685903
19111.3115.529101239599-4.22910123959879
20105.9113.069205075085-7.16920507508472
21123.6125.157984837193-1.55798483719297
22171192.290034984081-21.2900349840805
2397111.361445013458-14.3614450134581
2499.2105.357984837193-6.15798483719299
25126.6124.3857439529962.21425604700404
26103.4114.811487905992-11.4114879059920
27121.3126.388615929494-5.08861592949398
28129.6155.885536282024-26.2855362820241
29110.8114.57128023502-3.7712802350201
3098.9100.90871976498-2.0087197649799
31122.8124.234671388948-1.43467138894778
32120.9121.389135106924-0.489135106923657
33133.1132.3209945165020.77900548349823
34203.1199.8386847808993.26131521910062
35110.2119.295734927787-9.09573492778693
36119.5114.0635549865425.43644501345803
37135.1133.0913141023452.00868589765506
38113.9122.745777820321-8.84577782032084
39137.4133.5516256088033.84837439119724
40157.1161.120345373783-4.02034537378268
41126.4119.8060893267796.59391067322133
42112.2109.6142899143292.58571008567113
43128.8136.411002595887-7.61100259588715
44136.8135.1080267839031.69197321609678
45156.5145.65424607597110.8457539240287
46215.2210.8580956353094.34190436469139
47146.7129.15822542966617.5417745703339
48130.8124.3116856059316.48831439406889
49133.1146.038925544304-12.9389255443044
50153.4137.62158984983115.7784101501695
51159.9149.58435799084310.3156420091574
52174.6177.538717873333-2.93871787333257
53145135.8388217088199.1611782911815
54112.9124.490101943839-11.5901019438386
55137.8149.358614037847-11.5586140378466
56150.6148.0556382258632.54436177413731

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 104.1 & 103.503842596708 & 0.596157403292294 \tabularnewline
2 & 90.2 & 94.3152266672137 & -4.11522666721365 \tabularnewline
3 & 99.2 & 105.892354690716 & -6.69235469071565 \tabularnewline
4 & 116.5 & 133.846714573206 & -17.3467145732056 \tabularnewline
5 & 98.4 & 93.3037387612217 & 5.09626123877832 \tabularnewline
6 & 90.6 & 80.7980986437116 & 9.80190135628835 \tabularnewline
7 & 130.5 & 105.666610737720 & 24.8333892622803 \tabularnewline
8 & 107.4 & 103.977994808226 & 3.4220051917743 \tabularnewline
9 & 106 & 116.066774570334 & -10.0667745703340 \tabularnewline
10 & 196.5 & 182.813184599711 & 13.6868154002885 \tabularnewline
11 & 107.8 & 101.884594629089 & 5.91540537091103 \tabularnewline
12 & 90.5 & 96.266774570334 & -5.76677457033391 \tabularnewline
13 & 123.8 & 115.680173803647 & 8.11982619635302 \tabularnewline
14 & 114.7 & 106.105917756643 & 8.59408224335702 \tabularnewline
15 & 115.3 & 117.683045780145 & -2.383045780145 \tabularnewline
16 & 197 & 146.408685897655 & 50.591314102345 \tabularnewline
17 & 88.4 & 105.480069968161 & -17.0800699681611 \tabularnewline
18 & 93.8 & 92.588789733141 & 1.21121026685903 \tabularnewline
19 & 111.3 & 115.529101239599 & -4.22910123959879 \tabularnewline
20 & 105.9 & 113.069205075085 & -7.16920507508472 \tabularnewline
21 & 123.6 & 125.157984837193 & -1.55798483719297 \tabularnewline
22 & 171 & 192.290034984081 & -21.2900349840805 \tabularnewline
23 & 97 & 111.361445013458 & -14.3614450134581 \tabularnewline
24 & 99.2 & 105.357984837193 & -6.15798483719299 \tabularnewline
25 & 126.6 & 124.385743952996 & 2.21425604700404 \tabularnewline
26 & 103.4 & 114.811487905992 & -11.4114879059920 \tabularnewline
27 & 121.3 & 126.388615929494 & -5.08861592949398 \tabularnewline
28 & 129.6 & 155.885536282024 & -26.2855362820241 \tabularnewline
29 & 110.8 & 114.57128023502 & -3.7712802350201 \tabularnewline
30 & 98.9 & 100.90871976498 & -2.0087197649799 \tabularnewline
31 & 122.8 & 124.234671388948 & -1.43467138894778 \tabularnewline
32 & 120.9 & 121.389135106924 & -0.489135106923657 \tabularnewline
33 & 133.1 & 132.320994516502 & 0.77900548349823 \tabularnewline
34 & 203.1 & 199.838684780899 & 3.26131521910062 \tabularnewline
35 & 110.2 & 119.295734927787 & -9.09573492778693 \tabularnewline
36 & 119.5 & 114.063554986542 & 5.43644501345803 \tabularnewline
37 & 135.1 & 133.091314102345 & 2.00868589765506 \tabularnewline
38 & 113.9 & 122.745777820321 & -8.84577782032084 \tabularnewline
39 & 137.4 & 133.551625608803 & 3.84837439119724 \tabularnewline
40 & 157.1 & 161.120345373783 & -4.02034537378268 \tabularnewline
41 & 126.4 & 119.806089326779 & 6.59391067322133 \tabularnewline
42 & 112.2 & 109.614289914329 & 2.58571008567113 \tabularnewline
43 & 128.8 & 136.411002595887 & -7.61100259588715 \tabularnewline
44 & 136.8 & 135.108026783903 & 1.69197321609678 \tabularnewline
45 & 156.5 & 145.654246075971 & 10.8457539240287 \tabularnewline
46 & 215.2 & 210.858095635309 & 4.34190436469139 \tabularnewline
47 & 146.7 & 129.158225429666 & 17.5417745703339 \tabularnewline
48 & 130.8 & 124.311685605931 & 6.48831439406889 \tabularnewline
49 & 133.1 & 146.038925544304 & -12.9389255443044 \tabularnewline
50 & 153.4 & 137.621589849831 & 15.7784101501695 \tabularnewline
51 & 159.9 & 149.584357990843 & 10.3156420091574 \tabularnewline
52 & 174.6 & 177.538717873333 & -2.93871787333257 \tabularnewline
53 & 145 & 135.838821708819 & 9.1611782911815 \tabularnewline
54 & 112.9 & 124.490101943839 & -11.5901019438386 \tabularnewline
55 & 137.8 & 149.358614037847 & -11.5586140378466 \tabularnewline
56 & 150.6 & 148.055638225863 & 2.54436177413731 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58537&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]104.1[/C][C]103.503842596708[/C][C]0.596157403292294[/C][/ROW]
[ROW][C]2[/C][C]90.2[/C][C]94.3152266672137[/C][C]-4.11522666721365[/C][/ROW]
[ROW][C]3[/C][C]99.2[/C][C]105.892354690716[/C][C]-6.69235469071565[/C][/ROW]
[ROW][C]4[/C][C]116.5[/C][C]133.846714573206[/C][C]-17.3467145732056[/C][/ROW]
[ROW][C]5[/C][C]98.4[/C][C]93.3037387612217[/C][C]5.09626123877832[/C][/ROW]
[ROW][C]6[/C][C]90.6[/C][C]80.7980986437116[/C][C]9.80190135628835[/C][/ROW]
[ROW][C]7[/C][C]130.5[/C][C]105.666610737720[/C][C]24.8333892622803[/C][/ROW]
[ROW][C]8[/C][C]107.4[/C][C]103.977994808226[/C][C]3.4220051917743[/C][/ROW]
[ROW][C]9[/C][C]106[/C][C]116.066774570334[/C][C]-10.0667745703340[/C][/ROW]
[ROW][C]10[/C][C]196.5[/C][C]182.813184599711[/C][C]13.6868154002885[/C][/ROW]
[ROW][C]11[/C][C]107.8[/C][C]101.884594629089[/C][C]5.91540537091103[/C][/ROW]
[ROW][C]12[/C][C]90.5[/C][C]96.266774570334[/C][C]-5.76677457033391[/C][/ROW]
[ROW][C]13[/C][C]123.8[/C][C]115.680173803647[/C][C]8.11982619635302[/C][/ROW]
[ROW][C]14[/C][C]114.7[/C][C]106.105917756643[/C][C]8.59408224335702[/C][/ROW]
[ROW][C]15[/C][C]115.3[/C][C]117.683045780145[/C][C]-2.383045780145[/C][/ROW]
[ROW][C]16[/C][C]197[/C][C]146.408685897655[/C][C]50.591314102345[/C][/ROW]
[ROW][C]17[/C][C]88.4[/C][C]105.480069968161[/C][C]-17.0800699681611[/C][/ROW]
[ROW][C]18[/C][C]93.8[/C][C]92.588789733141[/C][C]1.21121026685903[/C][/ROW]
[ROW][C]19[/C][C]111.3[/C][C]115.529101239599[/C][C]-4.22910123959879[/C][/ROW]
[ROW][C]20[/C][C]105.9[/C][C]113.069205075085[/C][C]-7.16920507508472[/C][/ROW]
[ROW][C]21[/C][C]123.6[/C][C]125.157984837193[/C][C]-1.55798483719297[/C][/ROW]
[ROW][C]22[/C][C]171[/C][C]192.290034984081[/C][C]-21.2900349840805[/C][/ROW]
[ROW][C]23[/C][C]97[/C][C]111.361445013458[/C][C]-14.3614450134581[/C][/ROW]
[ROW][C]24[/C][C]99.2[/C][C]105.357984837193[/C][C]-6.15798483719299[/C][/ROW]
[ROW][C]25[/C][C]126.6[/C][C]124.385743952996[/C][C]2.21425604700404[/C][/ROW]
[ROW][C]26[/C][C]103.4[/C][C]114.811487905992[/C][C]-11.4114879059920[/C][/ROW]
[ROW][C]27[/C][C]121.3[/C][C]126.388615929494[/C][C]-5.08861592949398[/C][/ROW]
[ROW][C]28[/C][C]129.6[/C][C]155.885536282024[/C][C]-26.2855362820241[/C][/ROW]
[ROW][C]29[/C][C]110.8[/C][C]114.57128023502[/C][C]-3.7712802350201[/C][/ROW]
[ROW][C]30[/C][C]98.9[/C][C]100.90871976498[/C][C]-2.0087197649799[/C][/ROW]
[ROW][C]31[/C][C]122.8[/C][C]124.234671388948[/C][C]-1.43467138894778[/C][/ROW]
[ROW][C]32[/C][C]120.9[/C][C]121.389135106924[/C][C]-0.489135106923657[/C][/ROW]
[ROW][C]33[/C][C]133.1[/C][C]132.320994516502[/C][C]0.77900548349823[/C][/ROW]
[ROW][C]34[/C][C]203.1[/C][C]199.838684780899[/C][C]3.26131521910062[/C][/ROW]
[ROW][C]35[/C][C]110.2[/C][C]119.295734927787[/C][C]-9.09573492778693[/C][/ROW]
[ROW][C]36[/C][C]119.5[/C][C]114.063554986542[/C][C]5.43644501345803[/C][/ROW]
[ROW][C]37[/C][C]135.1[/C][C]133.091314102345[/C][C]2.00868589765506[/C][/ROW]
[ROW][C]38[/C][C]113.9[/C][C]122.745777820321[/C][C]-8.84577782032084[/C][/ROW]
[ROW][C]39[/C][C]137.4[/C][C]133.551625608803[/C][C]3.84837439119724[/C][/ROW]
[ROW][C]40[/C][C]157.1[/C][C]161.120345373783[/C][C]-4.02034537378268[/C][/ROW]
[ROW][C]41[/C][C]126.4[/C][C]119.806089326779[/C][C]6.59391067322133[/C][/ROW]
[ROW][C]42[/C][C]112.2[/C][C]109.614289914329[/C][C]2.58571008567113[/C][/ROW]
[ROW][C]43[/C][C]128.8[/C][C]136.411002595887[/C][C]-7.61100259588715[/C][/ROW]
[ROW][C]44[/C][C]136.8[/C][C]135.108026783903[/C][C]1.69197321609678[/C][/ROW]
[ROW][C]45[/C][C]156.5[/C][C]145.654246075971[/C][C]10.8457539240287[/C][/ROW]
[ROW][C]46[/C][C]215.2[/C][C]210.858095635309[/C][C]4.34190436469139[/C][/ROW]
[ROW][C]47[/C][C]146.7[/C][C]129.158225429666[/C][C]17.5417745703339[/C][/ROW]
[ROW][C]48[/C][C]130.8[/C][C]124.311685605931[/C][C]6.48831439406889[/C][/ROW]
[ROW][C]49[/C][C]133.1[/C][C]146.038925544304[/C][C]-12.9389255443044[/C][/ROW]
[ROW][C]50[/C][C]153.4[/C][C]137.621589849831[/C][C]15.7784101501695[/C][/ROW]
[ROW][C]51[/C][C]159.9[/C][C]149.584357990843[/C][C]10.3156420091574[/C][/ROW]
[ROW][C]52[/C][C]174.6[/C][C]177.538717873333[/C][C]-2.93871787333257[/C][/ROW]
[ROW][C]53[/C][C]145[/C][C]135.838821708819[/C][C]9.1611782911815[/C][/ROW]
[ROW][C]54[/C][C]112.9[/C][C]124.490101943839[/C][C]-11.5901019438386[/C][/ROW]
[ROW][C]55[/C][C]137.8[/C][C]149.358614037847[/C][C]-11.5586140378466[/C][/ROW]
[ROW][C]56[/C][C]150.6[/C][C]148.055638225863[/C][C]2.54436177413731[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58537&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58537&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
1104.1103.5038425967080.596157403292294
290.294.3152266672137-4.11522666721365
399.2105.892354690716-6.69235469071565
4116.5133.846714573206-17.3467145732056
598.493.30373876122175.09626123877832
690.680.79809864371169.80190135628835
7130.5105.66661073772024.8333892622803
8107.4103.9779948082263.4220051917743
9106116.066774570334-10.0667745703340
10196.5182.81318459971113.6868154002885
11107.8101.8845946290895.91540537091103
1290.596.266774570334-5.76677457033391
13123.8115.6801738036478.11982619635302
14114.7106.1059177566438.59408224335702
15115.3117.683045780145-2.383045780145
16197146.40868589765550.591314102345
1788.4105.480069968161-17.0800699681611
1893.892.5887897331411.21121026685903
19111.3115.529101239599-4.22910123959879
20105.9113.069205075085-7.16920507508472
21123.6125.157984837193-1.55798483719297
22171192.290034984081-21.2900349840805
2397111.361445013458-14.3614450134581
2499.2105.357984837193-6.15798483719299
25126.6124.3857439529962.21425604700404
26103.4114.811487905992-11.4114879059920
27121.3126.388615929494-5.08861592949398
28129.6155.885536282024-26.2855362820241
29110.8114.57128023502-3.7712802350201
3098.9100.90871976498-2.0087197649799
31122.8124.234671388948-1.43467138894778
32120.9121.389135106924-0.489135106923657
33133.1132.3209945165020.77900548349823
34203.1199.8386847808993.26131521910062
35110.2119.295734927787-9.09573492778693
36119.5114.0635549865425.43644501345803
37135.1133.0913141023452.00868589765506
38113.9122.745777820321-8.84577782032084
39137.4133.5516256088033.84837439119724
40157.1161.120345373783-4.02034537378268
41126.4119.8060893267796.59391067322133
42112.2109.6142899143292.58571008567113
43128.8136.411002595887-7.61100259588715
44136.8135.1080267839031.69197321609678
45156.5145.65424607597110.8457539240287
46215.2210.8580956353094.34190436469139
47146.7129.15822542966617.5417745703339
48130.8124.3116856059316.48831439406889
49133.1146.038925544304-12.9389255443044
50153.4137.62158984983115.7784101501695
51159.9149.58435799084310.3156420091574
52174.6177.538717873333-2.93871787333257
53145135.8388217088199.1611782911815
54112.9124.490101943839-11.5901019438386
55137.8149.358614037847-11.5586140378466
56150.6148.0556382258632.54436177413731







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.9976533144616930.004693371076614660.00234668553830733
180.996376704051270.00724659189746070.00362329594873035
190.99851388057470.002972238850600640.00148611942530032
200.9986375400544930.002724919891013060.00136245994550653
210.9987129198332620.002574160333475620.00128708016673781
220.99863072375050.002738552498999470.00136927624949973
230.9970570727591630.005885854481674660.00294292724083733
240.9950446252865280.0099107494269430.0049553747134715
250.9954779152335460.009044169532908190.00452208476645410
260.9908393745394470.01832125092110520.00916062546055262
270.983678288973180.03264342205363920.0163217110268196
280.9938241160181940.01235176796361240.00617588398180618
290.989424717417070.02115056516586020.0105752825829301
300.9806519607386550.03869607852268960.0193480392613448
310.9753427542670220.04931449146595580.0246572457329779
320.9613378270633820.07732434587323550.0386621729366177
330.9462023076515260.1075953846969470.0537976923484736
340.9123461829192960.1753076341614070.0876538170807036
350.9485725943176540.1028548113646920.0514274056823459
360.9202099958118050.1595800083763890.0797900041881946
370.8855797122851230.2288405754297550.114420287714877
380.971292146263130.05741570747374010.0287078537368700
390.938301552397310.1233968952053780.061698447602689

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.997653314461693 & 0.00469337107661466 & 0.00234668553830733 \tabularnewline
18 & 0.99637670405127 & 0.0072465918974607 & 0.00362329594873035 \tabularnewline
19 & 0.9985138805747 & 0.00297223885060064 & 0.00148611942530032 \tabularnewline
20 & 0.998637540054493 & 0.00272491989101306 & 0.00136245994550653 \tabularnewline
21 & 0.998712919833262 & 0.00257416033347562 & 0.00128708016673781 \tabularnewline
22 & 0.9986307237505 & 0.00273855249899947 & 0.00136927624949973 \tabularnewline
23 & 0.997057072759163 & 0.00588585448167466 & 0.00294292724083733 \tabularnewline
24 & 0.995044625286528 & 0.009910749426943 & 0.0049553747134715 \tabularnewline
25 & 0.995477915233546 & 0.00904416953290819 & 0.00452208476645410 \tabularnewline
26 & 0.990839374539447 & 0.0183212509211052 & 0.00916062546055262 \tabularnewline
27 & 0.98367828897318 & 0.0326434220536392 & 0.0163217110268196 \tabularnewline
28 & 0.993824116018194 & 0.0123517679636124 & 0.00617588398180618 \tabularnewline
29 & 0.98942471741707 & 0.0211505651658602 & 0.0105752825829301 \tabularnewline
30 & 0.980651960738655 & 0.0386960785226896 & 0.0193480392613448 \tabularnewline
31 & 0.975342754267022 & 0.0493144914659558 & 0.0246572457329779 \tabularnewline
32 & 0.961337827063382 & 0.0773243458732355 & 0.0386621729366177 \tabularnewline
33 & 0.946202307651526 & 0.107595384696947 & 0.0537976923484736 \tabularnewline
34 & 0.912346182919296 & 0.175307634161407 & 0.0876538170807036 \tabularnewline
35 & 0.948572594317654 & 0.102854811364692 & 0.0514274056823459 \tabularnewline
36 & 0.920209995811805 & 0.159580008376389 & 0.0797900041881946 \tabularnewline
37 & 0.885579712285123 & 0.228840575429755 & 0.114420287714877 \tabularnewline
38 & 0.97129214626313 & 0.0574157074737401 & 0.0287078537368700 \tabularnewline
39 & 0.93830155239731 & 0.123396895205378 & 0.061698447602689 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58537&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]17[/C][C]0.997653314461693[/C][C]0.00469337107661466[/C][C]0.00234668553830733[/C][/ROW]
[ROW][C]18[/C][C]0.99637670405127[/C][C]0.0072465918974607[/C][C]0.00362329594873035[/C][/ROW]
[ROW][C]19[/C][C]0.9985138805747[/C][C]0.00297223885060064[/C][C]0.00148611942530032[/C][/ROW]
[ROW][C]20[/C][C]0.998637540054493[/C][C]0.00272491989101306[/C][C]0.00136245994550653[/C][/ROW]
[ROW][C]21[/C][C]0.998712919833262[/C][C]0.00257416033347562[/C][C]0.00128708016673781[/C][/ROW]
[ROW][C]22[/C][C]0.9986307237505[/C][C]0.00273855249899947[/C][C]0.00136927624949973[/C][/ROW]
[ROW][C]23[/C][C]0.997057072759163[/C][C]0.00588585448167466[/C][C]0.00294292724083733[/C][/ROW]
[ROW][C]24[/C][C]0.995044625286528[/C][C]0.009910749426943[/C][C]0.0049553747134715[/C][/ROW]
[ROW][C]25[/C][C]0.995477915233546[/C][C]0.00904416953290819[/C][C]0.00452208476645410[/C][/ROW]
[ROW][C]26[/C][C]0.990839374539447[/C][C]0.0183212509211052[/C][C]0.00916062546055262[/C][/ROW]
[ROW][C]27[/C][C]0.98367828897318[/C][C]0.0326434220536392[/C][C]0.0163217110268196[/C][/ROW]
[ROW][C]28[/C][C]0.993824116018194[/C][C]0.0123517679636124[/C][C]0.00617588398180618[/C][/ROW]
[ROW][C]29[/C][C]0.98942471741707[/C][C]0.0211505651658602[/C][C]0.0105752825829301[/C][/ROW]
[ROW][C]30[/C][C]0.980651960738655[/C][C]0.0386960785226896[/C][C]0.0193480392613448[/C][/ROW]
[ROW][C]31[/C][C]0.975342754267022[/C][C]0.0493144914659558[/C][C]0.0246572457329779[/C][/ROW]
[ROW][C]32[/C][C]0.961337827063382[/C][C]0.0773243458732355[/C][C]0.0386621729366177[/C][/ROW]
[ROW][C]33[/C][C]0.946202307651526[/C][C]0.107595384696947[/C][C]0.0537976923484736[/C][/ROW]
[ROW][C]34[/C][C]0.912346182919296[/C][C]0.175307634161407[/C][C]0.0876538170807036[/C][/ROW]
[ROW][C]35[/C][C]0.948572594317654[/C][C]0.102854811364692[/C][C]0.0514274056823459[/C][/ROW]
[ROW][C]36[/C][C]0.920209995811805[/C][C]0.159580008376389[/C][C]0.0797900041881946[/C][/ROW]
[ROW][C]37[/C][C]0.885579712285123[/C][C]0.228840575429755[/C][C]0.114420287714877[/C][/ROW]
[ROW][C]38[/C][C]0.97129214626313[/C][C]0.0574157074737401[/C][C]0.0287078537368700[/C][/ROW]
[ROW][C]39[/C][C]0.93830155239731[/C][C]0.123396895205378[/C][C]0.061698447602689[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58537&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.9976533144616930.004693371076614660.00234668553830733
180.996376704051270.00724659189746070.00362329594873035
190.99851388057470.002972238850600640.00148611942530032
200.9986375400544930.002724919891013060.00136245994550653
210.9987129198332620.002574160333475620.00128708016673781
220.99863072375050.002738552498999470.00136927624949973
230.9970570727591630.005885854481674660.00294292724083733
240.9950446252865280.0099107494269430.0049553747134715
250.9954779152335460.009044169532908190.00452208476645410
260.9908393745394470.01832125092110520.00916062546055262
270.983678288973180.03264342205363920.0163217110268196
280.9938241160181940.01235176796361240.00617588398180618
290.989424717417070.02115056516586020.0105752825829301
300.9806519607386550.03869607852268960.0193480392613448
310.9753427542670220.04931449146595580.0246572457329779
320.9613378270633820.07732434587323550.0386621729366177
330.9462023076515260.1075953846969470.0537976923484736
340.9123461829192960.1753076341614070.0876538170807036
350.9485725943176540.1028548113646920.0514274056823459
360.9202099958118050.1595800083763890.0797900041881946
370.8855797122851230.2288405754297550.114420287714877
380.971292146263130.05741570747374010.0287078537368700
390.938301552397310.1233968952053780.061698447602689







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level90.391304347826087NOK
5% type I error level150.652173913043478NOK
10% type I error level170.739130434782609NOK

\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 & 9 & 0.391304347826087 & NOK \tabularnewline
5% type I error level & 15 & 0.652173913043478 & NOK \tabularnewline
10% type I error level & 17 & 0.739130434782609 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58537&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]9[/C][C]0.391304347826087[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]15[/C][C]0.652173913043478[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]17[/C][C]0.739130434782609[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58537&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58537&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 level90.391304347826087NOK
5% type I error level150.652173913043478NOK
10% type I error level170.739130434782609NOK



Parameters (Session):
par1 = 2 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 2 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
R code (references can be found in the software module):
library(lattice)
library(lmtest)
n25 <- 25 #minimum number of obs. for Goldfeld-Quandt test
par1 <- as.numeric(par1)
x <- t(y)
k <- length(x[1,])
n <- length(x[,1])
x1 <- cbind(x[,par1], x[,1:k!=par1])
mycolnames <- c(colnames(x)[par1], colnames(x)[1:k!=par1])
colnames(x1) <- mycolnames #colnames(x)[par1]
x <- x1
if (par3 == 'First Differences'){
x2 <- array(0, dim=c(n-1,k), dimnames=list(1:(n-1), paste('(1-B)',colnames(x),sep='')))
for (i in 1:n-1) {
for (j in 1:k) {
x2[i,j] <- x[i+1,j] - x[i,j]
}
}
x <- x2
}
if (par2 == 'Include Monthly Dummies'){
x2 <- array(0, dim=c(n,11), dimnames=list(1:n, paste('M', seq(1:11), sep ='')))
for (i in 1:11){
x2[seq(i,n,12),i] <- 1
}
x <- cbind(x, x2)
}
if (par2 == 'Include Quarterly Dummies'){
x2 <- array(0, dim=c(n,3), dimnames=list(1:n, paste('Q', seq(1:3), sep ='')))
for (i in 1:3){
x2[seq(i,n,4),i] <- 1
}
x <- cbind(x, x2)
}
k <- length(x[1,])
if (par3 == 'Linear Trend'){
x <- cbind(x, c(1:n))
colnames(x)[k+1] <- 't'
}
x
k <- length(x[1,])
df <- as.data.frame(x)
(mylm <- lm(df))
(mysum <- summary(mylm))
if (n > n25) {
kp3 <- k + 3
nmkm3 <- n - k - 3
gqarr <- array(NA, dim=c(nmkm3-kp3+1,3))
numgqtests <- 0
numsignificant1 <- 0
numsignificant5 <- 0
numsignificant10 <- 0
for (mypoint in kp3:nmkm3) {
j <- 0
numgqtests <- numgqtests + 1
for (myalt in c('greater', 'two.sided', 'less')) {
j <- j + 1
gqarr[mypoint-kp3+1,j] <- gqtest(mylm, point=mypoint, alternative=myalt)$p.value
}
if (gqarr[mypoint-kp3+1,2] < 0.01) numsignificant1 <- numsignificant1 + 1
if (gqarr[mypoint-kp3+1,2] < 0.05) numsignificant5 <- numsignificant5 + 1
if (gqarr[mypoint-kp3+1,2] < 0.10) numsignificant10 <- numsignificant10 + 1
}
gqarr
}
bitmap(file='test0.png')
plot(x[,1], type='l', main='Actuals and Interpolation', ylab='value of Actuals and Interpolation (dots)', xlab='time or index')
points(x[,1]-mysum$resid)
grid()
dev.off()
bitmap(file='test1.png')
plot(mysum$resid, type='b', pch=19, main='Residuals', ylab='value of Residuals', xlab='time or index')
grid()
dev.off()
bitmap(file='test2.png')
hist(mysum$resid, main='Residual Histogram', xlab='values of Residuals')
grid()
dev.off()
bitmap(file='test3.png')
densityplot(~mysum$resid,col='black',main='Residual Density Plot', xlab='values of Residuals')
dev.off()
bitmap(file='test4.png')
qqnorm(mysum$resid, main='Residual Normal Q-Q Plot')
qqline(mysum$resid)
grid()
dev.off()
(myerror <- as.ts(mysum$resid))
bitmap(file='test5.png')
dum <- cbind(lag(myerror,k=1),myerror)
dum
dum1 <- dum[2:length(myerror),]
dum1
z <- as.data.frame(dum1)
z
plot(z,main=paste('Residual Lag plot, lowess, and regression line'), ylab='values of Residuals', xlab='lagged values of Residuals')
lines(lowess(z))
abline(lm(z))
grid()
dev.off()
bitmap(file='test6.png')
acf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Autocorrelation Function')
grid()
dev.off()
bitmap(file='test7.png')
pacf(mysum$resid, lag.max=length(mysum$resid)/2, main='Residual Partial Autocorrelation Function')
grid()
dev.off()
bitmap(file='test8.png')
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1, 0))
plot(mylm, las = 1, sub='Residual Diagnostics')
par(opar)
dev.off()
if (n > n25) {
bitmap(file='test9.png')
plot(kp3:nmkm3,gqarr[,2], main='Goldfeld-Quandt test',ylab='2-sided p-value',xlab='breakpoint')
grid()
dev.off()
}
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Estimated Regression Equation', 1, TRUE)
a<-table.row.end(a)
myeq <- colnames(x)[1]
myeq <- paste(myeq, '[t] = ', sep='')
for (i in 1:k){
if (mysum$coefficients[i,1] > 0) myeq <- paste(myeq, '+', '')
myeq <- paste(myeq, mysum$coefficients[i,1], sep=' ')
if (rownames(mysum$coefficients)[i] != '(Intercept)') {
myeq <- paste(myeq, rownames(mysum$coefficients)[i], sep='')
if (rownames(mysum$coefficients)[i] != 't') myeq <- paste(myeq, '[t]', sep='')
}
}
myeq <- paste(myeq, ' + e[t]')
a<-table.row.start(a)
a<-table.element(a, myeq)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,hyperlink('ols1.htm','Multiple Linear Regression - Ordinary Least Squares',''), 6, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Variable',header=TRUE)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'S.D.',header=TRUE)
a<-table.element(a,'T-STAT
H0: parameter = 0',header=TRUE)
a<-table.element(a,'2-tail p-value',header=TRUE)
a<-table.element(a,'1-tail p-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:k){
a<-table.row.start(a)
a<-table.element(a,rownames(mysum$coefficients)[i],header=TRUE)
a<-table.element(a,mysum$coefficients[i,1])
a<-table.element(a, round(mysum$coefficients[i,2],6))
a<-table.element(a, round(mysum$coefficients[i,3],4))
a<-table.element(a, round(mysum$coefficients[i,4],6))
a<-table.element(a, round(mysum$coefficients[i,4]/2,6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Regression Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple R',1,TRUE)
a<-table.element(a, sqrt(mysum$r.squared))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'R-squared',1,TRUE)
a<-table.element(a, mysum$r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Adjusted R-squared',1,TRUE)
a<-table.element(a, mysum$adj.r.squared)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (value)',1,TRUE)
a<-table.element(a, mysum$fstatistic[1])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF numerator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[2])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'F-TEST (DF denominator)',1,TRUE)
a<-table.element(a, mysum$fstatistic[3])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'p-value',1,TRUE)
a<-table.element(a, 1-pf(mysum$fstatistic[1],mysum$fstatistic[2],mysum$fstatistic[3]))
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Residual Statistics', 2, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Residual Standard Deviation',1,TRUE)
a<-table.element(a, mysum$sigma)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Sum Squared Residuals',1,TRUE)
a<-table.element(a, sum(myerror*myerror))
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable3.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a, 'Multiple Linear Regression - Actuals, Interpolation, and Residuals', 4, TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Time or Index', 1, TRUE)
a<-table.element(a, 'Actuals', 1, TRUE)
a<-table.element(a, 'Interpolation
Forecast', 1, TRUE)
a<-table.element(a, 'Residuals
Prediction Error', 1, TRUE)
a<-table.row.end(a)
for (i in 1:n) {
a<-table.row.start(a)
a<-table.element(a,i, 1, TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]-mysum$resid[i])
a<-table.element(a,mysum$resid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable4.tab')
if (n > n25) {
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'p-values',header=TRUE)
a<-table.element(a,'Alternative Hypothesis',3,header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'breakpoint index',header=TRUE)
a<-table.element(a,'greater',header=TRUE)
a<-table.element(a,'2-sided',header=TRUE)
a<-table.element(a,'less',header=TRUE)
a<-table.row.end(a)
for (mypoint in kp3:nmkm3) {
a<-table.row.start(a)
a<-table.element(a,mypoint,header=TRUE)
a<-table.element(a,gqarr[mypoint-kp3+1,1])
a<-table.element(a,gqarr[mypoint-kp3+1,2])
a<-table.element(a,gqarr[mypoint-kp3+1,3])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable5.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Description',header=TRUE)
a<-table.element(a,'# significant tests',header=TRUE)
a<-table.element(a,'% significant tests',header=TRUE)
a<-table.element(a,'OK/NOK',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'1% type I error level',header=TRUE)
a<-table.element(a,numsignificant1)
a<-table.element(a,numsignificant1/numgqtests)
if (numsignificant1/numgqtests < 0.01) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'5% type I error level',header=TRUE)
a<-table.element(a,numsignificant5)
a<-table.element(a,numsignificant5/numgqtests)
if (numsignificant5/numgqtests < 0.05) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'10% type I error level',header=TRUE)
a<-table.element(a,numsignificant10)
a<-table.element(a,numsignificant10/numgqtests)
if (numsignificant10/numgqtests < 0.1) dum <- 'OK' else dum <- 'NOK'
a<-table.element(a,dum)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable6.tab')
}