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, 01 Dec 2008 12:02:38 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2008/Dec/01/t1228158454puohtbwv6llgsjy.htm/, Retrieved Sun, 12 May 2024 08:43:53 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=27177, Retrieved Sun, 12 May 2024 08:43:53 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsblog
Estimated Impact286
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [blogblog] [2008-12-01 19:02:38] [0cdfeda4aa2f9e551c2e529c44a404df] [Current]
Feedback Forum

Post a new message
Dataseries X:
564260	0
491117	0
621769	0
642302	0
611278	0
846462	0
607912	0
547550	0
715309	0
695634	0
779700	0
1303196	0
540356	0
532917	0
680054	0
663715	0
711397	0
801442	0
589042	0
611648	0
852471	0
703403	0
701913	0
1277262	0
552924	0
624650	0
785161	0
683755	0
637168	0
766338	1
590239	1
724734	1
797947	1
734796	1
741821	1
1352663	1
586784	0
619788	0
817280	0
670827	0
741638	0
791051	0
614362	0
684702	0
815746	0
740751	0
787766	0
1403677	0
704144	0
609141	0
770951	0
664689	0
719533	0
799724	0
683953	0
723532	0
705441	0
711204	0
792322	0
1360777	0




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time7 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001

\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 & 7 seconds \tabularnewline
R Server & 'Herman Ole Andreas Wold' @ 193.190.124.10:1001 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=27177&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]7 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ 193.190.124.10:1001[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=27177&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=27177&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 time7 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001







Multiple Linear Regression - Estimated Regression Equation
x[t] = + 1282020.1 + 6650.00000000011y[t] -731329.902777778M1[t] -747061.038888889M2[t] -589100.775M3[t] -660646.311111111M4[t] -643061.247222222M5[t] -529150.783333334M6[t] -714612.719444445M7[t] -674841.255555555M8[t] -557451.791666667M9[t] -619237.127777778M10[t] -577250.463888889M11[t] + 1560.13611111111t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
x[t] =  +  1282020.1 +  6650.00000000011y[t] -731329.902777778M1[t] -747061.038888889M2[t] -589100.775M3[t] -660646.311111111M4[t] -643061.247222222M5[t] -529150.783333334M6[t] -714612.719444445M7[t] -674841.255555555M8[t] -557451.791666667M9[t] -619237.127777778M10[t] -577250.463888889M11[t] +  1560.13611111111t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=27177&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]x[t] =  +  1282020.1 +  6650.00000000011y[t] -731329.902777778M1[t] -747061.038888889M2[t] -589100.775M3[t] -660646.311111111M4[t] -643061.247222222M5[t] -529150.783333334M6[t] -714612.719444445M7[t] -674841.255555555M8[t] -557451.791666667M9[t] -619237.127777778M10[t] -577250.463888889M11[t] +  1560.13611111111t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=27177&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=27177&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
x[t] = + 1282020.1 + 6650.00000000011y[t] -731329.902777778M1[t] -747061.038888889M2[t] -589100.775M3[t] -660646.311111111M4[t] -643061.247222222M5[t] -529150.783333334M6[t] -714612.719444445M7[t] -674841.255555555M8[t] -557451.791666667M9[t] -619237.127777778M10[t] -577250.463888889M11[t] + 1560.13611111111t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)1282020.124394.17551552.554400
y6650.0000000001119406.9640220.34270.7334150.366707
M1-731329.90277777829554.792572-24.744900
M2-747061.03888888929511.397559-25.314300
M3-589100.77529472.080347-19.988400
M4-660646.31111111129436.857275-22.442800
M5-643061.24722222229405.743057-21.868600
M6-529150.78333333429121.225684-18.170600
M7-714612.71944444529098.164345-24.558700
M8-674841.25555555529079.282373-23.206900
M9-557451.79166666729064.587914-19.179800
M10-619237.12777777829054.087322-21.313300
M11-577250.46388888929047.785145-19.872400
t1560.13611111111349.3652824.46565.1e-052.6e-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) & 1282020.1 & 24394.175515 & 52.5544 & 0 & 0 \tabularnewline
y & 6650.00000000011 & 19406.964022 & 0.3427 & 0.733415 & 0.366707 \tabularnewline
M1 & -731329.902777778 & 29554.792572 & -24.7449 & 0 & 0 \tabularnewline
M2 & -747061.038888889 & 29511.397559 & -25.3143 & 0 & 0 \tabularnewline
M3 & -589100.775 & 29472.080347 & -19.9884 & 0 & 0 \tabularnewline
M4 & -660646.311111111 & 29436.857275 & -22.4428 & 0 & 0 \tabularnewline
M5 & -643061.247222222 & 29405.743057 & -21.8686 & 0 & 0 \tabularnewline
M6 & -529150.783333334 & 29121.225684 & -18.1706 & 0 & 0 \tabularnewline
M7 & -714612.719444445 & 29098.164345 & -24.5587 & 0 & 0 \tabularnewline
M8 & -674841.255555555 & 29079.282373 & -23.2069 & 0 & 0 \tabularnewline
M9 & -557451.791666667 & 29064.587914 & -19.1798 & 0 & 0 \tabularnewline
M10 & -619237.127777778 & 29054.087322 & -21.3133 & 0 & 0 \tabularnewline
M11 & -577250.463888889 & 29047.785145 & -19.8724 & 0 & 0 \tabularnewline
t & 1560.13611111111 & 349.365282 & 4.4656 & 5.1e-05 & 2.6e-05 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=27177&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]1282020.1[/C][C]24394.175515[/C][C]52.5544[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]y[/C][C]6650.00000000011[/C][C]19406.964022[/C][C]0.3427[/C][C]0.733415[/C][C]0.366707[/C][/ROW]
[ROW][C]M1[/C][C]-731329.902777778[/C][C]29554.792572[/C][C]-24.7449[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M2[/C][C]-747061.038888889[/C][C]29511.397559[/C][C]-25.3143[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M3[/C][C]-589100.775[/C][C]29472.080347[/C][C]-19.9884[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M4[/C][C]-660646.311111111[/C][C]29436.857275[/C][C]-22.4428[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M5[/C][C]-643061.247222222[/C][C]29405.743057[/C][C]-21.8686[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M6[/C][C]-529150.783333334[/C][C]29121.225684[/C][C]-18.1706[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M7[/C][C]-714612.719444445[/C][C]29098.164345[/C][C]-24.5587[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]-674841.255555555[/C][C]29079.282373[/C][C]-23.2069[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M9[/C][C]-557451.791666667[/C][C]29064.587914[/C][C]-19.1798[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M10[/C][C]-619237.127777778[/C][C]29054.087322[/C][C]-21.3133[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M11[/C][C]-577250.463888889[/C][C]29047.785145[/C][C]-19.8724[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]t[/C][C]1560.13611111111[/C][C]349.365282[/C][C]4.4656[/C][C]5.1e-05[/C][C]2.6e-05[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=27177&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=27177&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)1282020.124394.17551552.554400
y6650.0000000001119406.9640220.34270.7334150.366707
M1-731329.90277777829554.792572-24.744900
M2-747061.03888888929511.397559-25.314300
M3-589100.77529472.080347-19.988400
M4-660646.31111111129436.857275-22.442800
M5-643061.24722222229405.743057-21.868600
M6-529150.78333333429121.225684-18.170600
M7-714612.71944444529098.164345-24.558700
M8-674841.25555555529079.282373-23.206900
M9-557451.79166666729064.587914-19.179800
M10-619237.12777777829054.087322-21.313300
M11-577250.46388888929047.785145-19.872400
t1560.13611111111349.3652824.46565.1e-052.6e-05







Multiple Linear Regression - Regression Statistics
Multiple R0.979289983408107
R-squared0.95900887160345
Adjusted R-squared0.94742442227399
F-TEST (value)82.7841569615778
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation45925.2590011078
Sum Squared Residuals97019953058.6665

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.979289983408107 \tabularnewline
R-squared & 0.95900887160345 \tabularnewline
Adjusted R-squared & 0.94742442227399 \tabularnewline
F-TEST (value) & 82.7841569615778 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 45925.2590011078 \tabularnewline
Sum Squared Residuals & 97019953058.6665 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=27177&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.979289983408107[/C][/ROW]
[ROW][C]R-squared[/C][C]0.95900887160345[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.94742442227399[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]82.7841569615778[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/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]45925.2590011078[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]97019953058.6665[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=27177&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=27177&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.979289983408107
R-squared0.95900887160345
Adjusted R-squared0.94742442227399
F-TEST (value)82.7841569615778
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation45925.2590011078
Sum Squared Residuals97019953058.6665







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1564260552250.33333333412009.6666666659
2491117538079.333333333-46962.3333333332
3621769697599.733333333-75830.7333333333
4642302627614.33333333414687.6666666665
5611278646759.533333334-35481.5333333336
6846462762230.13333333484231.8666666665
7607912578328.33333333329583.6666666666
8547550619659.933333333-72109.9333333329
9715309738609.533333333-23300.5333333332
10695634678384.33333333317249.6666666667
11779700721931.13333333357768.8666666666
1213031961300741.733333332454.26666666682
13540356570971.966666666-30615.9666666664
14532917556800.966666667-23883.9666666667
15680054716321.366666667-36267.3666666667
16663715646335.96666666717379.0333333334
17711397665481.16666666745915.8333333334
18801442780951.76666666720490.2333333334
19589042597049.966666667-8007.96666666659
20611648638381.566666667-26733.5666666667
21852471757331.16666666795139.8333333334
22703403697105.9666666676297.03333333335
23701913740652.766666667-38739.7666666666
2412772621319463.36666667-42201.3666666667
25552924589693.6-36769.5999999998
26624650575522.649127.4
2778516173504350118
28683755665057.618697.4000000001
29637168684202.8-47034.7999999999
30766338806323.4-39985.4
31590239622421.6-32182.6
32724734663753.260980.7999999999
33797947782702.815244.1999999999
34734796722477.612318.4000000000
35741821766024.4-24203.3999999999
36135266313448357828.00000000005
37586784608415.233333333-21631.2333333332
38619788594244.23333333325543.7666666666
39817280753764.63333333363515.3666666666
40670827683779.233333333-12952.2333333333
41741638702924.43333333338713.5666666667
42791051818395.033333333-27344.0333333333
43614362634493.233333333-20131.2333333333
44684702675824.8333333338877.16666666656
45815746794774.43333333320971.5666666667
46740751734549.2333333336201.76666666665
47787766778096.0333333339669.96666666667
4814036771356906.6333333346770.3666666665
49704144627136.86666666677007.1333333335
50609141612965.866666667-3824.86666666673
51770951772486.266666667-1535.26666666672
52664689702500.866666667-37811.8666666666
53719533721646.066666667-2113.06666666663
54799724837116.666666667-37392.6666666666
55683953653214.86666666730738.1333333333
56723532694546.46666666728985.5333333332
57705441813496.066666667-108055.066666667
58711204753270.866666667-42066.8666666667
59792322796817.666666667-4495.66666666670
6013607771375628.26666667-14851.2666666668

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 564260 & 552250.333333334 & 12009.6666666659 \tabularnewline
2 & 491117 & 538079.333333333 & -46962.3333333332 \tabularnewline
3 & 621769 & 697599.733333333 & -75830.7333333333 \tabularnewline
4 & 642302 & 627614.333333334 & 14687.6666666665 \tabularnewline
5 & 611278 & 646759.533333334 & -35481.5333333336 \tabularnewline
6 & 846462 & 762230.133333334 & 84231.8666666665 \tabularnewline
7 & 607912 & 578328.333333333 & 29583.6666666666 \tabularnewline
8 & 547550 & 619659.933333333 & -72109.9333333329 \tabularnewline
9 & 715309 & 738609.533333333 & -23300.5333333332 \tabularnewline
10 & 695634 & 678384.333333333 & 17249.6666666667 \tabularnewline
11 & 779700 & 721931.133333333 & 57768.8666666666 \tabularnewline
12 & 1303196 & 1300741.73333333 & 2454.26666666682 \tabularnewline
13 & 540356 & 570971.966666666 & -30615.9666666664 \tabularnewline
14 & 532917 & 556800.966666667 & -23883.9666666667 \tabularnewline
15 & 680054 & 716321.366666667 & -36267.3666666667 \tabularnewline
16 & 663715 & 646335.966666667 & 17379.0333333334 \tabularnewline
17 & 711397 & 665481.166666667 & 45915.8333333334 \tabularnewline
18 & 801442 & 780951.766666667 & 20490.2333333334 \tabularnewline
19 & 589042 & 597049.966666667 & -8007.96666666659 \tabularnewline
20 & 611648 & 638381.566666667 & -26733.5666666667 \tabularnewline
21 & 852471 & 757331.166666667 & 95139.8333333334 \tabularnewline
22 & 703403 & 697105.966666667 & 6297.03333333335 \tabularnewline
23 & 701913 & 740652.766666667 & -38739.7666666666 \tabularnewline
24 & 1277262 & 1319463.36666667 & -42201.3666666667 \tabularnewline
25 & 552924 & 589693.6 & -36769.5999999998 \tabularnewline
26 & 624650 & 575522.6 & 49127.4 \tabularnewline
27 & 785161 & 735043 & 50118 \tabularnewline
28 & 683755 & 665057.6 & 18697.4000000001 \tabularnewline
29 & 637168 & 684202.8 & -47034.7999999999 \tabularnewline
30 & 766338 & 806323.4 & -39985.4 \tabularnewline
31 & 590239 & 622421.6 & -32182.6 \tabularnewline
32 & 724734 & 663753.2 & 60980.7999999999 \tabularnewline
33 & 797947 & 782702.8 & 15244.1999999999 \tabularnewline
34 & 734796 & 722477.6 & 12318.4000000000 \tabularnewline
35 & 741821 & 766024.4 & -24203.3999999999 \tabularnewline
36 & 1352663 & 1344835 & 7828.00000000005 \tabularnewline
37 & 586784 & 608415.233333333 & -21631.2333333332 \tabularnewline
38 & 619788 & 594244.233333333 & 25543.7666666666 \tabularnewline
39 & 817280 & 753764.633333333 & 63515.3666666666 \tabularnewline
40 & 670827 & 683779.233333333 & -12952.2333333333 \tabularnewline
41 & 741638 & 702924.433333333 & 38713.5666666667 \tabularnewline
42 & 791051 & 818395.033333333 & -27344.0333333333 \tabularnewline
43 & 614362 & 634493.233333333 & -20131.2333333333 \tabularnewline
44 & 684702 & 675824.833333333 & 8877.16666666656 \tabularnewline
45 & 815746 & 794774.433333333 & 20971.5666666667 \tabularnewline
46 & 740751 & 734549.233333333 & 6201.76666666665 \tabularnewline
47 & 787766 & 778096.033333333 & 9669.96666666667 \tabularnewline
48 & 1403677 & 1356906.63333333 & 46770.3666666665 \tabularnewline
49 & 704144 & 627136.866666666 & 77007.1333333335 \tabularnewline
50 & 609141 & 612965.866666667 & -3824.86666666673 \tabularnewline
51 & 770951 & 772486.266666667 & -1535.26666666672 \tabularnewline
52 & 664689 & 702500.866666667 & -37811.8666666666 \tabularnewline
53 & 719533 & 721646.066666667 & -2113.06666666663 \tabularnewline
54 & 799724 & 837116.666666667 & -37392.6666666666 \tabularnewline
55 & 683953 & 653214.866666667 & 30738.1333333333 \tabularnewline
56 & 723532 & 694546.466666667 & 28985.5333333332 \tabularnewline
57 & 705441 & 813496.066666667 & -108055.066666667 \tabularnewline
58 & 711204 & 753270.866666667 & -42066.8666666667 \tabularnewline
59 & 792322 & 796817.666666667 & -4495.66666666670 \tabularnewline
60 & 1360777 & 1375628.26666667 & -14851.2666666668 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=27177&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]564260[/C][C]552250.333333334[/C][C]12009.6666666659[/C][/ROW]
[ROW][C]2[/C][C]491117[/C][C]538079.333333333[/C][C]-46962.3333333332[/C][/ROW]
[ROW][C]3[/C][C]621769[/C][C]697599.733333333[/C][C]-75830.7333333333[/C][/ROW]
[ROW][C]4[/C][C]642302[/C][C]627614.333333334[/C][C]14687.6666666665[/C][/ROW]
[ROW][C]5[/C][C]611278[/C][C]646759.533333334[/C][C]-35481.5333333336[/C][/ROW]
[ROW][C]6[/C][C]846462[/C][C]762230.133333334[/C][C]84231.8666666665[/C][/ROW]
[ROW][C]7[/C][C]607912[/C][C]578328.333333333[/C][C]29583.6666666666[/C][/ROW]
[ROW][C]8[/C][C]547550[/C][C]619659.933333333[/C][C]-72109.9333333329[/C][/ROW]
[ROW][C]9[/C][C]715309[/C][C]738609.533333333[/C][C]-23300.5333333332[/C][/ROW]
[ROW][C]10[/C][C]695634[/C][C]678384.333333333[/C][C]17249.6666666667[/C][/ROW]
[ROW][C]11[/C][C]779700[/C][C]721931.133333333[/C][C]57768.8666666666[/C][/ROW]
[ROW][C]12[/C][C]1303196[/C][C]1300741.73333333[/C][C]2454.26666666682[/C][/ROW]
[ROW][C]13[/C][C]540356[/C][C]570971.966666666[/C][C]-30615.9666666664[/C][/ROW]
[ROW][C]14[/C][C]532917[/C][C]556800.966666667[/C][C]-23883.9666666667[/C][/ROW]
[ROW][C]15[/C][C]680054[/C][C]716321.366666667[/C][C]-36267.3666666667[/C][/ROW]
[ROW][C]16[/C][C]663715[/C][C]646335.966666667[/C][C]17379.0333333334[/C][/ROW]
[ROW][C]17[/C][C]711397[/C][C]665481.166666667[/C][C]45915.8333333334[/C][/ROW]
[ROW][C]18[/C][C]801442[/C][C]780951.766666667[/C][C]20490.2333333334[/C][/ROW]
[ROW][C]19[/C][C]589042[/C][C]597049.966666667[/C][C]-8007.96666666659[/C][/ROW]
[ROW][C]20[/C][C]611648[/C][C]638381.566666667[/C][C]-26733.5666666667[/C][/ROW]
[ROW][C]21[/C][C]852471[/C][C]757331.166666667[/C][C]95139.8333333334[/C][/ROW]
[ROW][C]22[/C][C]703403[/C][C]697105.966666667[/C][C]6297.03333333335[/C][/ROW]
[ROW][C]23[/C][C]701913[/C][C]740652.766666667[/C][C]-38739.7666666666[/C][/ROW]
[ROW][C]24[/C][C]1277262[/C][C]1319463.36666667[/C][C]-42201.3666666667[/C][/ROW]
[ROW][C]25[/C][C]552924[/C][C]589693.6[/C][C]-36769.5999999998[/C][/ROW]
[ROW][C]26[/C][C]624650[/C][C]575522.6[/C][C]49127.4[/C][/ROW]
[ROW][C]27[/C][C]785161[/C][C]735043[/C][C]50118[/C][/ROW]
[ROW][C]28[/C][C]683755[/C][C]665057.6[/C][C]18697.4000000001[/C][/ROW]
[ROW][C]29[/C][C]637168[/C][C]684202.8[/C][C]-47034.7999999999[/C][/ROW]
[ROW][C]30[/C][C]766338[/C][C]806323.4[/C][C]-39985.4[/C][/ROW]
[ROW][C]31[/C][C]590239[/C][C]622421.6[/C][C]-32182.6[/C][/ROW]
[ROW][C]32[/C][C]724734[/C][C]663753.2[/C][C]60980.7999999999[/C][/ROW]
[ROW][C]33[/C][C]797947[/C][C]782702.8[/C][C]15244.1999999999[/C][/ROW]
[ROW][C]34[/C][C]734796[/C][C]722477.6[/C][C]12318.4000000000[/C][/ROW]
[ROW][C]35[/C][C]741821[/C][C]766024.4[/C][C]-24203.3999999999[/C][/ROW]
[ROW][C]36[/C][C]1352663[/C][C]1344835[/C][C]7828.00000000005[/C][/ROW]
[ROW][C]37[/C][C]586784[/C][C]608415.233333333[/C][C]-21631.2333333332[/C][/ROW]
[ROW][C]38[/C][C]619788[/C][C]594244.233333333[/C][C]25543.7666666666[/C][/ROW]
[ROW][C]39[/C][C]817280[/C][C]753764.633333333[/C][C]63515.3666666666[/C][/ROW]
[ROW][C]40[/C][C]670827[/C][C]683779.233333333[/C][C]-12952.2333333333[/C][/ROW]
[ROW][C]41[/C][C]741638[/C][C]702924.433333333[/C][C]38713.5666666667[/C][/ROW]
[ROW][C]42[/C][C]791051[/C][C]818395.033333333[/C][C]-27344.0333333333[/C][/ROW]
[ROW][C]43[/C][C]614362[/C][C]634493.233333333[/C][C]-20131.2333333333[/C][/ROW]
[ROW][C]44[/C][C]684702[/C][C]675824.833333333[/C][C]8877.16666666656[/C][/ROW]
[ROW][C]45[/C][C]815746[/C][C]794774.433333333[/C][C]20971.5666666667[/C][/ROW]
[ROW][C]46[/C][C]740751[/C][C]734549.233333333[/C][C]6201.76666666665[/C][/ROW]
[ROW][C]47[/C][C]787766[/C][C]778096.033333333[/C][C]9669.96666666667[/C][/ROW]
[ROW][C]48[/C][C]1403677[/C][C]1356906.63333333[/C][C]46770.3666666665[/C][/ROW]
[ROW][C]49[/C][C]704144[/C][C]627136.866666666[/C][C]77007.1333333335[/C][/ROW]
[ROW][C]50[/C][C]609141[/C][C]612965.866666667[/C][C]-3824.86666666673[/C][/ROW]
[ROW][C]51[/C][C]770951[/C][C]772486.266666667[/C][C]-1535.26666666672[/C][/ROW]
[ROW][C]52[/C][C]664689[/C][C]702500.866666667[/C][C]-37811.8666666666[/C][/ROW]
[ROW][C]53[/C][C]719533[/C][C]721646.066666667[/C][C]-2113.06666666663[/C][/ROW]
[ROW][C]54[/C][C]799724[/C][C]837116.666666667[/C][C]-37392.6666666666[/C][/ROW]
[ROW][C]55[/C][C]683953[/C][C]653214.866666667[/C][C]30738.1333333333[/C][/ROW]
[ROW][C]56[/C][C]723532[/C][C]694546.466666667[/C][C]28985.5333333332[/C][/ROW]
[ROW][C]57[/C][C]705441[/C][C]813496.066666667[/C][C]-108055.066666667[/C][/ROW]
[ROW][C]58[/C][C]711204[/C][C]753270.866666667[/C][C]-42066.8666666667[/C][/ROW]
[ROW][C]59[/C][C]792322[/C][C]796817.666666667[/C][C]-4495.66666666670[/C][/ROW]
[ROW][C]60[/C][C]1360777[/C][C]1375628.26666667[/C][C]-14851.2666666668[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=27177&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=27177&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
1564260552250.33333333412009.6666666659
2491117538079.333333333-46962.3333333332
3621769697599.733333333-75830.7333333333
4642302627614.33333333414687.6666666665
5611278646759.533333334-35481.5333333336
6846462762230.13333333484231.8666666665
7607912578328.33333333329583.6666666666
8547550619659.933333333-72109.9333333329
9715309738609.533333333-23300.5333333332
10695634678384.33333333317249.6666666667
11779700721931.13333333357768.8666666666
1213031961300741.733333332454.26666666682
13540356570971.966666666-30615.9666666664
14532917556800.966666667-23883.9666666667
15680054716321.366666667-36267.3666666667
16663715646335.96666666717379.0333333334
17711397665481.16666666745915.8333333334
18801442780951.76666666720490.2333333334
19589042597049.966666667-8007.96666666659
20611648638381.566666667-26733.5666666667
21852471757331.16666666795139.8333333334
22703403697105.9666666676297.03333333335
23701913740652.766666667-38739.7666666666
2412772621319463.36666667-42201.3666666667
25552924589693.6-36769.5999999998
26624650575522.649127.4
2778516173504350118
28683755665057.618697.4000000001
29637168684202.8-47034.7999999999
30766338806323.4-39985.4
31590239622421.6-32182.6
32724734663753.260980.7999999999
33797947782702.815244.1999999999
34734796722477.612318.4000000000
35741821766024.4-24203.3999999999
36135266313448357828.00000000005
37586784608415.233333333-21631.2333333332
38619788594244.23333333325543.7666666666
39817280753764.63333333363515.3666666666
40670827683779.233333333-12952.2333333333
41741638702924.43333333338713.5666666667
42791051818395.033333333-27344.0333333333
43614362634493.233333333-20131.2333333333
44684702675824.8333333338877.16666666656
45815746794774.43333333320971.5666666667
46740751734549.2333333336201.76666666665
47787766778096.0333333339669.96666666667
4814036771356906.6333333346770.3666666665
49704144627136.86666666677007.1333333335
50609141612965.866666667-3824.86666666673
51770951772486.266666667-1535.26666666672
52664689702500.866666667-37811.8666666666
53719533721646.066666667-2113.06666666663
54799724837116.666666667-37392.6666666666
55683953653214.86666666730738.1333333333
56723532694546.46666666728985.5333333332
57705441813496.066666667-108055.066666667
58711204753270.866666667-42066.8666666667
59792322796817.666666667-4495.66666666670
6013607771375628.26666667-14851.2666666668







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.475266064224720.950532128449440.52473393577528
180.5644263756203490.8711472487593020.435573624379651
190.4686575552898220.9373151105796430.531342444710178
200.4251409784007440.8502819568014880.574859021599256
210.736847020163270.526305959673460.26315297983673
220.6533756341211470.6932487317577070.346624365878853
230.7626198241796940.4747603516406120.237380175820306
240.753376090000170.493247819999660.24662390999983
250.7604678340146320.4790643319707350.239532165985368
260.790087615441240.4198247691175180.209912384558759
270.8150849440109220.3698301119781550.184915055989078
280.755790364639010.488419270721980.24420963536099
290.8398926261652060.3202147476695870.160107373834794
300.7736096569169430.4527806861661150.226390343083058
310.7539495369065640.4921009261868730.246050463093436
320.8624584626210980.2750830747578040.137541537378902
330.8389594097881520.3220811804236960.161040590211848
340.793329823953050.41334035209390.20667017604695
350.7146530471710190.5706939056579620.285346952828981
360.6258195695060.7483608609880.374180430494
370.826102517651320.3477949646973610.173897482348681
380.7386737372244890.5226525255510220.261326262775511
390.6875836422234640.6248327155530730.312416357776536
400.5827126511107140.8345746977785710.417287348889286
410.4528703563583760.9057407127167530.547129643641624
420.3507419904823140.7014839809646280.649258009517686
430.421824608637660.843649217275320.57817539136234

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.47526606422472 & 0.95053212844944 & 0.52473393577528 \tabularnewline
18 & 0.564426375620349 & 0.871147248759302 & 0.435573624379651 \tabularnewline
19 & 0.468657555289822 & 0.937315110579643 & 0.531342444710178 \tabularnewline
20 & 0.425140978400744 & 0.850281956801488 & 0.574859021599256 \tabularnewline
21 & 0.73684702016327 & 0.52630595967346 & 0.26315297983673 \tabularnewline
22 & 0.653375634121147 & 0.693248731757707 & 0.346624365878853 \tabularnewline
23 & 0.762619824179694 & 0.474760351640612 & 0.237380175820306 \tabularnewline
24 & 0.75337609000017 & 0.49324781999966 & 0.24662390999983 \tabularnewline
25 & 0.760467834014632 & 0.479064331970735 & 0.239532165985368 \tabularnewline
26 & 0.79008761544124 & 0.419824769117518 & 0.209912384558759 \tabularnewline
27 & 0.815084944010922 & 0.369830111978155 & 0.184915055989078 \tabularnewline
28 & 0.75579036463901 & 0.48841927072198 & 0.24420963536099 \tabularnewline
29 & 0.839892626165206 & 0.320214747669587 & 0.160107373834794 \tabularnewline
30 & 0.773609656916943 & 0.452780686166115 & 0.226390343083058 \tabularnewline
31 & 0.753949536906564 & 0.492100926186873 & 0.246050463093436 \tabularnewline
32 & 0.862458462621098 & 0.275083074757804 & 0.137541537378902 \tabularnewline
33 & 0.838959409788152 & 0.322081180423696 & 0.161040590211848 \tabularnewline
34 & 0.79332982395305 & 0.4133403520939 & 0.20667017604695 \tabularnewline
35 & 0.714653047171019 & 0.570693905657962 & 0.285346952828981 \tabularnewline
36 & 0.625819569506 & 0.748360860988 & 0.374180430494 \tabularnewline
37 & 0.82610251765132 & 0.347794964697361 & 0.173897482348681 \tabularnewline
38 & 0.738673737224489 & 0.522652525551022 & 0.261326262775511 \tabularnewline
39 & 0.687583642223464 & 0.624832715553073 & 0.312416357776536 \tabularnewline
40 & 0.582712651110714 & 0.834574697778571 & 0.417287348889286 \tabularnewline
41 & 0.452870356358376 & 0.905740712716753 & 0.547129643641624 \tabularnewline
42 & 0.350741990482314 & 0.701483980964628 & 0.649258009517686 \tabularnewline
43 & 0.42182460863766 & 0.84364921727532 & 0.57817539136234 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=27177&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.47526606422472[/C][C]0.95053212844944[/C][C]0.52473393577528[/C][/ROW]
[ROW][C]18[/C][C]0.564426375620349[/C][C]0.871147248759302[/C][C]0.435573624379651[/C][/ROW]
[ROW][C]19[/C][C]0.468657555289822[/C][C]0.937315110579643[/C][C]0.531342444710178[/C][/ROW]
[ROW][C]20[/C][C]0.425140978400744[/C][C]0.850281956801488[/C][C]0.574859021599256[/C][/ROW]
[ROW][C]21[/C][C]0.73684702016327[/C][C]0.52630595967346[/C][C]0.26315297983673[/C][/ROW]
[ROW][C]22[/C][C]0.653375634121147[/C][C]0.693248731757707[/C][C]0.346624365878853[/C][/ROW]
[ROW][C]23[/C][C]0.762619824179694[/C][C]0.474760351640612[/C][C]0.237380175820306[/C][/ROW]
[ROW][C]24[/C][C]0.75337609000017[/C][C]0.49324781999966[/C][C]0.24662390999983[/C][/ROW]
[ROW][C]25[/C][C]0.760467834014632[/C][C]0.479064331970735[/C][C]0.239532165985368[/C][/ROW]
[ROW][C]26[/C][C]0.79008761544124[/C][C]0.419824769117518[/C][C]0.209912384558759[/C][/ROW]
[ROW][C]27[/C][C]0.815084944010922[/C][C]0.369830111978155[/C][C]0.184915055989078[/C][/ROW]
[ROW][C]28[/C][C]0.75579036463901[/C][C]0.48841927072198[/C][C]0.24420963536099[/C][/ROW]
[ROW][C]29[/C][C]0.839892626165206[/C][C]0.320214747669587[/C][C]0.160107373834794[/C][/ROW]
[ROW][C]30[/C][C]0.773609656916943[/C][C]0.452780686166115[/C][C]0.226390343083058[/C][/ROW]
[ROW][C]31[/C][C]0.753949536906564[/C][C]0.492100926186873[/C][C]0.246050463093436[/C][/ROW]
[ROW][C]32[/C][C]0.862458462621098[/C][C]0.275083074757804[/C][C]0.137541537378902[/C][/ROW]
[ROW][C]33[/C][C]0.838959409788152[/C][C]0.322081180423696[/C][C]0.161040590211848[/C][/ROW]
[ROW][C]34[/C][C]0.79332982395305[/C][C]0.4133403520939[/C][C]0.20667017604695[/C][/ROW]
[ROW][C]35[/C][C]0.714653047171019[/C][C]0.570693905657962[/C][C]0.285346952828981[/C][/ROW]
[ROW][C]36[/C][C]0.625819569506[/C][C]0.748360860988[/C][C]0.374180430494[/C][/ROW]
[ROW][C]37[/C][C]0.82610251765132[/C][C]0.347794964697361[/C][C]0.173897482348681[/C][/ROW]
[ROW][C]38[/C][C]0.738673737224489[/C][C]0.522652525551022[/C][C]0.261326262775511[/C][/ROW]
[ROW][C]39[/C][C]0.687583642223464[/C][C]0.624832715553073[/C][C]0.312416357776536[/C][/ROW]
[ROW][C]40[/C][C]0.582712651110714[/C][C]0.834574697778571[/C][C]0.417287348889286[/C][/ROW]
[ROW][C]41[/C][C]0.452870356358376[/C][C]0.905740712716753[/C][C]0.547129643641624[/C][/ROW]
[ROW][C]42[/C][C]0.350741990482314[/C][C]0.701483980964628[/C][C]0.649258009517686[/C][/ROW]
[ROW][C]43[/C][C]0.42182460863766[/C][C]0.84364921727532[/C][C]0.57817539136234[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=27177&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=27177&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.475266064224720.950532128449440.52473393577528
180.5644263756203490.8711472487593020.435573624379651
190.4686575552898220.9373151105796430.531342444710178
200.4251409784007440.8502819568014880.574859021599256
210.736847020163270.526305959673460.26315297983673
220.6533756341211470.6932487317577070.346624365878853
230.7626198241796940.4747603516406120.237380175820306
240.753376090000170.493247819999660.24662390999983
250.7604678340146320.4790643319707350.239532165985368
260.790087615441240.4198247691175180.209912384558759
270.8150849440109220.3698301119781550.184915055989078
280.755790364639010.488419270721980.24420963536099
290.8398926261652060.3202147476695870.160107373834794
300.7736096569169430.4527806861661150.226390343083058
310.7539495369065640.4921009261868730.246050463093436
320.8624584626210980.2750830747578040.137541537378902
330.8389594097881520.3220811804236960.161040590211848
340.793329823953050.41334035209390.20667017604695
350.7146530471710190.5706939056579620.285346952828981
360.6258195695060.7483608609880.374180430494
370.826102517651320.3477949646973610.173897482348681
380.7386737372244890.5226525255510220.261326262775511
390.6875836422234640.6248327155530730.312416357776536
400.5827126511107140.8345746977785710.417287348889286
410.4528703563583760.9057407127167530.547129643641624
420.3507419904823140.7014839809646280.649258009517686
430.421824608637660.843649217275320.57817539136234







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 level00OK

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

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



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