Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationSat, 19 Dec 2009 12:33:33 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Dec/19/t1261251346rtd5jjvffxa23sz.htm/, Retrieved Sat, 04 May 2024 03:10:06 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=69736, Retrieved Sat, 04 May 2024 03:10:06 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact111
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 13:54:52] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [] [2009-12-19 19:33:33] [7cc673c2b3a8ab442a3ec6ca430f2445] [Current]
Feedback Forum

Post a new message
Dataseries X:
19915	23322
19843	22558
19761	19185
20858	17869
21968	21515
23061	17686
22661	18044
22269	20398
21857	22894
21568	22016
21274	25325
20987	27683
19683	17333
19381	20190
19071	22589
20772	14588
22485	14296
24181	12237
23479	7607
22782	9303
22067	9226
21489	9351
20903	21266
20330	21377
19736	22034
19483	22483
19242	15122
20334	18982
21423	19653
22523	16653
21986	23528
21462	24612
20908	24733
20575	21839
20237	22421
19904	26543
19610	27067
19251	31403
18941	25762
20450	29359
21946	34174
23409	20163
22741	25226
22069	25077
21539	29764
21189	21372
20960	34136
20704	29126
19697	17279
19598	16163
19456	8058
20316	17888
21083	7642
22158	7458
21469	4639
20892	10276
20578	3129
20233	20023
19947	3744
20049	7848




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69736&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
X[t] = + 21491.5753445414 -0.0266653954672666Y[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
X[t] =  +  21491.5753445414 -0.0266653954672666Y[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69736&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]X[t] =  +  21491.5753445414 -0.0266653954672666Y[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69736&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69736&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] = + 21491.5753445414 -0.0266653954672666Y[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)21491.5753445414441.85688748.639200
Y-0.02666539546726660.021435-1.2440.2184910.109245

\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) & 21491.5753445414 & 441.856887 & 48.6392 & 0 & 0 \tabularnewline
Y & -0.0266653954672666 & 0.021435 & -1.244 & 0.218491 & 0.109245 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69736&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]21491.5753445414[/C][C]441.856887[/C][C]48.6392[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y[/C][C]-0.0266653954672666[/C][C]0.021435[/C][C]-1.244[/C][C]0.218491[/C][C]0.109245[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69736&T=2

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







Multiple Linear Regression - Regression Statistics
Multiple R0.161213140416401
R-squared0.0259896766429184
Adjusted R-squared0.00919639520572746
F-TEST (value)1.54762347907542
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value0.21849091602018
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1237.04961438608
Sum Squared Residuals88756921.4102592

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.161213140416401 \tabularnewline
R-squared & 0.0259896766429184 \tabularnewline
Adjusted R-squared & 0.00919639520572746 \tabularnewline
F-TEST (value) & 1.54762347907542 \tabularnewline
F-TEST (DF numerator) & 1 \tabularnewline
F-TEST (DF denominator) & 58 \tabularnewline
p-value & 0.21849091602018 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 1237.04961438608 \tabularnewline
Sum Squared Residuals & 88756921.4102592 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69736&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.161213140416401[/C][/ROW]
[ROW][C]R-squared[/C][C]0.0259896766429184[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.00919639520572746[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]1.54762347907542[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]1[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]58[/C][/ROW]
[ROW][C]p-value[/C][C]0.21849091602018[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]1237.04961438608[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]88756921.4102592[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69736&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69736&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.161213140416401
R-squared0.0259896766429184
Adjusted R-squared0.00919639520572746
F-TEST (value)1.54762347907542
F-TEST (DF numerator)1
F-TEST (DF denominator)58
p-value0.21849091602018
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation1237.04961438608
Sum Squared Residuals88756921.4102592







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
11991520869.6849914538-954.684991453828
21984320890.0573535908-1047.05735359080
31976120979.9997325019-1218.99973250189
42085821015.0913929368-157.091392936815
52196820917.86936106321050.13063893684
62306121019.97116030732041.02883969267
72266121010.42494873001650.57505126996
82226920947.65460780011321.34539219990
92185720881.0977807138975.9022192862
102156820904.5099979341663.49000206594
112127420816.2742043329457.725795667125
122098720753.3972018211233.602798178939
131968321029.3840449073-1346.38404490727
141938120953.2010100573-1572.20101005729
151907120889.2307263313-1818.23072633132
162077221102.5805554649-330.580555464917
172248521110.36685094141374.63314905864
182418121165.27090020853015.72909979154
192347921288.73168122192190.26831877809
202278221243.50717050941538.49282949058
212206721245.5604059604821.4395940396
222148921242.227231527246.772768473008
232090320924.5090445345-21.5090445345104
242033020921.5491856376-591.549185637644
251973620904.0300208157-1168.03002081565
261948320892.0572582508-1409.05725825085
271924221088.3412342854-1846.34123428540
282033420985.4128077817-651.412807781747
292142320967.5203274232455.479672576789
302252321047.5165138251475.48348617499
312198620864.19191998761121.80808001245
322146220835.2866313010626.713368698964
332090820832.060118449575.939881550503
342057520909.2297729318-334.229772931767
352023720893.7105127698-656.710512769817
361990420783.7957526537-879.795752653745
371961020769.8230854289-1159.82308542890
381925120654.2019306828-1403.20193068283
391894120804.6214265137-1863.62142651368
402045020708.7059990179-258.705999017922
412194620580.31211984301365.68788015697
422340920953.92097573492455.07902426509
432274120818.91407848411922.08592151587
442206920822.88722240881246.11277759124
452153920697.9065138537841.093486146321
462118920921.6825126150267.31748738502
472096020581.3254048708378.674595129211
482070420714.9190361618-10.9190361617949
491969721030.8239762625-1333.82397626250
501959821060.5825576040-1462.58255760397
511945621276.7055878662-1820.70558786617
522031621014.5847504229-698.584750422937
532108321287.7983923806-204.798392380551
542215821292.7048251465865.295174853472
552146921367.8745749688101.125425031248
562089221217.5617407198-325.561740719770
572057821408.1393221243-830.139322124325
582023320957.6541311003-724.654131100323
591994721391.7401039120-1444.74010391196
602004921282.3053209143-1233.30532091429

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 19915 & 20869.6849914538 & -954.684991453828 \tabularnewline
2 & 19843 & 20890.0573535908 & -1047.05735359080 \tabularnewline
3 & 19761 & 20979.9997325019 & -1218.99973250189 \tabularnewline
4 & 20858 & 21015.0913929368 & -157.091392936815 \tabularnewline
5 & 21968 & 20917.8693610632 & 1050.13063893684 \tabularnewline
6 & 23061 & 21019.9711603073 & 2041.02883969267 \tabularnewline
7 & 22661 & 21010.4249487300 & 1650.57505126996 \tabularnewline
8 & 22269 & 20947.6546078001 & 1321.34539219990 \tabularnewline
9 & 21857 & 20881.0977807138 & 975.9022192862 \tabularnewline
10 & 21568 & 20904.5099979341 & 663.49000206594 \tabularnewline
11 & 21274 & 20816.2742043329 & 457.725795667125 \tabularnewline
12 & 20987 & 20753.3972018211 & 233.602798178939 \tabularnewline
13 & 19683 & 21029.3840449073 & -1346.38404490727 \tabularnewline
14 & 19381 & 20953.2010100573 & -1572.20101005729 \tabularnewline
15 & 19071 & 20889.2307263313 & -1818.23072633132 \tabularnewline
16 & 20772 & 21102.5805554649 & -330.580555464917 \tabularnewline
17 & 22485 & 21110.3668509414 & 1374.63314905864 \tabularnewline
18 & 24181 & 21165.2709002085 & 3015.72909979154 \tabularnewline
19 & 23479 & 21288.7316812219 & 2190.26831877809 \tabularnewline
20 & 22782 & 21243.5071705094 & 1538.49282949058 \tabularnewline
21 & 22067 & 21245.5604059604 & 821.4395940396 \tabularnewline
22 & 21489 & 21242.227231527 & 246.772768473008 \tabularnewline
23 & 20903 & 20924.5090445345 & -21.5090445345104 \tabularnewline
24 & 20330 & 20921.5491856376 & -591.549185637644 \tabularnewline
25 & 19736 & 20904.0300208157 & -1168.03002081565 \tabularnewline
26 & 19483 & 20892.0572582508 & -1409.05725825085 \tabularnewline
27 & 19242 & 21088.3412342854 & -1846.34123428540 \tabularnewline
28 & 20334 & 20985.4128077817 & -651.412807781747 \tabularnewline
29 & 21423 & 20967.5203274232 & 455.479672576789 \tabularnewline
30 & 22523 & 21047.516513825 & 1475.48348617499 \tabularnewline
31 & 21986 & 20864.1919199876 & 1121.80808001245 \tabularnewline
32 & 21462 & 20835.2866313010 & 626.713368698964 \tabularnewline
33 & 20908 & 20832.0601184495 & 75.939881550503 \tabularnewline
34 & 20575 & 20909.2297729318 & -334.229772931767 \tabularnewline
35 & 20237 & 20893.7105127698 & -656.710512769817 \tabularnewline
36 & 19904 & 20783.7957526537 & -879.795752653745 \tabularnewline
37 & 19610 & 20769.8230854289 & -1159.82308542890 \tabularnewline
38 & 19251 & 20654.2019306828 & -1403.20193068283 \tabularnewline
39 & 18941 & 20804.6214265137 & -1863.62142651368 \tabularnewline
40 & 20450 & 20708.7059990179 & -258.705999017922 \tabularnewline
41 & 21946 & 20580.3121198430 & 1365.68788015697 \tabularnewline
42 & 23409 & 20953.9209757349 & 2455.07902426509 \tabularnewline
43 & 22741 & 20818.9140784841 & 1922.08592151587 \tabularnewline
44 & 22069 & 20822.8872224088 & 1246.11277759124 \tabularnewline
45 & 21539 & 20697.9065138537 & 841.093486146321 \tabularnewline
46 & 21189 & 20921.6825126150 & 267.31748738502 \tabularnewline
47 & 20960 & 20581.3254048708 & 378.674595129211 \tabularnewline
48 & 20704 & 20714.9190361618 & -10.9190361617949 \tabularnewline
49 & 19697 & 21030.8239762625 & -1333.82397626250 \tabularnewline
50 & 19598 & 21060.5825576040 & -1462.58255760397 \tabularnewline
51 & 19456 & 21276.7055878662 & -1820.70558786617 \tabularnewline
52 & 20316 & 21014.5847504229 & -698.584750422937 \tabularnewline
53 & 21083 & 21287.7983923806 & -204.798392380551 \tabularnewline
54 & 22158 & 21292.7048251465 & 865.295174853472 \tabularnewline
55 & 21469 & 21367.8745749688 & 101.125425031248 \tabularnewline
56 & 20892 & 21217.5617407198 & -325.561740719770 \tabularnewline
57 & 20578 & 21408.1393221243 & -830.139322124325 \tabularnewline
58 & 20233 & 20957.6541311003 & -724.654131100323 \tabularnewline
59 & 19947 & 21391.7401039120 & -1444.74010391196 \tabularnewline
60 & 20049 & 21282.3053209143 & -1233.30532091429 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69736&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]19915[/C][C]20869.6849914538[/C][C]-954.684991453828[/C][/ROW]
[ROW][C]2[/C][C]19843[/C][C]20890.0573535908[/C][C]-1047.05735359080[/C][/ROW]
[ROW][C]3[/C][C]19761[/C][C]20979.9997325019[/C][C]-1218.99973250189[/C][/ROW]
[ROW][C]4[/C][C]20858[/C][C]21015.0913929368[/C][C]-157.091392936815[/C][/ROW]
[ROW][C]5[/C][C]21968[/C][C]20917.8693610632[/C][C]1050.13063893684[/C][/ROW]
[ROW][C]6[/C][C]23061[/C][C]21019.9711603073[/C][C]2041.02883969267[/C][/ROW]
[ROW][C]7[/C][C]22661[/C][C]21010.4249487300[/C][C]1650.57505126996[/C][/ROW]
[ROW][C]8[/C][C]22269[/C][C]20947.6546078001[/C][C]1321.34539219990[/C][/ROW]
[ROW][C]9[/C][C]21857[/C][C]20881.0977807138[/C][C]975.9022192862[/C][/ROW]
[ROW][C]10[/C][C]21568[/C][C]20904.5099979341[/C][C]663.49000206594[/C][/ROW]
[ROW][C]11[/C][C]21274[/C][C]20816.2742043329[/C][C]457.725795667125[/C][/ROW]
[ROW][C]12[/C][C]20987[/C][C]20753.3972018211[/C][C]233.602798178939[/C][/ROW]
[ROW][C]13[/C][C]19683[/C][C]21029.3840449073[/C][C]-1346.38404490727[/C][/ROW]
[ROW][C]14[/C][C]19381[/C][C]20953.2010100573[/C][C]-1572.20101005729[/C][/ROW]
[ROW][C]15[/C][C]19071[/C][C]20889.2307263313[/C][C]-1818.23072633132[/C][/ROW]
[ROW][C]16[/C][C]20772[/C][C]21102.5805554649[/C][C]-330.580555464917[/C][/ROW]
[ROW][C]17[/C][C]22485[/C][C]21110.3668509414[/C][C]1374.63314905864[/C][/ROW]
[ROW][C]18[/C][C]24181[/C][C]21165.2709002085[/C][C]3015.72909979154[/C][/ROW]
[ROW][C]19[/C][C]23479[/C][C]21288.7316812219[/C][C]2190.26831877809[/C][/ROW]
[ROW][C]20[/C][C]22782[/C][C]21243.5071705094[/C][C]1538.49282949058[/C][/ROW]
[ROW][C]21[/C][C]22067[/C][C]21245.5604059604[/C][C]821.4395940396[/C][/ROW]
[ROW][C]22[/C][C]21489[/C][C]21242.227231527[/C][C]246.772768473008[/C][/ROW]
[ROW][C]23[/C][C]20903[/C][C]20924.5090445345[/C][C]-21.5090445345104[/C][/ROW]
[ROW][C]24[/C][C]20330[/C][C]20921.5491856376[/C][C]-591.549185637644[/C][/ROW]
[ROW][C]25[/C][C]19736[/C][C]20904.0300208157[/C][C]-1168.03002081565[/C][/ROW]
[ROW][C]26[/C][C]19483[/C][C]20892.0572582508[/C][C]-1409.05725825085[/C][/ROW]
[ROW][C]27[/C][C]19242[/C][C]21088.3412342854[/C][C]-1846.34123428540[/C][/ROW]
[ROW][C]28[/C][C]20334[/C][C]20985.4128077817[/C][C]-651.412807781747[/C][/ROW]
[ROW][C]29[/C][C]21423[/C][C]20967.5203274232[/C][C]455.479672576789[/C][/ROW]
[ROW][C]30[/C][C]22523[/C][C]21047.516513825[/C][C]1475.48348617499[/C][/ROW]
[ROW][C]31[/C][C]21986[/C][C]20864.1919199876[/C][C]1121.80808001245[/C][/ROW]
[ROW][C]32[/C][C]21462[/C][C]20835.2866313010[/C][C]626.713368698964[/C][/ROW]
[ROW][C]33[/C][C]20908[/C][C]20832.0601184495[/C][C]75.939881550503[/C][/ROW]
[ROW][C]34[/C][C]20575[/C][C]20909.2297729318[/C][C]-334.229772931767[/C][/ROW]
[ROW][C]35[/C][C]20237[/C][C]20893.7105127698[/C][C]-656.710512769817[/C][/ROW]
[ROW][C]36[/C][C]19904[/C][C]20783.7957526537[/C][C]-879.795752653745[/C][/ROW]
[ROW][C]37[/C][C]19610[/C][C]20769.8230854289[/C][C]-1159.82308542890[/C][/ROW]
[ROW][C]38[/C][C]19251[/C][C]20654.2019306828[/C][C]-1403.20193068283[/C][/ROW]
[ROW][C]39[/C][C]18941[/C][C]20804.6214265137[/C][C]-1863.62142651368[/C][/ROW]
[ROW][C]40[/C][C]20450[/C][C]20708.7059990179[/C][C]-258.705999017922[/C][/ROW]
[ROW][C]41[/C][C]21946[/C][C]20580.3121198430[/C][C]1365.68788015697[/C][/ROW]
[ROW][C]42[/C][C]23409[/C][C]20953.9209757349[/C][C]2455.07902426509[/C][/ROW]
[ROW][C]43[/C][C]22741[/C][C]20818.9140784841[/C][C]1922.08592151587[/C][/ROW]
[ROW][C]44[/C][C]22069[/C][C]20822.8872224088[/C][C]1246.11277759124[/C][/ROW]
[ROW][C]45[/C][C]21539[/C][C]20697.9065138537[/C][C]841.093486146321[/C][/ROW]
[ROW][C]46[/C][C]21189[/C][C]20921.6825126150[/C][C]267.31748738502[/C][/ROW]
[ROW][C]47[/C][C]20960[/C][C]20581.3254048708[/C][C]378.674595129211[/C][/ROW]
[ROW][C]48[/C][C]20704[/C][C]20714.9190361618[/C][C]-10.9190361617949[/C][/ROW]
[ROW][C]49[/C][C]19697[/C][C]21030.8239762625[/C][C]-1333.82397626250[/C][/ROW]
[ROW][C]50[/C][C]19598[/C][C]21060.5825576040[/C][C]-1462.58255760397[/C][/ROW]
[ROW][C]51[/C][C]19456[/C][C]21276.7055878662[/C][C]-1820.70558786617[/C][/ROW]
[ROW][C]52[/C][C]20316[/C][C]21014.5847504229[/C][C]-698.584750422937[/C][/ROW]
[ROW][C]53[/C][C]21083[/C][C]21287.7983923806[/C][C]-204.798392380551[/C][/ROW]
[ROW][C]54[/C][C]22158[/C][C]21292.7048251465[/C][C]865.295174853472[/C][/ROW]
[ROW][C]55[/C][C]21469[/C][C]21367.8745749688[/C][C]101.125425031248[/C][/ROW]
[ROW][C]56[/C][C]20892[/C][C]21217.5617407198[/C][C]-325.561740719770[/C][/ROW]
[ROW][C]57[/C][C]20578[/C][C]21408.1393221243[/C][C]-830.139322124325[/C][/ROW]
[ROW][C]58[/C][C]20233[/C][C]20957.6541311003[/C][C]-724.654131100323[/C][/ROW]
[ROW][C]59[/C][C]19947[/C][C]21391.7401039120[/C][C]-1444.74010391196[/C][/ROW]
[ROW][C]60[/C][C]20049[/C][C]21282.3053209143[/C][C]-1233.30532091429[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69736&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69736&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
11991520869.6849914538-954.684991453828
21984320890.0573535908-1047.05735359080
31976120979.9997325019-1218.99973250189
42085821015.0913929368-157.091392936815
52196820917.86936106321050.13063893684
62306121019.97116030732041.02883969267
72266121010.42494873001650.57505126996
82226920947.65460780011321.34539219990
92185720881.0977807138975.9022192862
102156820904.5099979341663.49000206594
112127420816.2742043329457.725795667125
122098720753.3972018211233.602798178939
131968321029.3840449073-1346.38404490727
141938120953.2010100573-1572.20101005729
151907120889.2307263313-1818.23072633132
162077221102.5805554649-330.580555464917
172248521110.36685094141374.63314905864
182418121165.27090020853015.72909979154
192347921288.73168122192190.26831877809
202278221243.50717050941538.49282949058
212206721245.5604059604821.4395940396
222148921242.227231527246.772768473008
232090320924.5090445345-21.5090445345104
242033020921.5491856376-591.549185637644
251973620904.0300208157-1168.03002081565
261948320892.0572582508-1409.05725825085
271924221088.3412342854-1846.34123428540
282033420985.4128077817-651.412807781747
292142320967.5203274232455.479672576789
302252321047.5165138251475.48348617499
312198620864.19191998761121.80808001245
322146220835.2866313010626.713368698964
332090820832.060118449575.939881550503
342057520909.2297729318-334.229772931767
352023720893.7105127698-656.710512769817
361990420783.7957526537-879.795752653745
371961020769.8230854289-1159.82308542890
381925120654.2019306828-1403.20193068283
391894120804.6214265137-1863.62142651368
402045020708.7059990179-258.705999017922
412194620580.31211984301365.68788015697
422340920953.92097573492455.07902426509
432274120818.91407848411922.08592151587
442206920822.88722240881246.11277759124
452153920697.9065138537841.093486146321
462118920921.6825126150267.31748738502
472096020581.3254048708378.674595129211
482070420714.9190361618-10.9190361617949
491969721030.8239762625-1333.82397626250
501959821060.5825576040-1462.58255760397
511945621276.7055878662-1820.70558786617
522031621014.5847504229-698.584750422937
532108321287.7983923806-204.798392380551
542215821292.7048251465865.295174853472
552146921367.8745749688101.125425031248
562089221217.5617407198-325.561740719770
572057821408.1393221243-830.139322124325
582023320957.6541311003-724.654131100323
591994721391.7401039120-1444.74010391196
602004921282.3053209143-1233.30532091429







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.4650041308858940.9300082617717880.534995869114106
60.6400975275206490.7198049449587020.359902472479351
70.5878756785362160.8242486429275680.412124321463784
80.5695594537838220.8608810924323560.430440546216178
90.5686976415595670.8626047168808670.431302358440433
100.4787844335818250.957568867163650.521215566418175
110.4080107627707380.8160215255414750.591989237229262
120.3242150840855960.6484301681711920.675784915914404
130.4443492543877030.8886985087754050.555650745612297
140.5321190816902370.9357618366195260.467880918309763
150.628964716967030.7420705660659420.371035283032971
160.5514682766934380.8970634466131240.448531723306562
170.5432316326264370.9135367347471260.456768367373563
180.7625995574067900.4748008851864210.237400442593210
190.7923721764348970.4152556471302070.207627823565103
200.7926991709852730.4146016580294550.207300829014727
210.7784010923857530.4431978152284950.221598907614247
220.7640481211490400.4719037577019210.235951878850960
230.7000360398261050.599927920347790.299963960173895
240.6448860523675680.7102278952648640.355113947632432
250.6325551134517580.7348897730964850.367444886548242
260.6452006557078290.7095986885843420.354799344292171
270.7764532798323860.4470934403352280.223546720167614
280.7328663231973860.5342673536052280.267133676802614
290.6798604886197610.6402790227604780.320139511380239
300.7207286415905210.5585427168189580.279271358409479
310.7383050186706350.523389962658730.261694981329365
320.7066164877132770.5867670245734460.293383512286723
330.6411744633740640.7176510732518710.358825536625936
340.5691473432246280.8617053135507440.430852656775372
350.5067423654891090.9865152690217830.493257634510891
360.4584518670960180.9169037341920350.541548132903982
370.4422796450148340.8845592900296680.557720354985166
380.491071883179340.982143766358680.50892811682066
390.652881267144330.6942374657113410.347118732855671
400.6261599151381670.7476801697236670.373840084861833
410.6686999189487360.6626001621025270.331300081051264
420.8911530163648170.2176939672703670.108846983635183
430.9554637372630430.08907252547391460.0445362627369573
440.9678130085693570.06437398286128520.0321869914306426
450.9653715721439270.06925685571214680.0346284278560734
460.9523990407989790.09520191840204280.0476009592010214
470.9402390942203080.1195218115593830.0597609057796916
480.9297093346300990.1405813307398020.0702906653699009
490.9046234007055990.1907531985888020.095376599294401
500.8893010855630310.2213978288739380.110698914436969
510.9296797589882480.1406404820235050.0703202410117524
520.8746655102665370.2506689794669250.125334489733463
530.7904424908025060.4191150183949880.209557509197494
540.9052435128814820.1895129742370360.0947564871185178
550.9411276376533290.1177447246933430.0588723623466715

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
5 & 0.465004130885894 & 0.930008261771788 & 0.534995869114106 \tabularnewline
6 & 0.640097527520649 & 0.719804944958702 & 0.359902472479351 \tabularnewline
7 & 0.587875678536216 & 0.824248642927568 & 0.412124321463784 \tabularnewline
8 & 0.569559453783822 & 0.860881092432356 & 0.430440546216178 \tabularnewline
9 & 0.568697641559567 & 0.862604716880867 & 0.431302358440433 \tabularnewline
10 & 0.478784433581825 & 0.95756886716365 & 0.521215566418175 \tabularnewline
11 & 0.408010762770738 & 0.816021525541475 & 0.591989237229262 \tabularnewline
12 & 0.324215084085596 & 0.648430168171192 & 0.675784915914404 \tabularnewline
13 & 0.444349254387703 & 0.888698508775405 & 0.555650745612297 \tabularnewline
14 & 0.532119081690237 & 0.935761836619526 & 0.467880918309763 \tabularnewline
15 & 0.62896471696703 & 0.742070566065942 & 0.371035283032971 \tabularnewline
16 & 0.551468276693438 & 0.897063446613124 & 0.448531723306562 \tabularnewline
17 & 0.543231632626437 & 0.913536734747126 & 0.456768367373563 \tabularnewline
18 & 0.762599557406790 & 0.474800885186421 & 0.237400442593210 \tabularnewline
19 & 0.792372176434897 & 0.415255647130207 & 0.207627823565103 \tabularnewline
20 & 0.792699170985273 & 0.414601658029455 & 0.207300829014727 \tabularnewline
21 & 0.778401092385753 & 0.443197815228495 & 0.221598907614247 \tabularnewline
22 & 0.764048121149040 & 0.471903757701921 & 0.235951878850960 \tabularnewline
23 & 0.700036039826105 & 0.59992792034779 & 0.299963960173895 \tabularnewline
24 & 0.644886052367568 & 0.710227895264864 & 0.355113947632432 \tabularnewline
25 & 0.632555113451758 & 0.734889773096485 & 0.367444886548242 \tabularnewline
26 & 0.645200655707829 & 0.709598688584342 & 0.354799344292171 \tabularnewline
27 & 0.776453279832386 & 0.447093440335228 & 0.223546720167614 \tabularnewline
28 & 0.732866323197386 & 0.534267353605228 & 0.267133676802614 \tabularnewline
29 & 0.679860488619761 & 0.640279022760478 & 0.320139511380239 \tabularnewline
30 & 0.720728641590521 & 0.558542716818958 & 0.279271358409479 \tabularnewline
31 & 0.738305018670635 & 0.52338996265873 & 0.261694981329365 \tabularnewline
32 & 0.706616487713277 & 0.586767024573446 & 0.293383512286723 \tabularnewline
33 & 0.641174463374064 & 0.717651073251871 & 0.358825536625936 \tabularnewline
34 & 0.569147343224628 & 0.861705313550744 & 0.430852656775372 \tabularnewline
35 & 0.506742365489109 & 0.986515269021783 & 0.493257634510891 \tabularnewline
36 & 0.458451867096018 & 0.916903734192035 & 0.541548132903982 \tabularnewline
37 & 0.442279645014834 & 0.884559290029668 & 0.557720354985166 \tabularnewline
38 & 0.49107188317934 & 0.98214376635868 & 0.50892811682066 \tabularnewline
39 & 0.65288126714433 & 0.694237465711341 & 0.347118732855671 \tabularnewline
40 & 0.626159915138167 & 0.747680169723667 & 0.373840084861833 \tabularnewline
41 & 0.668699918948736 & 0.662600162102527 & 0.331300081051264 \tabularnewline
42 & 0.891153016364817 & 0.217693967270367 & 0.108846983635183 \tabularnewline
43 & 0.955463737263043 & 0.0890725254739146 & 0.0445362627369573 \tabularnewline
44 & 0.967813008569357 & 0.0643739828612852 & 0.0321869914306426 \tabularnewline
45 & 0.965371572143927 & 0.0692568557121468 & 0.0346284278560734 \tabularnewline
46 & 0.952399040798979 & 0.0952019184020428 & 0.0476009592010214 \tabularnewline
47 & 0.940239094220308 & 0.119521811559383 & 0.0597609057796916 \tabularnewline
48 & 0.929709334630099 & 0.140581330739802 & 0.0702906653699009 \tabularnewline
49 & 0.904623400705599 & 0.190753198588802 & 0.095376599294401 \tabularnewline
50 & 0.889301085563031 & 0.221397828873938 & 0.110698914436969 \tabularnewline
51 & 0.929679758988248 & 0.140640482023505 & 0.0703202410117524 \tabularnewline
52 & 0.874665510266537 & 0.250668979466925 & 0.125334489733463 \tabularnewline
53 & 0.790442490802506 & 0.419115018394988 & 0.209557509197494 \tabularnewline
54 & 0.905243512881482 & 0.189512974237036 & 0.0947564871185178 \tabularnewline
55 & 0.941127637653329 & 0.117744724693343 & 0.0588723623466715 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=69736&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]5[/C][C]0.465004130885894[/C][C]0.930008261771788[/C][C]0.534995869114106[/C][/ROW]
[ROW][C]6[/C][C]0.640097527520649[/C][C]0.719804944958702[/C][C]0.359902472479351[/C][/ROW]
[ROW][C]7[/C][C]0.587875678536216[/C][C]0.824248642927568[/C][C]0.412124321463784[/C][/ROW]
[ROW][C]8[/C][C]0.569559453783822[/C][C]0.860881092432356[/C][C]0.430440546216178[/C][/ROW]
[ROW][C]9[/C][C]0.568697641559567[/C][C]0.862604716880867[/C][C]0.431302358440433[/C][/ROW]
[ROW][C]10[/C][C]0.478784433581825[/C][C]0.95756886716365[/C][C]0.521215566418175[/C][/ROW]
[ROW][C]11[/C][C]0.408010762770738[/C][C]0.816021525541475[/C][C]0.591989237229262[/C][/ROW]
[ROW][C]12[/C][C]0.324215084085596[/C][C]0.648430168171192[/C][C]0.675784915914404[/C][/ROW]
[ROW][C]13[/C][C]0.444349254387703[/C][C]0.888698508775405[/C][C]0.555650745612297[/C][/ROW]
[ROW][C]14[/C][C]0.532119081690237[/C][C]0.935761836619526[/C][C]0.467880918309763[/C][/ROW]
[ROW][C]15[/C][C]0.62896471696703[/C][C]0.742070566065942[/C][C]0.371035283032971[/C][/ROW]
[ROW][C]16[/C][C]0.551468276693438[/C][C]0.897063446613124[/C][C]0.448531723306562[/C][/ROW]
[ROW][C]17[/C][C]0.543231632626437[/C][C]0.913536734747126[/C][C]0.456768367373563[/C][/ROW]
[ROW][C]18[/C][C]0.762599557406790[/C][C]0.474800885186421[/C][C]0.237400442593210[/C][/ROW]
[ROW][C]19[/C][C]0.792372176434897[/C][C]0.415255647130207[/C][C]0.207627823565103[/C][/ROW]
[ROW][C]20[/C][C]0.792699170985273[/C][C]0.414601658029455[/C][C]0.207300829014727[/C][/ROW]
[ROW][C]21[/C][C]0.778401092385753[/C][C]0.443197815228495[/C][C]0.221598907614247[/C][/ROW]
[ROW][C]22[/C][C]0.764048121149040[/C][C]0.471903757701921[/C][C]0.235951878850960[/C][/ROW]
[ROW][C]23[/C][C]0.700036039826105[/C][C]0.59992792034779[/C][C]0.299963960173895[/C][/ROW]
[ROW][C]24[/C][C]0.644886052367568[/C][C]0.710227895264864[/C][C]0.355113947632432[/C][/ROW]
[ROW][C]25[/C][C]0.632555113451758[/C][C]0.734889773096485[/C][C]0.367444886548242[/C][/ROW]
[ROW][C]26[/C][C]0.645200655707829[/C][C]0.709598688584342[/C][C]0.354799344292171[/C][/ROW]
[ROW][C]27[/C][C]0.776453279832386[/C][C]0.447093440335228[/C][C]0.223546720167614[/C][/ROW]
[ROW][C]28[/C][C]0.732866323197386[/C][C]0.534267353605228[/C][C]0.267133676802614[/C][/ROW]
[ROW][C]29[/C][C]0.679860488619761[/C][C]0.640279022760478[/C][C]0.320139511380239[/C][/ROW]
[ROW][C]30[/C][C]0.720728641590521[/C][C]0.558542716818958[/C][C]0.279271358409479[/C][/ROW]
[ROW][C]31[/C][C]0.738305018670635[/C][C]0.52338996265873[/C][C]0.261694981329365[/C][/ROW]
[ROW][C]32[/C][C]0.706616487713277[/C][C]0.586767024573446[/C][C]0.293383512286723[/C][/ROW]
[ROW][C]33[/C][C]0.641174463374064[/C][C]0.717651073251871[/C][C]0.358825536625936[/C][/ROW]
[ROW][C]34[/C][C]0.569147343224628[/C][C]0.861705313550744[/C][C]0.430852656775372[/C][/ROW]
[ROW][C]35[/C][C]0.506742365489109[/C][C]0.986515269021783[/C][C]0.493257634510891[/C][/ROW]
[ROW][C]36[/C][C]0.458451867096018[/C][C]0.916903734192035[/C][C]0.541548132903982[/C][/ROW]
[ROW][C]37[/C][C]0.442279645014834[/C][C]0.884559290029668[/C][C]0.557720354985166[/C][/ROW]
[ROW][C]38[/C][C]0.49107188317934[/C][C]0.98214376635868[/C][C]0.50892811682066[/C][/ROW]
[ROW][C]39[/C][C]0.65288126714433[/C][C]0.694237465711341[/C][C]0.347118732855671[/C][/ROW]
[ROW][C]40[/C][C]0.626159915138167[/C][C]0.747680169723667[/C][C]0.373840084861833[/C][/ROW]
[ROW][C]41[/C][C]0.668699918948736[/C][C]0.662600162102527[/C][C]0.331300081051264[/C][/ROW]
[ROW][C]42[/C][C]0.891153016364817[/C][C]0.217693967270367[/C][C]0.108846983635183[/C][/ROW]
[ROW][C]43[/C][C]0.955463737263043[/C][C]0.0890725254739146[/C][C]0.0445362627369573[/C][/ROW]
[ROW][C]44[/C][C]0.967813008569357[/C][C]0.0643739828612852[/C][C]0.0321869914306426[/C][/ROW]
[ROW][C]45[/C][C]0.965371572143927[/C][C]0.0692568557121468[/C][C]0.0346284278560734[/C][/ROW]
[ROW][C]46[/C][C]0.952399040798979[/C][C]0.0952019184020428[/C][C]0.0476009592010214[/C][/ROW]
[ROW][C]47[/C][C]0.940239094220308[/C][C]0.119521811559383[/C][C]0.0597609057796916[/C][/ROW]
[ROW][C]48[/C][C]0.929709334630099[/C][C]0.140581330739802[/C][C]0.0702906653699009[/C][/ROW]
[ROW][C]49[/C][C]0.904623400705599[/C][C]0.190753198588802[/C][C]0.095376599294401[/C][/ROW]
[ROW][C]50[/C][C]0.889301085563031[/C][C]0.221397828873938[/C][C]0.110698914436969[/C][/ROW]
[ROW][C]51[/C][C]0.929679758988248[/C][C]0.140640482023505[/C][C]0.0703202410117524[/C][/ROW]
[ROW][C]52[/C][C]0.874665510266537[/C][C]0.250668979466925[/C][C]0.125334489733463[/C][/ROW]
[ROW][C]53[/C][C]0.790442490802506[/C][C]0.419115018394988[/C][C]0.209557509197494[/C][/ROW]
[ROW][C]54[/C][C]0.905243512881482[/C][C]0.189512974237036[/C][C]0.0947564871185178[/C][/ROW]
[ROW][C]55[/C][C]0.941127637653329[/C][C]0.117744724693343[/C][C]0.0588723623466715[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=69736&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=69736&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
50.4650041308858940.9300082617717880.534995869114106
60.6400975275206490.7198049449587020.359902472479351
70.5878756785362160.8242486429275680.412124321463784
80.5695594537838220.8608810924323560.430440546216178
90.5686976415595670.8626047168808670.431302358440433
100.4787844335818250.957568867163650.521215566418175
110.4080107627707380.8160215255414750.591989237229262
120.3242150840855960.6484301681711920.675784915914404
130.4443492543877030.8886985087754050.555650745612297
140.5321190816902370.9357618366195260.467880918309763
150.628964716967030.7420705660659420.371035283032971
160.5514682766934380.8970634466131240.448531723306562
170.5432316326264370.9135367347471260.456768367373563
180.7625995574067900.4748008851864210.237400442593210
190.7923721764348970.4152556471302070.207627823565103
200.7926991709852730.4146016580294550.207300829014727
210.7784010923857530.4431978152284950.221598907614247
220.7640481211490400.4719037577019210.235951878850960
230.7000360398261050.599927920347790.299963960173895
240.6448860523675680.7102278952648640.355113947632432
250.6325551134517580.7348897730964850.367444886548242
260.6452006557078290.7095986885843420.354799344292171
270.7764532798323860.4470934403352280.223546720167614
280.7328663231973860.5342673536052280.267133676802614
290.6798604886197610.6402790227604780.320139511380239
300.7207286415905210.5585427168189580.279271358409479
310.7383050186706350.523389962658730.261694981329365
320.7066164877132770.5867670245734460.293383512286723
330.6411744633740640.7176510732518710.358825536625936
340.5691473432246280.8617053135507440.430852656775372
350.5067423654891090.9865152690217830.493257634510891
360.4584518670960180.9169037341920350.541548132903982
370.4422796450148340.8845592900296680.557720354985166
380.491071883179340.982143766358680.50892811682066
390.652881267144330.6942374657113410.347118732855671
400.6261599151381670.7476801697236670.373840084861833
410.6686999189487360.6626001621025270.331300081051264
420.8911530163648170.2176939672703670.108846983635183
430.9554637372630430.08907252547391460.0445362627369573
440.9678130085693570.06437398286128520.0321869914306426
450.9653715721439270.06925685571214680.0346284278560734
460.9523990407989790.09520191840204280.0476009592010214
470.9402390942203080.1195218115593830.0597609057796916
480.9297093346300990.1405813307398020.0702906653699009
490.9046234007055990.1907531985888020.095376599294401
500.8893010855630310.2213978288739380.110698914436969
510.9296797589882480.1406404820235050.0703202410117524
520.8746655102665370.2506689794669250.125334489733463
530.7904424908025060.4191150183949880.209557509197494
540.9052435128814820.1895129742370360.0947564871185178
550.9411276376533290.1177447246933430.0588723623466715







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 level40.0784313725490196OK

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

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



Parameters (Session):
par1 = 1 ; par2 = Do not include Seasonal Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Do not include Seasonal 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')
}