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, 11 Dec 2010 22:40:30 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Dec/11/t1292107191ulljfe1j8aoi6dh.htm/, Retrieved Tue, 07 May 2024 01:05:40 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=108313, Retrieved Tue, 07 May 2024 01:05:40 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact164
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Linear Regression Graphical Model Validation] [Colombia Coffee -...] [2008-02-26 10:22:06] [74be16979710d4c4e7c6647856088456]
- RM D  [Linear Regression Graphical Model Validation] [Hypothese test mi...] [2010-11-16 19:20:52] [f4dc4aa51d65be851b8508203d9f6001]
F RMPD    [Multiple Regression] [Multiple Regression1] [2010-12-11 22:18:38] [f4dc4aa51d65be851b8508203d9f6001]
-   P         [Multiple Regression] [Multiple Regressi...] [2010-12-11 22:40:30] [7a87ed98a7b21a29d6a45388a9b7b229] [Current]
Feedback Forum

Post a new message
Dataseries X:
989236.00	10489.94
1008380.00	10766.23
1207763.00	10503.76
1368839.00	10192.51
1469798.00	10467.48
1498721.00	10274.97
1761769.00	10640.91
1653214.00	10481.60
1599104.00	10568.70
1421179.00	10440.07
1163995.00	10805.87
1037735.00	10717.50
1015407.00	10864.86
1039210.00	10993.41
1258049.00	11109.32
1469445.00	11367.14
1552346.00	11168.31
1549144.00	11150.22
1785895.00	11185.68
1662335.00	11381.15
1629440.00	11679.07
1467430.00	12080.73
1202209.00	12221.93
1076982.00	12463.15
1039367.00	12621.69
1063449.00	12268.63
1335135.00	12354.35
1491602.00	13062.91
1591972.00	13627.64
1641248.00	13408.62
1898849.00	13211.99
1798580.00	13357.74
1762444.00	13895.63
1622044.00	13930.01
1368955.00	13371.72
1262973.00	13264.82
1195650.00	12650.36
1269530.00	12266.39
1479279.00	12262.89
1607819.00	12820.13
1712466.00	12638.32
1721766.00	11350.01
1949843.00	11378.02
1821326.00	11543.55
1757802.00	10850.66
1590367.00	9325.01
1260647.00	8829.04
1149235.00	8776.39
1016367.00	8000.86
1027885.00	7062.93
1262159.00	7608.92
1520854.00	8168.12
1544144.00	8500.33
1564709.00	8447.00
1821776.00	9171.61
1741365.00	9496.28
1623386.00	9712.28
1498658.00	9712.73
1241822.00	10344.84
1136029.00	10428.05




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time12 seconds
R Server'George Udny Yule' @ 72.249.76.132

\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 & 12 seconds \tabularnewline
R Server & 'George Udny Yule' @ 72.249.76.132 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=108313&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]12 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'George Udny Yule' @ 72.249.76.132[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=108313&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=108313&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 time12 seconds
R Server'George Udny Yule' @ 72.249.76.132







Multiple Linear Regression - Estimated Regression Equation
Passengersbrussels[t] = + 643506.889523468 + 33.0554647235123DJIA[t] -37601.179288474M1[t] -2084.93078149814M2[t] + 218151.003437736M3[t] + 386307.756645739M4[t] + 460143.964267434M5[t] + 489460.295892718M6[t] + 728273.668754439M7[t] + 612201.854211425M8[t] + 544958.341672279M9[t] + 395143.631685458M10[t] + 118806.647585149M11[t] + 3366.03286395014t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Passengersbrussels[t] =  +  643506.889523468 +  33.0554647235123DJIA[t] -37601.179288474M1[t] -2084.93078149814M2[t] +  218151.003437736M3[t] +  386307.756645739M4[t] +  460143.964267434M5[t] +  489460.295892718M6[t] +  728273.668754439M7[t] +  612201.854211425M8[t] +  544958.341672279M9[t] +  395143.631685458M10[t] +  118806.647585149M11[t] +  3366.03286395014t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=108313&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Passengersbrussels[t] =  +  643506.889523468 +  33.0554647235123DJIA[t] -37601.179288474M1[t] -2084.93078149814M2[t] +  218151.003437736M3[t] +  386307.756645739M4[t] +  460143.964267434M5[t] +  489460.295892718M6[t] +  728273.668754439M7[t] +  612201.854211425M8[t] +  544958.341672279M9[t] +  395143.631685458M10[t] +  118806.647585149M11[t] +  3366.03286395014t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=108313&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=108313&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
Passengersbrussels[t] = + 643506.889523468 + 33.0554647235123DJIA[t] -37601.179288474M1[t] -2084.93078149814M2[t] + 218151.003437736M3[t] + 386307.756645739M4[t] + 460143.964267434M5[t] + 489460.295892718M6[t] + 728273.668754439M7[t] + 612201.854211425M8[t] + 544958.341672279M9[t] + 395143.631685458M10[t] + 118806.647585149M11[t] + 3366.03286395014t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)643506.88952346855597.88238911.574300
DJIA33.05546472351234.0533888.15500
M1-37601.17928847431091.216256-1.20940.2326950.116347
M2-2084.9307814981431121.009248-0.0670.9468770.473438
M3218151.00343773631033.3333547.029600
M4386307.75664573930907.2240712.498900
M5460143.96426743430859.09196814.911100
M6489460.29589271830867.96607515.856600
M7728273.66875443930811.80813823.636200
M8612201.85421142530785.04510119.886300
M9544958.34167227930773.52408717.708700
M10395143.63168545830760.58407512.845800
M11118806.64758514930752.2294123.86340.0003480.000174
t3366.03286395014388.6084558.661800

