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, 23 Nov 2009 06:04:23 -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/23/t12589815208awthdwz2lxtj3i.htm/, Retrieved Fri, 03 May 2024 06:04:30 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58742, Retrieved Fri, 03 May 2024 06:04:30 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact152
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [] [2009-11-23 13:04:23] [09bbdaa13608b41d3e388e84e1f7dd72] [Current]
Feedback Forum

Post a new message
Dataseries X:
5560	543
3922	594
3759	611
4138	613
4634	611
3996	594
4308	595
4143	591
4429	589
5219	584
4929	573
5755	567
5592	569
4163	621
4962	629
5208	628
4755	612
4491	595
5732	597
5731	593
5040	590
6102	580
4904	574
5369	573
5578	573
4619	620
4731	626
5011	620
5299	588
4146	566
4625	557
4736	561
4219	549
5116	532
4205	526
4121	511
5103	499
4300	555
4578	565
3809	542
5526	527
4247	510
3830	514
4394	517
4826	508
4409	493
4569	490
4106	469
4794	478
3914	528
3793	534
4405	518
4022	506
4100	502
4788	516
3163	528
3585	533
3903	536
4178	537
3863	524
4187	536




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58742&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
Y[t] = + 687.377724284438 + 7.4799967392503X[t] + 461.450680361815M1[t] -869.103821310916M2[t] -758.415790659869M3[t] -542.991819354467M4[t] -94.7998695700121M5[t] -630.807919785557M6[t] -188.159911959758M7[t] -427.815904786109M8[t] -409.999918481258M9[t] + 185.824052824145M10[t] -169.575963479603M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  687.377724284438 +  7.4799967392503X[t] +  461.450680361815M1[t] -869.103821310916M2[t] -758.415790659869M3[t] -542.991819354467M4[t] -94.7998695700121M5[t] -630.807919785557M6[t] -188.159911959758M7[t] -427.815904786109M8[t] -409.999918481258M9[t] +  185.824052824145M10[t] -169.575963479603M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58742&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  687.377724284438 +  7.4799967392503X[t] +  461.450680361815M1[t] -869.103821310916M2[t] -758.415790659869M3[t] -542.991819354467M4[t] -94.7998695700121M5[t] -630.807919785557M6[t] -188.159911959758M7[t] -427.815904786109M8[t] -409.999918481258M9[t] +  185.824052824145M10[t] -169.575963479603M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58742&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 687.377724284438 + 7.4799967392503X[t] + 461.450680361815M1[t] -869.103821310916M2[t] -758.415790659869M3[t] -542.991819354467M4[t] -94.7998695700121M5[t] -630.807919785557M6[t] -188.159911959758M7[t] -427.815904786109M8[t] -409.999918481258M9[t] + 185.824052824145M10[t] -169.575963479603M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)687.3777242844381033.9688890.66480.5093630.254681
X7.47999673925031.8994693.93790.0002650.000133
M1461.450680361815332.2912921.38870.1713370.085668
M2-869.103821310916362.244322-2.39920.0203610.010181
M3-758.415790659869367.77281-2.06220.0446250.022313
M4-542.991819354467362.573452-1.49760.1407840.070392
M5-94.7998695700121355.188404-0.26690.7906890.395345
M6-630.807919785557350.099179-1.80180.0778590.03893
M7-188.159911959758350.736721-0.53650.5941110.297056
M8-427.815904786109351.37208-1.21760.2293440.114672
M9-409.999918481258350.201395-1.17080.2474770.123738
M10185.824052824145348.3287330.53350.5961680.298084
M11-169.575963479603347.618487-0.48780.6278970.313948

\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) & 687.377724284438 & 1033.968889 & 0.6648 & 0.509363 & 0.254681 \tabularnewline
X & 7.4799967392503 & 1.899469 & 3.9379 & 0.000265 & 0.000133 \tabularnewline
M1 & 461.450680361815 & 332.291292 & 1.3887 & 0.171337 & 0.085668 \tabularnewline
M2 & -869.103821310916 & 362.244322 & -2.3992 & 0.020361 & 0.010181 \tabularnewline
M3 & -758.415790659869 & 367.77281 & -2.0622 & 0.044625 & 0.022313 \tabularnewline
M4 & -542.991819354467 & 362.573452 & -1.4976 & 0.140784 & 0.070392 \tabularnewline
M5 & -94.7998695700121 & 355.188404 & -0.2669 & 0.790689 & 0.395345 \tabularnewline
M6 & -630.807919785557 & 350.099179 & -1.8018 & 0.077859 & 0.03893 \tabularnewline
M7 & -188.159911959758 & 350.736721 & -0.5365 & 0.594111 & 0.297056 \tabularnewline
M8 & -427.815904786109 & 351.37208 & -1.2176 & 0.229344 & 0.114672 \tabularnewline
M9 & -409.999918481258 & 350.201395 & -1.1708 & 0.247477 & 0.123738 \tabularnewline
M10 & 185.824052824145 & 348.328733 & 0.5335 & 0.596168 & 0.298084 \tabularnewline
M11 & -169.575963479603 & 347.618487 & -0.4878 & 0.627897 & 0.313948 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58742&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]687.377724284438[/C][C]1033.968889[/C][C]0.6648[/C][C]0.509363[/C][C]0.254681[/C][/ROW]
[ROW][C]X[/C][C]7.4799967392503[/C][C]1.899469[/C][C]3.9379[/C][C]0.000265[/C][C]0.000133[/C][/ROW]
[ROW][C]M1[/C][C]461.450680361815[/C][C]332.291292[/C][C]1.3887[/C][C]0.171337[/C][C]0.085668[/C][/ROW]
[ROW][C]M2[/C][C]-869.103821310916[/C][C]362.244322[/C][C]-2.3992[/C][C]0.020361[/C][C]0.010181[/C][/ROW]
[ROW][C]M3[/C][C]-758.415790659869[/C][C]367.77281[/C][C]-2.0622[/C][C]0.044625[/C][C]0.022313[/C][/ROW]
[ROW][C]M4[/C][C]-542.991819354467[/C][C]362.573452[/C][C]-1.4976[/C][C]0.140784[/C][C]0.070392[/C][/ROW]
[ROW][C]M5[/C][C]-94.7998695700121[/C][C]355.188404[/C][C]-0.2669[/C][C]0.790689[/C][C]0.395345[/C][/ROW]
[ROW][C]M6[/C][C]-630.807919785557[/C][C]350.099179[/C][C]-1.8018[/C][C]0.077859[/C][C]0.03893[/C][/ROW]
[ROW][C]M7[/C][C]-188.159911959758[/C][C]350.736721[/C][C]-0.5365[/C][C]0.594111[/C][C]0.297056[/C][/ROW]
[ROW][C]M8[/C][C]-427.815904786109[/C][C]351.37208[/C][C]-1.2176[/C][C]0.229344[/C][C]0.114672[/C][/ROW]
[ROW][C]M9[/C][C]-409.999918481258[/C][C]350.201395[/C][C]-1.1708[/C][C]0.247477[/C][C]0.123738[/C][/ROW]
[ROW][C]M10[/C][C]185.824052824145[/C][C]348.328733[/C][C]0.5335[/C][C]0.596168[/C][C]0.298084[/C][/ROW]
[ROW][C]M11[/C][C]-169.575963479603[/C][C]347.618487[/C][C]-0.4878[/C][C]0.627897[/C][C]0.313948[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58742&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58742&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)687.3777242844381033.9688890.66480.5093630.254681
X7.47999673925031.8994693.93790.0002650.000133
M1461.450680361815332.2912921.38870.1713370.085668
M2-869.103821310916362.244322-2.39920.0203610.010181
M3-758.415790659869367.77281-2.06220.0446250.022313
M4-542.991819354467362.573452-1.49760.1407840.070392
M5-94.7998695700121355.188404-0.26690.7906890.395345
M6-630.807919785557350.099179-1.80180.0778590.03893
M7-188.159911959758350.736721-0.53650.5941110.297056
M8-427.815904786109351.37208-1.21760.2293440.114672
M9-409.999918481258350.201395-1.17080.2474770.123738
M10185.824052824145348.3287330.53350.5961680.298084
M11-169.575963479603347.618487-0.48780.6278970.313948