\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) & 643506.889523468 & 55597.882389 & 11.5743 & 0 & 0 \tabularnewline
DJIA & 33.0554647235123 & 4.053388 & 8.155 & 0 & 0 \tabularnewline
M1 & -37601.179288474 & 31091.216256 & -1.2094 & 0.232695 & 0.116347 \tabularnewline
M2 & -2084.93078149814 & 31121.009248 & -0.067 & 0.946877 & 0.473438 \tabularnewline
M3 & 218151.003437736 & 31033.333354 & 7.0296 & 0 & 0 \tabularnewline
M4 & 386307.756645739 & 30907.22407 & 12.4989 & 0 & 0 \tabularnewline
M5 & 460143.964267434 & 30859.091968 & 14.9111 & 0 & 0 \tabularnewline
M6 & 489460.295892718 & 30867.966075 & 15.8566 & 0 & 0 \tabularnewline
M7 & 728273.668754439 & 30811.808138 & 23.6362 & 0 & 0 \tabularnewline
M8 & 612201.854211425 & 30785.045101 & 19.8863 & 0 & 0 \tabularnewline
M9 & 544958.341672279 & 30773.524087 & 17.7087 & 0 & 0 \tabularnewline
M10 & 395143.631685458 & 30760.584075 & 12.8458 & 0 & 0 \tabularnewline
M11 & 118806.647585149 & 30752.229412 & 3.8634 & 0.000348 & 0.000174 \tabularnewline
t & 3366.03286395014 & 388.608455 & 8.6618 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=108313&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]643506.889523468[/C][C]55597.882389[/C][C]11.5743[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]DJIA[/C][C]33.0554647235123[/C][C]4.053388[/C][C]8.155[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-37601.179288474[/C][C]31091.216256[/C][C]-1.2094[/C][C]0.232695[/C][C]0.116347[/C][/ROW]
[ROW][C]M2[/C][C]-2084.93078149814[/C][C]31121.009248[/C][C]-0.067[/C][C]0.946877[/C][C]0.473438[/C][/ROW]
[ROW][C]M3[/C][C]218151.003437736[/C][C]31033.333354[/C][C]7.0296[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M4[/C][C]386307.756645739[/C][C]30907.22407[/C][C]12.4989[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M5[/C][C]460143.964267434[/C][C]30859.091968[/C][C]14.9111[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M6[/C][C]489460.295892718[/C][C]30867.966075[/C][C]15.8566[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M7[/C][C]728273.668754439[/C][C]30811.808138[/C][C]23.6362[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]612201.854211425[/C][C]30785.045101[/C][C]19.8863[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M9[/C][C]544958.341672279[/C][C]30773.524087[/C][C]17.7087[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M10[/C][C]395143.631685458[/C][C]30760.584075[/C][C]12.8458[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M11[/C][C]118806.647585149[/C][C]30752.229412[/C][C]3.8634[/C][C]0.000348[/C][C]0.000174[/C][/ROW]
[ROW][C]t[/C][C]3366.03286395014[/C][C]388.608455[/C][C]8.6618[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=108313&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=108313&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)643506.88952346855597.88238911.574300
DJIA33.05546472351234.0533888.15500
M1-37601.17928847431091.216256-1.20940.2326950.116347
M2-2084.9307814981431121.009248-0.0670.9468770.473438
M3218151.00343773631033.3333547.029600
M4386307.75664573930907.2240712.498900
M5460143.96426743430859.09196814.911100
M6489460.29589271830867.96607515.856600
M7728273.66875443930811.80813823.636200
M8612201.85421142530785.04510119.886300
M9544958.34167227930773.52408717.708700
M10395143.63168545830760.58407512.845800
M11118806.64758514930752.2294123.86340.0003480.000174
t3366.03286395014388.6084558.661800







Multiple Linear Regression - Regression Statistics
Multiple R0.987238960106177
R-squared0.974640764351525
Adjusted R-squared0.967474023842174
F-TEST (value)135.994984481405
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation48619.1823506069
Sum Squared Residuals108735945052.312

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.987238960106177 \tabularnewline
R-squared & 0.974640764351525 \tabularnewline
Adjusted R-squared & 0.967474023842174 \tabularnewline
F-TEST (value) & 135.994984481405 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 48619.1823506069 \tabularnewline
Sum Squared Residuals & 108735945052.312 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=108313&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.987238960106177[/C][/ROW]
[ROW][C]R-squared[/C][C]0.974640764351525[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.967474023842174[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]135.994984481405[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]48619.1823506069[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]108735945052.312[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=108313&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=108313&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.987238960106177
R-squared0.974640764351525
Adjusted R-squared0.967474023842174
F-TEST (value)135.994984481405
F-TEST (DF numerator)13
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation48619.1823506069
Sum Squared Residuals108735945052.312







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1989236956021.58472070733214.4152792926
210083801004036.760440094343.23955991047
312077631218962.65969729-11199.6596972938
413688391380196.93237405-11357.9323740538
514697981466488.433994723309.56600527653
614987211492807.290970035913.70902996611
717617691747083.0134566314685.9865433729
816532141629111.1656924624102.8343075397
915991041568112.8169946830991.1830053173
1014211791417412.215444433766.78455557408
1111639951156532.953203937462.04679607066
1210377351038171.22706511-436.227065113023
1310154071008807.133922256599.86607775436
1410392101051938.69528338-12728.6952833793
1512580491279372.12128267-21323.1212826655
1614694451459417.2672696410027.7327303650
1715523461530047.0897043022298.9102956958
1815491441562131.48083669-12987.4808366895
1917858951805483.03334146-19588.0333414567
2016623351699238.60335190-36903.6033518976
2116294401645209.00772713-15769.0077271301
2214674301512037.38856511-44607.3885651054
2312022091243733.86894771-41524.8689477072
2410769821136266.89342711-59284.8934271138
2510393671107272.36037986-67905.3603798555
2610634491134484.07937550-71035.0793754983
2713351351360919.56089478-25784.5608947817
2814916021555864.12705123-64262.1270512271
2915919721651733.78013018-59761.7801301816
3016412481677176.33673567-35928.3367356715
3118988491912856.04643276-14007.0464327586
3217985801804968.09873715-6388.09873714658
3317624441758870.822982083573.17701791966
3416220441613558.592736408485.40726359599
3513689551322133.1060995646821.8939004439
3612629731203158.8621994159814.1378005865
3711956501148612.4549208847037.5450791198
3812695301174802.4295019294727.5704980807
3914792791398288.7024585780990.297541429
4016078191588231.3156930519587.6843069455
4117124661659423.7421373253042.2578626821
4217217661649520.4208686072245.5791313965
4319498431892625.7101611857217.2898388197
4418213261785391.599557835934.4004422005
4517578021698610.3189303359191.6810696714
4615903671501730.5720520388636.4279479687
4712606471212365.1019767548281.8980232471
4811492351095184.1170378654050.8829621392
4910163671035313.46605631-18946.4660563113
5010278851043192.03539911-15307.0353991136
5112621591284841.95566669-22682.955666688
5215208541474849.3576120346004.6423879704
5315441441563032.95403347-18888.9540334729
5415647091593952.47058900-29243.4705890016
5518217761860084.19660798-38308.1966079773
5617413651758110.53266070-16745.5326606960
5716233861701373.03336578-77987.0333657784
5814986581554939.23120203-56281.2312020333
5912418221302862.96977205-61040.9697720544
6011360291190172.9002705-54143.9002704989

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 989236 & 956021.584720707 & 33214.4152792926 \tabularnewline
2 & 1008380 & 1004036.76044009 & 4343.23955991047 \tabularnewline
3 & 1207763 & 1218962.65969729 & -11199.6596972938 \tabularnewline
4 & 1368839 & 1380196.93237405 & -11357.9323740538 \tabularnewline
5 & 1469798 & 1466488.43399472 & 3309.56600527653 \tabularnewline
6 & 1498721 & 1492807.29097003 & 5913.70902996611 \tabularnewline
7 & 1761769 & 1747083.01345663 & 14685.9865433729 \tabularnewline
8 & 1653214 & 1629111.16569246 & 24102.8343075397 \tabularnewline
9 & 1599104 & 1568112.81699468 & 30991.1830053173 \tabularnewline
10 & 1421179 & 1417412.21544443 & 3766.78455557408 \tabularnewline
11 & 1163995 & 1156532.95320393 & 7462.04679607066 \tabularnewline
12 & 1037735 & 1038171.22706511 & -436.227065113023 \tabularnewline
13 & 1015407 & 1008807.13392225 & 6599.86607775436 \tabularnewline
14 & 1039210 & 1051938.69528338 & -12728.6952833793 \tabularnewline
15 & 1258049 & 1279372.12128267 & -21323.1212826655 \tabularnewline
16 & 1469445 & 1459417.26726964 & 10027.7327303650 \tabularnewline
17 & 1552346 & 1530047.08970430 & 22298.9102956958 \tabularnewline
18 & 1549144 & 1562131.48083669 & -12987.4808366895 \tabularnewline
19 & 1785895 & 1805483.03334146 & -19588.0333414567 \tabularnewline
20 & 1662335 & 1699238.60335190 & -36903.6033518976 \tabularnewline
21 & 1629440 & 1645209.00772713 & -15769.0077271301 \tabularnewline
22 & 1467430 & 1512037.38856511 & -44607.3885651054 \tabularnewline
23 & 1202209 & 1243733.86894771 & -41524.8689477072 \tabularnewline
24 & 1076982 & 1136266.89342711 & -59284.8934271138 \tabularnewline
25 & 1039367 & 1107272.36037986 & -67905.3603798555 \tabularnewline
26 & 1063449 & 1134484.07937550 & -71035.0793754983 \tabularnewline
27 & 1335135 & 1360919.56089478 & -25784.5608947817 \tabularnewline
28 & 1491602 & 1555864.12705123 & -64262.1270512271 \tabularnewline
29 & 1591972 & 1651733.78013018 & -59761.7801301816 \tabularnewline
30 & 1641248 & 1677176.33673567 & -35928.3367356715 \tabularnewline
31 & 1898849 & 1912856.04643276 & -14007.0464327586 \tabularnewline
32 & 1798580 & 1804968.09873715 & -6388.09873714658 \tabularnewline
33 & 1762444 & 1758870.82298208 & 3573.17701791966 \tabularnewline
34 & 1622044 & 1613558.59273640 & 8485.40726359599 \tabularnewline
35 & 1368955 & 1322133.10609956 & 46821.8939004439 \tabularnewline
36 & 1262973 & 1203158.86219941 & 59814.1378005865 \tabularnewline
37 & 1195650 & 1148612.45492088 & 47037.5450791198 \tabularnewline
38 & 1269530 & 1174802.42950192 & 94727.5704980807 \tabularnewline
39 & 1479279 & 1398288.70245857 & 80990.297541429 \tabularnewline
40 & 1607819 & 1588231.31569305 & 19587.6843069455 \tabularnewline
41 & 1712466 & 1659423.74213732 & 53042.2578626821 \tabularnewline
42 & 1721766 & 1649520.42086860 & 72245.5791313965 \tabularnewline
43 & 1949843 & 1892625.71016118 & 57217.2898388197 \tabularnewline
44 & 1821326 & 1785391.5995578 & 35934.4004422005 \tabularnewline
45 & 1757802 & 1698610.31893033 & 59191.6810696714 \tabularnewline
46 & 1590367 & 1501730.57205203 & 88636.4279479687 \tabularnewline
47 & 1260647 & 1212365.10197675 & 48281.8980232471 \tabularnewline
48 & 1149235 & 1095184.11703786 & 54050.8829621392 \tabularnewline
49 & 1016367 & 1035313.46605631 & -18946.4660563113 \tabularnewline
50 & 1027885 & 1043192.03539911 & -15307.0353991136 \tabularnewline
51 & 1262159 & 1284841.95566669 & -22682.955666688 \tabularnewline
52 & 1520854 & 1474849.35761203 & 46004.6423879704 \tabularnewline
53 & 1544144 & 1563032.95403347 & -18888.9540334729 \tabularnewline
54 & 1564709 & 1593952.47058900 & -29243.4705890016 \tabularnewline
55 & 1821776 & 1860084.19660798 & -38308.1966079773 \tabularnewline
56 & 1741365 & 1758110.53266070 & -16745.5326606960 \tabularnewline
57 & 1623386 & 1701373.03336578 & -77987.0333657784 \tabularnewline
58 & 1498658 & 1554939.23120203 & -56281.2312020333 \tabularnewline
59 & 1241822 & 1302862.96977205 & -61040.9697720544 \tabularnewline
60 & 1136029 & 1190172.9002705 & -54143.9002704989 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=108313&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]989236[/C][C]956021.584720707[/C][C]33214.4152792926[/C][/ROW]
[ROW][C]2[/C][C]1008380[/C][C]1004036.76044009[/C][C]4343.23955991047[/C][/ROW]
[ROW][C]3[/C][C]1207763[/C][C]1218962.65969729[/C][C]-11199.6596972938[/C][/ROW]
[ROW][C]4[/C][C]1368839[/C][C]1380196.93237405[/C][C]-11357.9323740538[/C][/ROW]
[ROW][C]5[/C][C]1469798[/C][C]1466488.43399472[/C][C]3309.56600527653[/C][/ROW]
[ROW][C]6[/C][C]1498721[/C][C]1492807.29097003[/C][C]5913.70902996611[/C][/ROW]
[ROW][C]7[/C][C]1761769[/C][C]1747083.01345663[/C][C]14685.9865433729[/C][/ROW]
[ROW][C]8[/C][C]1653214[/C][C]1629111.16569246[/C][C]24102.8343075397[/C][/ROW]
[ROW][C]9[/C][C]1599104[/C][C]1568112.81699468[/C][C]30991.1830053173[/C][/ROW]
[ROW][C]10[/C][C]1421179[/C][C]1417412.21544443[/C][C]3766.78455557408[/C][/ROW]
[ROW][C]11[/C][C]1163995[/C][C]1156532.95320393[/C][C]7462.04679607066[/C][/ROW]
[ROW][C]12[/C][C]1037735[/C][C]1038171.22706511[/C][C]-436.227065113023[/C][/ROW]
[ROW][C]13[/C][C]1015407[/C][C]1008807.13392225[/C][C]6599.86607775436[/C][/ROW]
[ROW][C]14[/C][C]1039210[/C][C]1051938.69528338[/C][C]-12728.6952833793[/C][/ROW]
[ROW][C]15[/C][C]1258049[/C][C]1279372.12128267[/C][C]-21323.1212826655[/C][/ROW]
[ROW][C]16[/C][C]1469445[/C][C]1459417.26726964[/C][C]10027.7327303650[/C][/ROW]
[ROW][C]17[/C][C]1552346[/C][C]1530047.08970430[/C][C]22298.9102956958[/C][/ROW]
[ROW][C]18[/C][C]1549144[/C][C]1562131.48083669[/C][C]-12987.4808366895[/C][/ROW]
[ROW][C]19[/C][C]1785895[/C][C]1805483.03334146[/C][C]-19588.0333414567[/C][/ROW]
[ROW][C]20[/C][C]1662335[/C][C]1699238.60335190[/C][C]-36903.6033518976[/C][/ROW]
[ROW][C]21[/C][C]1629440[/C][C]1645209.00772713[/C][C]-15769.0077271301[/C][/ROW]
[ROW][C]22[/C][C]1467430[/C][C]1512037.38856511[/C][C]-44607.3885651054[/C][/ROW]
[ROW][C]23[/C][C]1202209[/C][C]1243733.86894771[/C][C]-41524.8689477072[/C][/ROW]
[ROW][C]24[/C][C]1076982[/C][C]1136266.89342711[/C][C]-59284.8934271138[/C][/ROW]
[ROW][C]25[/C][C]1039367[/C][C]1107272.36037986[/C][C]-67905.3603798555[/C][/ROW]
[ROW][C]26[/C][C]1063449[/C][C]1134484.07937550[/C][C]-71035.0793754983[/C][/ROW]
[ROW][C]27[/C][C]1335135[/C][C]1360919.56089478[/C][C]-25784.5608947817[/C][/ROW]
[ROW][C]28[/C][C]1491602[/C][C]1555864.12705123[/C][C]-64262.1270512271[/C][/ROW]
[ROW][C]29[/C][C]1591972[/C][C]1651733.78013018[/C][C]-59761.7801301816[/C][/ROW]
[ROW][C]30[/C][C]1641248[/C][C]1677176.33673567[/C][C]-35928.3367356715[/C][/ROW]
[ROW][C]31[/C][C]1898849[/C][C]1912856.04643276[/C][C]-14007.0464327586[/C][/ROW]
[ROW][C]32[/C][C]1798580[/C][C]1804968.09873715[/C][C]-6388.09873714658[/C][/ROW]
[ROW][C]33[/C][C]1762444[/C][C]1758870.82298208[/C][C]3573.17701791966[/C][/ROW]
[ROW][C]34[/C][C]1622044[/C][C]1613558.59273640[/C][C]8485.40726359599[/C][/ROW]
[ROW][C]35[/C][C]1368955[/C][C]1322133.10609956[/C][C]46821.8939004439[/C][/ROW]
[ROW][C]36[/C][C]1262973[/C][C]1203158.86219941[/C][C]59814.1378005865[/C][/ROW]
[ROW][C]37[/C][C]1195650[/C][C]1148612.45492088[/C][C]47037.5450791198[/C][/ROW]
[ROW][C]38[/C][C]1269530[/C][C]1174802.42950192[/C][C]94727.5704980807[/C][/ROW]
[ROW][C]39[/C][C]1479279[/C][C]1398288.70245857[/C][C]80990.297541429[/C][/ROW]
[ROW][C]40[/C][C]1607819[/C][C]1588231.31569305[/C][C]19587.6843069455[/C][/ROW]
[ROW][C]41[/C][C]1712466[/C][C]1659423.74213732[/C][C]53042.2578626821[/C][/ROW]
[ROW][C]42[/C][C]1721766[/C][C]1649520.42086860[/C][C]72245.5791313965[/C][/ROW]
[ROW][C]43[/C][C]1949843[/C][C]1892625.71016118[/C][C]57217.2898388197[/C][/ROW]
[ROW][C]44[/C][C]1821326[/C][C]1785391.5995578[/C][C]35934.4004422005[/C][/ROW]
[ROW][C]45[/C][C]1757802[/C][C]1698610.31893033[/C][C]59191.6810696714[/C][/ROW]
[ROW][C]46[/C][C]1590367[/C][C]1501730.57205203[/C][C]88636.4279479687[/C][/ROW]
[ROW][C]47[/C][C]1260647[/C][C]1212365.10197675[/C][C]48281.8980232471[/C][/ROW]
[ROW][C]48[/C][C]1149235[/C][C]1095184.11703786[/C][C]54050.8829621392[/C][/ROW]
[ROW][C]49[/C][C]1016367[/C][C]1035313.46605631[/C][C]-18946.4660563113[/C][/ROW]
[ROW][C]50[/C][C]1027885[/C][C]1043192.03539911[/C][C]-15307.0353991136[/C][/ROW]
[ROW][C]51[/C][C]1262159[/C][C]1284841.95566669[/C][C]-22682.955666688[/C][/ROW]
[ROW][C]52[/C][C]1520854[/C][C]1474849.35761203[/C][C]46004.6423879704[/C][/ROW]
[ROW][C]53[/C][C]1544144[/C][C]1563032.95403347[/C][C]-18888.9540334729[/C][/ROW]
[ROW][C]54[/C][C]1564709[/C][C]1593952.47058900[/C][C]-29243.4705890016[/C][/ROW]
[ROW][C]55[/C][C]1821776[/C][C]1860084.19660798[/C][C]-38308.1966079773[/C][/ROW]
[ROW][C]56[/C][C]1741365[/C][C]1758110.53266070[/C][C]-16745.5326606960[/C][/ROW]
[ROW][C]57[/C][C]1623386[/C][C]1701373.03336578[/C][C]-77987.0333657784[/C][/ROW]
[ROW][C]58[/C][C]1498658[/C][C]1554939.23120203[/C][C]-56281.2312020333[/C][/ROW]
[ROW][C]59[/C][C]1241822[/C][C]1302862.96977205[/C][C]-61040.9697720544[/C][/ROW]
[ROW][C]60[/C][C]1136029[/C][C]1190172.9002705[/C][C]-54143.9002704989[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=108313&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=108313&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
1989236956021.58472070733214.4152792926
210083801004036.760440094343.23955991047
312077631218962.65969729-11199.6596972938
413688391380196.93237405-11357.9323740538
514697981466488.433994723309.56600527653
614987211492807.290970035913.70902996611
717617691747083.0134566314685.9865433729
816532141629111.1656924624102.8343075397
915991041568112.8169946830991.1830053173
1014211791417412.215444433766.78455557408
1111639951156532.953203937462.04679607066
1210377351038171.22706511-436.227065113023
1310154071008807.133922256599.86607775436
1410392101051938.69528338-12728.6952833793
1512580491279372.12128267-21323.1212826655
1614694451459417.2672696410027.7327303650
1715523461530047.0897043022298.9102956958
1815491441562131.48083669-12987.4808366895
1917858951805483.03334146-19588.0333414567
2016623351699238.60335190-36903.6033518976
2116294401645209.00772713-15769.0077271301
2214674301512037.38856511-44607.3885651054
2312022091243733.86894771-41524.8689477072
2410769821136266.89342711-59284.8934271138
2510393671107272.36037986-67905.3603798555
2610634491134484.07937550-71035.0793754983
2713351351360919.56089478-25784.5608947817
2814916021555864.12705123-64262.1270512271
2915919721651733.78013018-59761.7801301816
3016412481677176.33673567-35928.3367356715
3118988491912856.04643276-14007.0464327586
3217985801804968.09873715-6388.09873714658
3317624441758870.822982083573.17701791966
3416220441613558.592736408485.40726359599
3513689551322133.1060995646821.8939004439
3612629731203158.8621994159814.1378005865
3711956501148612.4549208847037.5450791198
3812695301174802.4295019294727.5704980807
3914792791398288.7024585780990.297541429
4016078191588231.3156930519587.6843069455
4117124661659423.7421373253042.2578626821
4217217661649520.4208686072245.5791313965
4319498431892625.7101611857217.2898388197
4418213261785391.599557835934.4004422005
4517578021698610.3189303359191.6810696714
4615903671501730.5720520388636.4279479687
4712606471212365.1019767548281.8980232471
4811492351095184.1170378654050.8829621392
4910163671035313.46605631-18946.4660563113
5010278851043192.03539911-15307.0353991136
5112621591284841.95566669-22682.955666688
5215208541474849.3576120346004.6423879704
5315441441563032.95403347-18888.9540334729
5415647091593952.47058900-29243.4705890016
5518217761860084.19660798-38308.1966079773
5617413651758110.53266070-16745.5326606960
5716233861701373.03336578-77987.0333657784
5814986581554939.23120203-56281.2312020333
5912418221302862.96977205-61040.9697720544
6011360291190172.9002705-54143.9002704989







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.005877553591105890.01175510718221180.994122446408894
180.003570380663693070.007140761327386130.996429619336307
190.001416502476590.002833004953180.99858349752341
200.005076172350535190.01015234470107040.994923827649465
210.002842924989183080.005685849978366150.997157075010817
220.001117094181419480.002234188362838960.99888290581858
230.0003835235610190230.0007670471220380470.99961647643898
240.000148050488397460.000296100976794920.999851949511603
250.0001098085460666830.0002196170921333660.999890191453933
268.6238630538108e-050.0001724772610762160.999913761369462
270.0001397717070311060.0002795434140622120.999860228292969
280.0001427064394528570.0002854128789057140.999857293560547
290.0001698663245409540.0003397326490819080.99983013367546
300.000554346638587810.001108693277175620.999445653361412
310.001807458061624670.003614916123249340.998192541938375
320.009235501083820330.01847100216764070.99076449891618
330.01894380270986740.03788760541973480.981056197290133
340.1366451627675490.2732903255350970.863354837232451
350.3908118851375790.7816237702751580.609188114862421
360.7368739325980830.5262521348038330.263126067401917
370.7022274614567830.5955450770864350.297772538543217
380.792211257299940.4155774854001180.207788742700059
390.8184650036673270.3630699926653460.181534996332673
400.953982647053380.092034705893240.04601735294662
410.903603587767340.1927928244653200.0963964122326599
420.8170302982594740.3659394034810530.182969701740526
430.6718326937737450.656334612452510.328167306226255

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.00587755359110589 & 0.0117551071822118 & 0.994122446408894 \tabularnewline
18 & 0.00357038066369307 & 0.00714076132738613 & 0.996429619336307 \tabularnewline
19 & 0.00141650247659 & 0.00283300495318 & 0.99858349752341 \tabularnewline
20 & 0.00507617235053519 & 0.0101523447010704 & 0.994923827649465 \tabularnewline
21 & 0.00284292498918308 & 0.00568584997836615 & 0.997157075010817 \tabularnewline
22 & 0.00111709418141948 & 0.00223418836283896 & 0.99888290581858 \tabularnewline
23 & 0.000383523561019023 & 0.000767047122038047 & 0.99961647643898 \tabularnewline
24 & 0.00014805048839746 & 0.00029610097679492 & 0.999851949511603 \tabularnewline
25 & 0.000109808546066683 & 0.000219617092133366 & 0.999890191453933 \tabularnewline
26 & 8.6238630538108e-05 & 0.000172477261076216 & 0.999913761369462 \tabularnewline
27 & 0.000139771707031106 & 0.000279543414062212 & 0.999860228292969 \tabularnewline
28 & 0.000142706439452857 & 0.000285412878905714 & 0.999857293560547 \tabularnewline
29 & 0.000169866324540954 & 0.000339732649081908 & 0.99983013367546 \tabularnewline
30 & 0.00055434663858781 & 0.00110869327717562 & 0.999445653361412 \tabularnewline
31 & 0.00180745806162467 & 0.00361491612324934 & 0.998192541938375 \tabularnewline
32 & 0.00923550108382033 & 0.0184710021676407 & 0.99076449891618 \tabularnewline
33 & 0.0189438027098674 & 0.0378876054197348 & 0.981056197290133 \tabularnewline
34 & 0.136645162767549 & 0.273290325535097 & 0.863354837232451 \tabularnewline
35 & 0.390811885137579 & 0.781623770275158 & 0.609188114862421 \tabularnewline
36 & 0.736873932598083 & 0.526252134803833 & 0.263126067401917 \tabularnewline
37 & 0.702227461456783 & 0.595545077086435 & 0.297772538543217 \tabularnewline
38 & 0.79221125729994 & 0.415577485400118 & 0.207788742700059 \tabularnewline
39 & 0.818465003667327 & 0.363069992665346 & 0.181534996332673 \tabularnewline
40 & 0.95398264705338 & 0.09203470589324 & 0.04601735294662 \tabularnewline
41 & 0.90360358776734 & 0.192792824465320 & 0.0963964122326599 \tabularnewline
42 & 0.817030298259474 & 0.365939403481053 & 0.182969701740526 \tabularnewline
43 & 0.671832693773745 & 0.65633461245251 & 0.328167306226255 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=108313&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]17[/C][C]0.00587755359110589[/C][C]0.0117551071822118[/C][C]0.994122446408894[/C][/ROW]
[ROW][C]18[/C][C]0.00357038066369307[/C][C]0.00714076132738613[/C][C]0.996429619336307[/C][/ROW]
[ROW][C]19[/C][C]0.00141650247659[/C][C]0.00283300495318[/C][C]0.99858349752341[/C][/ROW]
[ROW][C]20[/C][C]0.00507617235053519[/C][C]0.0101523447010704[/C][C]0.994923827649465[/C][/ROW]
[ROW][C]21[/C][C]0.00284292498918308[/C][C]0.00568584997836615[/C][C]0.997157075010817[/C][/ROW]
[ROW][C]22[/C][C]0.00111709418141948[/C][C]0.00223418836283896[/C][C]0.99888290581858[/C][/ROW]
[ROW][C]23[/C][C]0.000383523561019023[/C][C]0.000767047122038047[/C][C]0.99961647643898[/C][/ROW]
[ROW][C]24[/C][C]0.00014805048839746[/C][C]0.00029610097679492[/C][C]0.999851949511603[/C][/ROW]
[ROW][C]25[/C][C]0.000109808546066683[/C][C]0.000219617092133366[/C][C]0.999890191453933[/C][/ROW]
[ROW][C]26[/C][C]8.6238630538108e-05[/C][C]0.000172477261076216[/C][C]0.999913761369462[/C][/ROW]
[ROW][C]27[/C][C]0.000139771707031106[/C][C]0.000279543414062212[/C][C]0.999860228292969[/C][/ROW]
[ROW][C]28[/C][C]0.000142706439452857[/C][C]0.000285412878905714[/C][C]0.999857293560547[/C][/ROW]
[ROW][C]29[/C][C]0.000169866324540954[/C][C]0.000339732649081908[/C][C]0.99983013367546[/C][/ROW]
[ROW][C]30[/C][C]0.00055434663858781[/C][C]0.00110869327717562[/C][C]0.999445653361412[/C][/ROW]
[ROW][C]31[/C][C]0.00180745806162467[/C][C]0.00361491612324934[/C][C]0.998192541938375[/C][/ROW]
[ROW][C]32[/C][C]0.00923550108382033[/C][C]0.0184710021676407[/C][C]0.99076449891618[/C][/ROW]
[ROW][C]33[/C][C]0.0189438027098674[/C][C]0.0378876054197348[/C][C]0.981056197290133[/C][/ROW]
[ROW][C]34[/C][C]0.136645162767549[/C][C]0.273290325535097[/C][C]0.863354837232451[/C][/ROW]
[ROW][C]35[/C][C]0.390811885137579[/C][C]0.781623770275158[/C][C]0.609188114862421[/C][/ROW]
[ROW][C]36[/C][C]0.736873932598083[/C][C]0.526252134803833[/C][C]0.263126067401917[/C][/ROW]
[ROW][C]37[/C][C]0.702227461456783[/C][C]0.595545077086435[/C][C]0.297772538543217[/C][/ROW]
[ROW][C]38[/C][C]0.79221125729994[/C][C]0.415577485400118[/C][C]0.207788742700059[/C][/ROW]
[ROW][C]39[/C][C]0.818465003667327[/C][C]0.363069992665346[/C][C]0.181534996332673[/C][/ROW]
[ROW][C]40[/C][C]0.95398264705338[/C][C]0.09203470589324[/C][C]0.04601735294662[/C][/ROW]
[ROW][C]41[/C][C]0.90360358776734[/C][C]0.192792824465320[/C][C]0.0963964122326599[/C][/ROW]
[ROW][C]42[/C][C]0.817030298259474[/C][C]0.365939403481053[/C][C]0.182969701740526[/C][/ROW]
[ROW][C]43[/C][C]0.671832693773745[/C][C]0.65633461245251[/C][C]0.328167306226255[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=108313&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.005877553591105890.01175510718221180.994122446408894
180.003570380663693070.007140761327386130.996429619336307
190.001416502476590.002833004953180.99858349752341
200.005076172350535190.01015234470107040.994923827649465
210.002842924989183080.005685849978366150.997157075010817
220.001117094181419480.002234188362838960.99888290581858
230.0003835235610190230.0007670471220380470.99961647643898
240.000148050488397460.000296100976794920.999851949511603
250.0001098085460666830.0002196170921333660.999890191453933
268.6238630538108e-050.0001724772610762160.999913761369462
270.0001397717070311060.0002795434140622120.999860228292969
280.0001427064394528570.0002854128789057140.999857293560547
290.0001698663245409540.0003397326490819080.99983013367546
300.000554346638587810.001108693277175620.999445653361412
310.001807458061624670.003614916123249340.998192541938375
320.009235501083820330.01847100216764070.99076449891618
330.01894380270986740.03788760541973480.981056197290133
340.1366451627675490.2732903255350970.863354837232451
350.3908118851375790.7816237702751580.609188114862421
360.7368739325980830.5262521348038330.263126067401917
370.7022274614567830.5955450770864350.297772538543217
380.792211257299940.4155774854001180.207788742700059
390.8184650036673270.3630699926653460.181534996332673
400.953982647053380.092034705893240.04601735294662
410.903603587767340.1927928244653200.0963964122326599
420.8170302982594740.3659394034810530.182969701740526
430.6718326937737450.656334612452510.328167306226255







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level130.481481481481481NOK
5% type I error level170.62962962962963NOK
10% type I error level180.666666666666667NOK

\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 & 13 & 0.481481481481481 & NOK \tabularnewline
5% type I error level & 17 & 0.62962962962963 & NOK \tabularnewline
10% type I error level & 18 & 0.666666666666667 & NOK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=108313&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]13[/C][C]0.481481481481481[/C][C]NOK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]17[/C][C]0.62962962962963[/C][C]NOK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]18[/C][C]0.666666666666667[/C][C]NOK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=108313&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=108313&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 level130.481481481481481NOK
5% type I error level170.62962962962963NOK
10% type I error level180.666666666666667NOK



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