Multiple Linear Regression - Regression Statistics
Multiple R0.632309405720561
R-squared0.399815184562689
Adjusted R-squared0.249768980703362
F-TEST (value)2.66461379414521
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value0.00800634103013076
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation548.602832503709
Sum Squared Residuals14446323.2558924

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.632309405720561 \tabularnewline
R-squared & 0.399815184562689 \tabularnewline
Adjusted R-squared & 0.249768980703362 \tabularnewline
F-TEST (value) & 2.66461379414521 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 48 \tabularnewline
p-value & 0.00800634103013076 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 548.602832503709 \tabularnewline
Sum Squared Residuals & 14446323.2558924 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58742&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.632309405720561[/C][/ROW]
[ROW][C]R-squared[/C][C]0.399815184562689[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.249768980703362[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]2.66461379414521[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]48[/C][/ROW]
[ROW][C]p-value[/C][C]0.00800634103013076[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]548.602832503709[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]14446323.2558924[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58742&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58742&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.632309405720561
R-squared0.399815184562689
Adjusted R-squared0.249768980703362
F-TEST (value)2.66461379414521
F-TEST (DF numerator)12
F-TEST (DF denominator)48
p-value0.00800634103013076
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation548.602832503709
Sum Squared Residuals14446323.2558924







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
155605210.46663405917349.53336594083
239224261.3919660882-339.391966088203
337594499.23994130650-740.239941306505
441384729.62390609041-591.62390609041
546345162.85586239636-528.855862396363
639964499.68786761356-503.687867613562
743084949.81587217861-641.815872178612
841434680.23989239526-537.23989239526
944294683.09588522161-254.095885221611
1052195241.51987283076-22.5198728307618
1149294803.83989239526125.160107604740
1257554928.53587543936826.464124560638
1355925404.94654927968187.053450720323
1441634463.35187804796-300.351878047962
1549624633.87988261301328.120117386989
1652084841.82385717916366.176142820837
1747555170.33585913561-415.335859135613
1844914507.16786435281-16.1678643528127
1957324964.77586565711767.224134342887
2057314695.199885873761035.80011412624
2150404690.57588196086349.424118039139
2261025211.59988587376890.40011412624
2349044811.3198891345192.6801108654894
2453694973.41585587486395.584144125136
2555785434.86653623668143.133463763321
2646194455.87188130871163.128118691289
2747314611.43989239526119.56010760474
2850114781.98388326516229.016116734839
2952994990.81593739361308.184062606394
3041464290.24795891455-144.247958914554
3146254665.5759960871-40.5759960871004
3247364455.83999021775280.160009782249
3342194383.8960156516-164.896015651599
3451164852.56004238975263.439957610254
3542054452.2800456505-247.280045650496
3641214509.65605804134-388.656058041345
3751034881.34677753216221.653222467844
3843003969.67209325744330.327906742558
3945784155.16009130099422.839908699009
4038094198.54413760364-389.544137603637
4155264534.53613629934991.463863700663
4242473871.36814151654375.631858483463
4338304343.93613629934-513.936136299337
4443944126.72013369074267.279866309263
4548264077.21614934234748.783850657664
4644094560.84016955898-151.840169558984
4745694183.00016303748385.999836962515
4841064195.49619499283-89.4961949928316
4947944724.266846007969.7331539921005
5039143767.71218129768146.287818702317
5137933923.28019238423-130.280192384232
5244054019.02421586163385.975784138370
5340224377.45620477508-355.456204775081
5441003811.52816760253288.471832397466
5547884358.89612977784429.103870222162
5631634209.00009782249-1046.00009782249
5735854264.21606782359-679.216067823593
5839034882.48002934675-979.480029346747
5941784534.56000978225-356.560009782249
6038634606.8960156516-743.896015651598
6141875158.10665688442-971.106656884417

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 5560 & 5210.46663405917 & 349.53336594083 \tabularnewline
2 & 3922 & 4261.3919660882 & -339.391966088203 \tabularnewline
3 & 3759 & 4499.23994130650 & -740.239941306505 \tabularnewline
4 & 4138 & 4729.62390609041 & -591.62390609041 \tabularnewline
5 & 4634 & 5162.85586239636 & -528.855862396363 \tabularnewline
6 & 3996 & 4499.68786761356 & -503.687867613562 \tabularnewline
7 & 4308 & 4949.81587217861 & -641.815872178612 \tabularnewline
8 & 4143 & 4680.23989239526 & -537.23989239526 \tabularnewline
9 & 4429 & 4683.09588522161 & -254.095885221611 \tabularnewline
10 & 5219 & 5241.51987283076 & -22.5198728307618 \tabularnewline
11 & 4929 & 4803.83989239526 & 125.160107604740 \tabularnewline
12 & 5755 & 4928.53587543936 & 826.464124560638 \tabularnewline
13 & 5592 & 5404.94654927968 & 187.053450720323 \tabularnewline
14 & 4163 & 4463.35187804796 & -300.351878047962 \tabularnewline
15 & 4962 & 4633.87988261301 & 328.120117386989 \tabularnewline
16 & 5208 & 4841.82385717916 & 366.176142820837 \tabularnewline
17 & 4755 & 5170.33585913561 & -415.335859135613 \tabularnewline
18 & 4491 & 4507.16786435281 & -16.1678643528127 \tabularnewline
19 & 5732 & 4964.77586565711 & 767.224134342887 \tabularnewline
20 & 5731 & 4695.19988587376 & 1035.80011412624 \tabularnewline
21 & 5040 & 4690.57588196086 & 349.424118039139 \tabularnewline
22 & 6102 & 5211.59988587376 & 890.40011412624 \tabularnewline
23 & 4904 & 4811.31988913451 & 92.6801108654894 \tabularnewline
24 & 5369 & 4973.41585587486 & 395.584144125136 \tabularnewline
25 & 5578 & 5434.86653623668 & 143.133463763321 \tabularnewline
26 & 4619 & 4455.87188130871 & 163.128118691289 \tabularnewline
27 & 4731 & 4611.43989239526 & 119.56010760474 \tabularnewline
28 & 5011 & 4781.98388326516 & 229.016116734839 \tabularnewline
29 & 5299 & 4990.81593739361 & 308.184062606394 \tabularnewline
30 & 4146 & 4290.24795891455 & -144.247958914554 \tabularnewline
31 & 4625 & 4665.5759960871 & -40.5759960871004 \tabularnewline
32 & 4736 & 4455.83999021775 & 280.160009782249 \tabularnewline
33 & 4219 & 4383.8960156516 & -164.896015651599 \tabularnewline
34 & 5116 & 4852.56004238975 & 263.439957610254 \tabularnewline
35 & 4205 & 4452.2800456505 & -247.280045650496 \tabularnewline
36 & 4121 & 4509.65605804134 & -388.656058041345 \tabularnewline
37 & 5103 & 4881.34677753216 & 221.653222467844 \tabularnewline
38 & 4300 & 3969.67209325744 & 330.327906742558 \tabularnewline
39 & 4578 & 4155.16009130099 & 422.839908699009 \tabularnewline
40 & 3809 & 4198.54413760364 & -389.544137603637 \tabularnewline
41 & 5526 & 4534.53613629934 & 991.463863700663 \tabularnewline
42 & 4247 & 3871.36814151654 & 375.631858483463 \tabularnewline
43 & 3830 & 4343.93613629934 & -513.936136299337 \tabularnewline
44 & 4394 & 4126.72013369074 & 267.279866309263 \tabularnewline
45 & 4826 & 4077.21614934234 & 748.783850657664 \tabularnewline
46 & 4409 & 4560.84016955898 & -151.840169558984 \tabularnewline
47 & 4569 & 4183.00016303748 & 385.999836962515 \tabularnewline
48 & 4106 & 4195.49619499283 & -89.4961949928316 \tabularnewline
49 & 4794 & 4724.2668460079 & 69.7331539921005 \tabularnewline
50 & 3914 & 3767.71218129768 & 146.287818702317 \tabularnewline
51 & 3793 & 3923.28019238423 & -130.280192384232 \tabularnewline
52 & 4405 & 4019.02421586163 & 385.975784138370 \tabularnewline
53 & 4022 & 4377.45620477508 & -355.456204775081 \tabularnewline
54 & 4100 & 3811.52816760253 & 288.471832397466 \tabularnewline
55 & 4788 & 4358.89612977784 & 429.103870222162 \tabularnewline
56 & 3163 & 4209.00009782249 & -1046.00009782249 \tabularnewline
57 & 3585 & 4264.21606782359 & -679.216067823593 \tabularnewline
58 & 3903 & 4882.48002934675 & -979.480029346747 \tabularnewline
59 & 4178 & 4534.56000978225 & -356.560009782249 \tabularnewline
60 & 3863 & 4606.8960156516 & -743.896015651598 \tabularnewline
61 & 4187 & 5158.10665688442 & -971.106656884417 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58742&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]5560[/C][C]5210.46663405917[/C][C]349.53336594083[/C][/ROW]
[ROW][C]2[/C][C]3922[/C][C]4261.3919660882[/C][C]-339.391966088203[/C][/ROW]
[ROW][C]3[/C][C]3759[/C][C]4499.23994130650[/C][C]-740.239941306505[/C][/ROW]
[ROW][C]4[/C][C]4138[/C][C]4729.62390609041[/C][C]-591.62390609041[/C][/ROW]
[ROW][C]5[/C][C]4634[/C][C]5162.85586239636[/C][C]-528.855862396363[/C][/ROW]
[ROW][C]6[/C][C]3996[/C][C]4499.68786761356[/C][C]-503.687867613562[/C][/ROW]
[ROW][C]7[/C][C]4308[/C][C]4949.81587217861[/C][C]-641.815872178612[/C][/ROW]
[ROW][C]8[/C][C]4143[/C][C]4680.23989239526[/C][C]-537.23989239526[/C][/ROW]
[ROW][C]9[/C][C]4429[/C][C]4683.09588522161[/C][C]-254.095885221611[/C][/ROW]
[ROW][C]10[/C][C]5219[/C][C]5241.51987283076[/C][C]-22.5198728307618[/C][/ROW]
[ROW][C]11[/C][C]4929[/C][C]4803.83989239526[/C][C]125.160107604740[/C][/ROW]
[ROW][C]12[/C][C]5755[/C][C]4928.53587543936[/C][C]826.464124560638[/C][/ROW]
[ROW][C]13[/C][C]5592[/C][C]5404.94654927968[/C][C]187.053450720323[/C][/ROW]
[ROW][C]14[/C][C]4163[/C][C]4463.35187804796[/C][C]-300.351878047962[/C][/ROW]
[ROW][C]15[/C][C]4962[/C][C]4633.87988261301[/C][C]328.120117386989[/C][/ROW]
[ROW][C]16[/C][C]5208[/C][C]4841.82385717916[/C][C]366.176142820837[/C][/ROW]
[ROW][C]17[/C][C]4755[/C][C]5170.33585913561[/C][C]-415.335859135613[/C][/ROW]
[ROW][C]18[/C][C]4491[/C][C]4507.16786435281[/C][C]-16.1678643528127[/C][/ROW]
[ROW][C]19[/C][C]5732[/C][C]4964.77586565711[/C][C]767.224134342887[/C][/ROW]
[ROW][C]20[/C][C]5731[/C][C]4695.19988587376[/C][C]1035.80011412624[/C][/ROW]
[ROW][C]21[/C][C]5040[/C][C]4690.57588196086[/C][C]349.424118039139[/C][/ROW]
[ROW][C]22[/C][C]6102[/C][C]5211.59988587376[/C][C]890.40011412624[/C][/ROW]
[ROW][C]23[/C][C]4904[/C][C]4811.31988913451[/C][C]92.6801108654894[/C][/ROW]
[ROW][C]24[/C][C]5369[/C][C]4973.41585587486[/C][C]395.584144125136[/C][/ROW]
[ROW][C]25[/C][C]5578[/C][C]5434.86653623668[/C][C]143.133463763321[/C][/ROW]
[ROW][C]26[/C][C]4619[/C][C]4455.87188130871[/C][C]163.128118691289[/C][/ROW]
[ROW][C]27[/C][C]4731[/C][C]4611.43989239526[/C][C]119.56010760474[/C][/ROW]
[ROW][C]28[/C][C]5011[/C][C]4781.98388326516[/C][C]229.016116734839[/C][/ROW]
[ROW][C]29[/C][C]5299[/C][C]4990.81593739361[/C][C]308.184062606394[/C][/ROW]
[ROW][C]30[/C][C]4146[/C][C]4290.24795891455[/C][C]-144.247958914554[/C][/ROW]
[ROW][C]31[/C][C]4625[/C][C]4665.5759960871[/C][C]-40.5759960871004[/C][/ROW]
[ROW][C]32[/C][C]4736[/C][C]4455.83999021775[/C][C]280.160009782249[/C][/ROW]
[ROW][C]33[/C][C]4219[/C][C]4383.8960156516[/C][C]-164.896015651599[/C][/ROW]
[ROW][C]34[/C][C]5116[/C][C]4852.56004238975[/C][C]263.439957610254[/C][/ROW]
[ROW][C]35[/C][C]4205[/C][C]4452.2800456505[/C][C]-247.280045650496[/C][/ROW]
[ROW][C]36[/C][C]4121[/C][C]4509.65605804134[/C][C]-388.656058041345[/C][/ROW]
[ROW][C]37[/C][C]5103[/C][C]4881.34677753216[/C][C]221.653222467844[/C][/ROW]
[ROW][C]38[/C][C]4300[/C][C]3969.67209325744[/C][C]330.327906742558[/C][/ROW]
[ROW][C]39[/C][C]4578[/C][C]4155.16009130099[/C][C]422.839908699009[/C][/ROW]
[ROW][C]40[/C][C]3809[/C][C]4198.54413760364[/C][C]-389.544137603637[/C][/ROW]
[ROW][C]41[/C][C]5526[/C][C]4534.53613629934[/C][C]991.463863700663[/C][/ROW]
[ROW][C]42[/C][C]4247[/C][C]3871.36814151654[/C][C]375.631858483463[/C][/ROW]
[ROW][C]43[/C][C]3830[/C][C]4343.93613629934[/C][C]-513.936136299337[/C][/ROW]
[ROW][C]44[/C][C]4394[/C][C]4126.72013369074[/C][C]267.279866309263[/C][/ROW]
[ROW][C]45[/C][C]4826[/C][C]4077.21614934234[/C][C]748.783850657664[/C][/ROW]
[ROW][C]46[/C][C]4409[/C][C]4560.84016955898[/C][C]-151.840169558984[/C][/ROW]
[ROW][C]47[/C][C]4569[/C][C]4183.00016303748[/C][C]385.999836962515[/C][/ROW]
[ROW][C]48[/C][C]4106[/C][C]4195.49619499283[/C][C]-89.4961949928316[/C][/ROW]
[ROW][C]49[/C][C]4794[/C][C]4724.2668460079[/C][C]69.7331539921005[/C][/ROW]
[ROW][C]50[/C][C]3914[/C][C]3767.71218129768[/C][C]146.287818702317[/C][/ROW]
[ROW][C]51[/C][C]3793[/C][C]3923.28019238423[/C][C]-130.280192384232[/C][/ROW]
[ROW][C]52[/C][C]4405[/C][C]4019.02421586163[/C][C]385.975784138370[/C][/ROW]
[ROW][C]53[/C][C]4022[/C][C]4377.45620477508[/C][C]-355.456204775081[/C][/ROW]
[ROW][C]54[/C][C]4100[/C][C]3811.52816760253[/C][C]288.471832397466[/C][/ROW]
[ROW][C]55[/C][C]4788[/C][C]4358.89612977784[/C][C]429.103870222162[/C][/ROW]
[ROW][C]56[/C][C]3163[/C][C]4209.00009782249[/C][C]-1046.00009782249[/C][/ROW]
[ROW][C]57[/C][C]3585[/C][C]4264.21606782359[/C][C]-679.216067823593[/C][/ROW]
[ROW][C]58[/C][C]3903[/C][C]4882.48002934675[/C][C]-979.480029346747[/C][/ROW]
[ROW][C]59[/C][C]4178[/C][C]4534.56000978225[/C][C]-356.560009782249[/C][/ROW]
[ROW][C]60[/C][C]3863[/C][C]4606.8960156516[/C][C]-743.896015651598[/C][/ROW]
[ROW][C]61[/C][C]4187[/C][C]5158.10665688442[/C][C]-971.106656884417[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58742&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58742&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
155605210.46663405917349.53336594083
239224261.3919660882-339.391966088203
337594499.23994130650-740.239941306505
441384729.62390609041-591.62390609041
546345162.85586239636-528.855862396363
639964499.68786761356-503.687867613562
743084949.81587217861-641.815872178612
841434680.23989239526-537.23989239526
944294683.09588522161-254.095885221611
1052195241.51987283076-22.5198728307618
1149294803.83989239526125.160107604740
1257554928.53587543936826.464124560638
1355925404.94654927968187.053450720323
1441634463.35187804796-300.351878047962
1549624633.87988261301328.120117386989
1652084841.82385717916366.176142820837
1747555170.33585913561-415.335859135613
1844914507.16786435281-16.1678643528127
1957324964.77586565711767.224134342887
2057314695.199885873761035.80011412624
2150404690.57588196086349.424118039139
2261025211.59988587376890.40011412624
2349044811.3198891345192.6801108654894
2453694973.41585587486395.584144125136
2555785434.86653623668143.133463763321
2646194455.87188130871163.128118691289
2747314611.43989239526119.56010760474
2850114781.98388326516229.016116734839
2952994990.81593739361308.184062606394
3041464290.24795891455-144.247958914554
3146254665.5759960871-40.5759960871004
3247364455.83999021775280.160009782249
3342194383.8960156516-164.896015651599
3451164852.56004238975263.439957610254
3542054452.2800456505-247.280045650496
3641214509.65605804134-388.656058041345
3751034881.34677753216221.653222467844
3843003969.67209325744330.327906742558
3945784155.16009130099422.839908699009
4038094198.54413760364-389.544137603637
4155264534.53613629934991.463863700663
4242473871.36814151654375.631858483463
4338304343.93613629934-513.936136299337
4443944126.72013369074267.279866309263
4548264077.21614934234748.783850657664
4644094560.84016955898-151.840169558984
4745694183.00016303748385.999836962515
4841064195.49619499283-89.4961949928316
4947944724.266846007969.7331539921005
5039143767.71218129768146.287818702317
5137933923.28019238423-130.280192384232
5244054019.02421586163385.975784138370
5340224377.45620477508-355.456204775081
5441003811.52816760253288.471832397466
5547884358.89612977784429.103870222162
5631634209.00009782249-1046.00009782249
5735854264.21606782359-679.216067823593
5839034882.48002934675-979.480029346747
5941784534.56000978225-356.560009782249
6038634606.8960156516-743.896015651598
6141875158.10665688442-971.106656884417







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.5284285824126610.9431428351746780.471571417587339
170.3808550123666660.7617100247333310.619144987633334
180.2959467170270650.591893434054130.704053282972935
190.5577066863465950.884586627306810.442293313653405
200.7943569255655820.4112861488688360.205643074434418
210.7398966224742880.5202067550514240.260103377525712
220.8098569006607880.3802861986784240.190143099339212
230.73072412545230.53855174909540.2692758745477
240.7252881637253190.5494236725493630.274711836274681
250.6741883340611560.6516233318776870.325811665938844
260.5938316934845640.8123366130308710.406168306515436
270.5068897839320270.9862204321359460.493110216067973
280.4622784890147120.9245569780294240.537721510985288
290.5048913061037260.9902173877925470.495108693896274
300.4126872221362590.8253744442725190.58731277786374
310.3300202802464270.6600405604928540.669979719753573
320.3458614078824830.6917228157649660.654138592117517
330.2632568536185080.5265137072370170.736743146381492
340.2924783049372890.5849566098745780.707521695062711
350.217393701037530.434787402075060.78260629896247
360.1873725602863970.3747451205727940.812627439713603
370.1590669164469000.3181338328937990.8409330835531
380.1495099463322590.2990198926645170.850490053667741
390.1829405022779450.365881004555890.817059497722055
400.1307690492898880.2615380985797750.869230950710112
410.5030072614982550.993985477003490.496992738501745
420.4033272540556990.8066545081113980.596672745944301
430.4937034003252260.9874068006504510.506296599674774
440.7034519293874590.5930961412250820.296548070612541
450.9826391954141180.03472160917176410.0173608045858820

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.528428582412661 & 0.943142835174678 & 0.471571417587339 \tabularnewline
17 & 0.380855012366666 & 0.761710024733331 & 0.619144987633334 \tabularnewline
18 & 0.295946717027065 & 0.59189343405413 & 0.704053282972935 \tabularnewline
19 & 0.557706686346595 & 0.88458662730681 & 0.442293313653405 \tabularnewline
20 & 0.794356925565582 & 0.411286148868836 & 0.205643074434418 \tabularnewline
21 & 0.739896622474288 & 0.520206755051424 & 0.260103377525712 \tabularnewline
22 & 0.809856900660788 & 0.380286198678424 & 0.190143099339212 \tabularnewline
23 & 0.7307241254523 & 0.5385517490954 & 0.2692758745477 \tabularnewline
24 & 0.725288163725319 & 0.549423672549363 & 0.274711836274681 \tabularnewline
25 & 0.674188334061156 & 0.651623331877687 & 0.325811665938844 \tabularnewline
26 & 0.593831693484564 & 0.812336613030871 & 0.406168306515436 \tabularnewline
27 & 0.506889783932027 & 0.986220432135946 & 0.493110216067973 \tabularnewline
28 & 0.462278489014712 & 0.924556978029424 & 0.537721510985288 \tabularnewline
29 & 0.504891306103726 & 0.990217387792547 & 0.495108693896274 \tabularnewline
30 & 0.412687222136259 & 0.825374444272519 & 0.58731277786374 \tabularnewline
31 & 0.330020280246427 & 0.660040560492854 & 0.669979719753573 \tabularnewline
32 & 0.345861407882483 & 0.691722815764966 & 0.654138592117517 \tabularnewline
33 & 0.263256853618508 & 0.526513707237017 & 0.736743146381492 \tabularnewline
34 & 0.292478304937289 & 0.584956609874578 & 0.707521695062711 \tabularnewline
35 & 0.21739370103753 & 0.43478740207506 & 0.78260629896247 \tabularnewline
36 & 0.187372560286397 & 0.374745120572794 & 0.812627439713603 \tabularnewline
37 & 0.159066916446900 & 0.318133832893799 & 0.8409330835531 \tabularnewline
38 & 0.149509946332259 & 0.299019892664517 & 0.850490053667741 \tabularnewline
39 & 0.182940502277945 & 0.36588100455589 & 0.817059497722055 \tabularnewline
40 & 0.130769049289888 & 0.261538098579775 & 0.869230950710112 \tabularnewline
41 & 0.503007261498255 & 0.99398547700349 & 0.496992738501745 \tabularnewline
42 & 0.403327254055699 & 0.806654508111398 & 0.596672745944301 \tabularnewline
43 & 0.493703400325226 & 0.987406800650451 & 0.506296599674774 \tabularnewline
44 & 0.703451929387459 & 0.593096141225082 & 0.296548070612541 \tabularnewline
45 & 0.982639195414118 & 0.0347216091717641 & 0.0173608045858820 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58742&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.528428582412661[/C][C]0.943142835174678[/C][C]0.471571417587339[/C][/ROW]
[ROW][C]17[/C][C]0.380855012366666[/C][C]0.761710024733331[/C][C]0.619144987633334[/C][/ROW]
[ROW][C]18[/C][C]0.295946717027065[/C][C]0.59189343405413[/C][C]0.704053282972935[/C][/ROW]
[ROW][C]19[/C][C]0.557706686346595[/C][C]0.88458662730681[/C][C]0.442293313653405[/C][/ROW]
[ROW][C]20[/C][C]0.794356925565582[/C][C]0.411286148868836[/C][C]0.205643074434418[/C][/ROW]
[ROW][C]21[/C][C]0.739896622474288[/C][C]0.520206755051424[/C][C]0.260103377525712[/C][/ROW]
[ROW][C]22[/C][C]0.809856900660788[/C][C]0.380286198678424[/C][C]0.190143099339212[/C][/ROW]
[ROW][C]23[/C][C]0.7307241254523[/C][C]0.5385517490954[/C][C]0.2692758745477[/C][/ROW]
[ROW][C]24[/C][C]0.725288163725319[/C][C]0.549423672549363[/C][C]0.274711836274681[/C][/ROW]
[ROW][C]25[/C][C]0.674188334061156[/C][C]0.651623331877687[/C][C]0.325811665938844[/C][/ROW]
[ROW][C]26[/C][C]0.593831693484564[/C][C]0.812336613030871[/C][C]0.406168306515436[/C][/ROW]
[ROW][C]27[/C][C]0.506889783932027[/C][C]0.986220432135946[/C][C]0.493110216067973[/C][/ROW]
[ROW][C]28[/C][C]0.462278489014712[/C][C]0.924556978029424[/C][C]0.537721510985288[/C][/ROW]
[ROW][C]29[/C][C]0.504891306103726[/C][C]0.990217387792547[/C][C]0.495108693896274[/C][/ROW]
[ROW][C]30[/C][C]0.412687222136259[/C][C]0.825374444272519[/C][C]0.58731277786374[/C][/ROW]
[ROW][C]31[/C][C]0.330020280246427[/C][C]0.660040560492854[/C][C]0.669979719753573[/C][/ROW]
[ROW][C]32[/C][C]0.345861407882483[/C][C]0.691722815764966[/C][C]0.654138592117517[/C][/ROW]
[ROW][C]33[/C][C]0.263256853618508[/C][C]0.526513707237017[/C][C]0.736743146381492[/C][/ROW]
[ROW][C]34[/C][C]0.292478304937289[/C][C]0.584956609874578[/C][C]0.707521695062711[/C][/ROW]
[ROW][C]35[/C][C]0.21739370103753[/C][C]0.43478740207506[/C][C]0.78260629896247[/C][/ROW]
[ROW][C]36[/C][C]0.187372560286397[/C][C]0.374745120572794[/C][C]0.812627439713603[/C][/ROW]
[ROW][C]37[/C][C]0.159066916446900[/C][C]0.318133832893799[/C][C]0.8409330835531[/C][/ROW]
[ROW][C]38[/C][C]0.149509946332259[/C][C]0.299019892664517[/C][C]0.850490053667741[/C][/ROW]
[ROW][C]39[/C][C]0.182940502277945[/C][C]0.36588100455589[/C][C]0.817059497722055[/C][/ROW]
[ROW][C]40[/C][C]0.130769049289888[/C][C]0.261538098579775[/C][C]0.869230950710112[/C][/ROW]
[ROW][C]41[/C][C]0.503007261498255[/C][C]0.99398547700349[/C][C]0.496992738501745[/C][/ROW]
[ROW][C]42[/C][C]0.403327254055699[/C][C]0.806654508111398[/C][C]0.596672745944301[/C][/ROW]
[ROW][C]43[/C][C]0.493703400325226[/C][C]0.987406800650451[/C][C]0.506296599674774[/C][/ROW]
[ROW][C]44[/C][C]0.703451929387459[/C][C]0.593096141225082[/C][C]0.296548070612541[/C][/ROW]
[ROW][C]45[/C][C]0.982639195414118[/C][C]0.0347216091717641[/C][C]0.0173608045858820[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58742&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58742&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.5284285824126610.9431428351746780.471571417587339
170.3808550123666660.7617100247333310.619144987633334
180.2959467170270650.591893434054130.704053282972935
190.5577066863465950.884586627306810.442293313653405
200.7943569255655820.4112861488688360.205643074434418
210.7398966224742880.5202067550514240.260103377525712
220.8098569006607880.3802861986784240.190143099339212
230.73072412545230.53855174909540.2692758745477
240.7252881637253190.5494236725493630.274711836274681
250.6741883340611560.6516233318776870.325811665938844
260.5938316934845640.8123366130308710.406168306515436
270.5068897839320270.9862204321359460.493110216067973
280.4622784890147120.9245569780294240.537721510985288
290.5048913061037260.9902173877925470.495108693896274
300.4126872221362590.8253744442725190.58731277786374
310.3300202802464270.6600405604928540.669979719753573
320.3458614078824830.6917228157649660.654138592117517
330.2632568536185080.5265137072370170.736743146381492
340.2924783049372890.5849566098745780.707521695062711
350.217393701037530.434787402075060.78260629896247
360.1873725602863970.3747451205727940.812627439713603
370.1590669164469000.3181338328937990.8409330835531
380.1495099463322590.2990198926645170.850490053667741
390.1829405022779450.365881004555890.817059497722055
400.1307690492898880.2615380985797750.869230950710112
410.5030072614982550.993985477003490.496992738501745
420.4033272540556990.8066545081113980.596672745944301
430.4937034003252260.9874068006504510.506296599674774
440.7034519293874590.5930961412250820.296548070612541
450.9826391954141180.03472160917176410.0173608045858820







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

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58742&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 level10.0333333333333333OK
10% type I error level10.0333333333333333OK



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