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 computationThu, 16 Dec 2010 14:48:45 +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/16/t1292510830uj1m0ts7nrp5jr1.htm/, Retrieved Fri, 03 May 2024 07:45:47 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=110975, Retrieved Fri, 03 May 2024 07:45:47 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact142
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]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:10:54] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [Multiple Regressi...] [2010-12-16 14:48:45] [7a87ed98a7b21a29d6a45388a9b7b229] [Current]
Feedback Forum

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




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk

\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 & 6 seconds \tabularnewline
R Server & 'RServer@AstonUniversity' @ vre.aston.ac.uk \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110975&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]6 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'RServer@AstonUniversity' @ vre.aston.ac.uk[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110975&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110975&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 time6 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 74419.1211650215 + 11.7196327679735X[t] + 0.738254673862066Y1[t] + 83270.4986696159M1[t] + 285506.653074943M2[t] + 296247.946657393M3[t] + 240637.61604357M4[t] + 203989.772222968M5[t] + 433856.443722137M6[t] + 139640.779814768M7[t] + 156676.660161278M8[t] + 49097.337516207M9[t] -110366.597177626M10[t] -25287.8796270558M11[t] + 915.104335580009t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  74419.1211650215 +  11.7196327679735X[t] +  0.738254673862066Y1[t] +  83270.4986696159M1[t] +  285506.653074943M2[t] +  296247.946657393M3[t] +  240637.61604357M4[t] +  203989.772222968M5[t] +  433856.443722137M6[t] +  139640.779814768M7[t] +  156676.660161278M8[t] +  49097.337516207M9[t] -110366.597177626M10[t] -25287.8796270558M11[t] +  915.104335580009t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110975&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  74419.1211650215 +  11.7196327679735X[t] +  0.738254673862066Y1[t] +  83270.4986696159M1[t] +  285506.653074943M2[t] +  296247.946657393M3[t] +  240637.61604357M4[t] +  203989.772222968M5[t] +  433856.443722137M6[t] +  139640.779814768M7[t] +  156676.660161278M8[t] +  49097.337516207M9[t] -110366.597177626M10[t] -25287.8796270558M11[t] +  915.104335580009t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110975&T=1

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

As an alternative you can also use a QR Code:  

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

Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 74419.1211650215 + 11.7196327679735X[t] + 0.738254673862066Y1[t] + 83270.4986696159M1[t] + 285506.653074943M2[t] + 296247.946657393M3[t] + 240637.61604357M4[t] + 203989.772222968M5[t] + 433856.443722137M6[t] + 139640.779814768M7[t] + 156676.660161278M8[t] + 49097.337516207M9[t] -110366.597177626M10[t] -25287.8796270558M11[t] + 915.104335580009t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)74419.121165021558869.6765161.26410.2128380.106419
X11.71963276797353.0643863.82450.0004090.000205
Y10.7382546738620660.07136510.344700
M183270.498669615918338.3901594.54084.3e-052.2e-05
M2285506.65307494318035.71110715.830100
M3296247.94665739322209.92597613.338500
M4240637.6160435731282.0642767.692500
M5203989.77222296836696.4418595.55881e-061e-06
M6433856.44372213737440.90623411.587800
M7139640.77981476853202.6392422.62470.011880.00594
M8156676.66016127845608.6836543.43520.0013030.000651
M949097.33751620741881.3490041.17230.2473870.123693
M10-110366.59717762632032.25758-3.44550.0012650.000632
M11-25287.879627055819181.222737-1.31840.1942030.097101
t915.104335580009327.5549532.79370.0076870.003843

\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) & 74419.1211650215 & 58869.676516 & 1.2641 & 0.212838 & 0.106419 \tabularnewline
X & 11.7196327679735 & 3.064386 & 3.8245 & 0.000409 & 0.000205 \tabularnewline
Y1 & 0.738254673862066 & 0.071365 & 10.3447 & 0 & 0 \tabularnewline
M1 & 83270.4986696159 & 18338.390159 & 4.5408 & 4.3e-05 & 2.2e-05 \tabularnewline
M2 & 285506.653074943 & 18035.711107 & 15.8301 & 0 & 0 \tabularnewline
M3 & 296247.946657393 & 22209.925976 & 13.3385 & 0 & 0 \tabularnewline
M4 & 240637.61604357 & 31282.064276 & 7.6925 & 0 & 0 \tabularnewline
M5 & 203989.772222968 & 36696.441859 & 5.5588 & 1e-06 & 1e-06 \tabularnewline
M6 & 433856.443722137 & 37440.906234 & 11.5878 & 0 & 0 \tabularnewline
M7 & 139640.779814768 & 53202.639242 & 2.6247 & 0.01188 & 0.00594 \tabularnewline
M8 & 156676.660161278 & 45608.683654 & 3.4352 & 0.001303 & 0.000651 \tabularnewline
M9 & 49097.337516207 & 41881.349004 & 1.1723 & 0.247387 & 0.123693 \tabularnewline
M10 & -110366.597177626 & 32032.25758 & -3.4455 & 0.001265 & 0.000632 \tabularnewline
M11 & -25287.8796270558 & 19181.222737 & -1.3184 & 0.194203 & 0.097101 \tabularnewline
t & 915.104335580009 & 327.554953 & 2.7937 & 0.007687 & 0.003843 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110975&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]74419.1211650215[/C][C]58869.676516[/C][C]1.2641[/C][C]0.212838[/C][C]0.106419[/C][/ROW]
[ROW][C]X[/C][C]11.7196327679735[/C][C]3.064386[/C][C]3.8245[/C][C]0.000409[/C][C]0.000205[/C][/ROW]
[ROW][C]Y1[/C][C]0.738254673862066[/C][C]0.071365[/C][C]10.3447[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]83270.4986696159[/C][C]18338.390159[/C][C]4.5408[/C][C]4.3e-05[/C][C]2.2e-05[/C][/ROW]
[ROW][C]M2[/C][C]285506.653074943[/C][C]18035.711107[/C][C]15.8301[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M3[/C][C]296247.946657393[/C][C]22209.925976[/C][C]13.3385[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M4[/C][C]240637.61604357[/C][C]31282.064276[/C][C]7.6925[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M5[/C][C]203989.772222968[/C][C]36696.441859[/C][C]5.5588[/C][C]1e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M6[/C][C]433856.443722137[/C][C]37440.906234[/C][C]11.5878[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M7[/C][C]139640.779814768[/C][C]53202.639242[/C][C]2.6247[/C][C]0.01188[/C][C]0.00594[/C][/ROW]
[ROW][C]M8[/C][C]156676.660161278[/C][C]45608.683654[/C][C]3.4352[/C][C]0.001303[/C][C]0.000651[/C][/ROW]
[ROW][C]M9[/C][C]49097.337516207[/C][C]41881.349004[/C][C]1.1723[/C][C]0.247387[/C][C]0.123693[/C][/ROW]
[ROW][C]M10[/C][C]-110366.597177626[/C][C]32032.25758[/C][C]-3.4455[/C][C]0.001265[/C][C]0.000632[/C][/ROW]
[ROW][C]M11[/C][C]-25287.8796270558[/C][C]19181.222737[/C][C]-1.3184[/C][C]0.194203[/C][C]0.097101[/C][/ROW]
[ROW][C]t[/C][C]915.104335580009[/C][C]327.554953[/C][C]2.7937[/C][C]0.007687[/C][C]0.003843[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110975&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110975&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)74419.121165021558869.6765161.26410.2128380.106419
X11.71963276797353.0643863.82450.0004090.000205
Y10.7382546738620660.07136510.344700
M183270.498669615918338.3901594.54084.3e-052.2e-05
M2285506.65307494318035.71110715.830100
M3296247.94665739322209.92597613.338500
M4240637.6160435731282.0642767.692500
M5203989.77222296836696.4418595.55881e-061e-06
M6433856.44372213737440.90623411.587800
M7139640.77981476853202.6392422.62470.011880.00594
M8156676.66016127845608.6836543.43520.0013030.000651
M949097.33751620741881.3490041.17230.2473870.123693
M10-110366.59717762632032.25758-3.44550.0012650.000632
M11-25287.879627055819181.222737-1.31840.1942030.097101
t915.104335580009327.5549532.79370.0076870.003843







Multiple Linear Regression - Regression Statistics
Multiple R0.99616489812887
R-squared0.992344504264104
Adjusted R-squared0.989908664711773
F-TEST (value)407.393214103375
F-TEST (DF numerator)14
F-TEST (DF denominator)44
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation26653.3543361046
Sum Squared Residuals31257657084.1017

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.99616489812887 \tabularnewline
R-squared & 0.992344504264104 \tabularnewline
Adjusted R-squared & 0.989908664711773 \tabularnewline
F-TEST (value) & 407.393214103375 \tabularnewline
F-TEST (DF numerator) & 14 \tabularnewline
F-TEST (DF denominator) & 44 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 26653.3543361046 \tabularnewline
Sum Squared Residuals & 31257657084.1017 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110975&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.99616489812887[/C][/ROW]
[ROW][C]R-squared[/C][C]0.992344504264104[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.989908664711773[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]407.393214103375[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]14[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]44[/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]26653.3543361046[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]31257657084.1017[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110975&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110975&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.99616489812887
R-squared0.992344504264104
Adjusted R-squared0.989908664711773
F-TEST (value)407.393214103375
F-TEST (DF numerator)14
F-TEST (DF denominator)44
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation26653.3543361046
Sum Squared Residuals31257657084.1017







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
110083801015089.08661837-6709.08661837323
212077631229297.44082308-21534.4408230841
313688391384501.53468072-15662.5346807236
414697981451943.965671717854.0343283044
514987211488488.5333009510232.4666990479
617617691744911.5314829316857.4685170736
716532141643940.332664949273.66733506085
815991041582770.8612400216333.1387599766
914211791434652.18616491-13473.1861649115
1011639951149036.4346262814958.5653737247
1110377351044127.30252218-6392.3025221778
121015407978845.25644767836561.7435523223
1310392101048053.6678872-8843.66788720434
1412580491270136.02526419-12087.0252641856
1514694451446372.8934757623072.1065242439
1615523461545411.537656934.46234999849
1715491441570668.84072605-21524.840726047
1817858951799502.30327304-13607.303273042
1916623351683275.11260993-20940.112609926
2016294401613498.8627838515941.137216146
2114674301487257.06467525-19827.0646752548
2212022091210758.40675145-8549.40675144641
2310769821103778.59559752-26796.5955975158
2410393671039390.19209546-23.1920954611987
2510634491091668.61199827-28219.6119982747
2613351351313603.12671621531.8732840016
2714916021534137.04695099-42535.046950994
2815919721601572.74294098-9600.74294098374
2916412481637371.791102663876.20889734327
3018988491902227.37285547-3378.37285546647
3117985801800810.09200115-2230.09200115066
3217624441751040.8920593311403.1079406693
3316220441618102.023829723941.9761702768
3413689551349359.283483219595.7165167957
3512629731247256.1394733815716.8605266186
3611956501188016.171040167633.82895984126
3712695301218000.2672430251529.7327569801
3814792791475652.762574173626.23742583176
3916078191648687.98824372-40868.9882437192
4017124661686757.2713101625708.7286898399
4117217661713182.148589478583.85141052523
4219498431951157.95980497-1314.95980497209
4318213261828176.2622957-6850.26229570319
4417578021743128.5547084614673.4452915389
4515903671571687.388764118679.6112359023
4612606471283716.30082382-23069.300823818
4711492351125675.7529789323559.2470210664
4810163671060539.3804167-44172.3804167023
4910278851035642.36625313-7757.36625312785
5012621591253695.644622568463.35537743634
5115208541444859.5366488175994.4633511929
5215441441585040.48242716-40896.482427159
5315647091565876.68628087-1167.68628086936
5418217761820332.832583591443.16741640693
5517413651720618.2004282820746.799571719
5616233861681736.82920833-58350.8292083309
5714986581487979.3365660110678.6634339871
5812418221244757.57431526-2935.57431525602
5911360291142116.20942799-6087.20942799137

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 1008380 & 1015089.08661837 & -6709.08661837323 \tabularnewline
2 & 1207763 & 1229297.44082308 & -21534.4408230841 \tabularnewline
3 & 1368839 & 1384501.53468072 & -15662.5346807236 \tabularnewline
4 & 1469798 & 1451943.9656717 & 17854.0343283044 \tabularnewline
5 & 1498721 & 1488488.53330095 & 10232.4666990479 \tabularnewline
6 & 1761769 & 1744911.53148293 & 16857.4685170736 \tabularnewline
7 & 1653214 & 1643940.33266494 & 9273.66733506085 \tabularnewline
8 & 1599104 & 1582770.86124002 & 16333.1387599766 \tabularnewline
9 & 1421179 & 1434652.18616491 & -13473.1861649115 \tabularnewline
10 & 1163995 & 1149036.43462628 & 14958.5653737247 \tabularnewline
11 & 1037735 & 1044127.30252218 & -6392.3025221778 \tabularnewline
12 & 1015407 & 978845.256447678 & 36561.7435523223 \tabularnewline
13 & 1039210 & 1048053.6678872 & -8843.66788720434 \tabularnewline
14 & 1258049 & 1270136.02526419 & -12087.0252641856 \tabularnewline
15 & 1469445 & 1446372.89347576 & 23072.1065242439 \tabularnewline
16 & 1552346 & 1545411.53765 & 6934.46234999849 \tabularnewline
17 & 1549144 & 1570668.84072605 & -21524.840726047 \tabularnewline
18 & 1785895 & 1799502.30327304 & -13607.303273042 \tabularnewline
19 & 1662335 & 1683275.11260993 & -20940.112609926 \tabularnewline
20 & 1629440 & 1613498.86278385 & 15941.137216146 \tabularnewline
21 & 1467430 & 1487257.06467525 & -19827.0646752548 \tabularnewline
22 & 1202209 & 1210758.40675145 & -8549.40675144641 \tabularnewline
23 & 1076982 & 1103778.59559752 & -26796.5955975158 \tabularnewline
24 & 1039367 & 1039390.19209546 & -23.1920954611987 \tabularnewline
25 & 1063449 & 1091668.61199827 & -28219.6119982747 \tabularnewline
26 & 1335135 & 1313603.126716 & 21531.8732840016 \tabularnewline
27 & 1491602 & 1534137.04695099 & -42535.046950994 \tabularnewline
28 & 1591972 & 1601572.74294098 & -9600.74294098374 \tabularnewline
29 & 1641248 & 1637371.79110266 & 3876.20889734327 \tabularnewline
30 & 1898849 & 1902227.37285547 & -3378.37285546647 \tabularnewline
31 & 1798580 & 1800810.09200115 & -2230.09200115066 \tabularnewline
32 & 1762444 & 1751040.89205933 & 11403.1079406693 \tabularnewline
33 & 1622044 & 1618102.02382972 & 3941.9761702768 \tabularnewline
34 & 1368955 & 1349359.2834832 & 19595.7165167957 \tabularnewline
35 & 1262973 & 1247256.13947338 & 15716.8605266186 \tabularnewline
36 & 1195650 & 1188016.17104016 & 7633.82895984126 \tabularnewline
37 & 1269530 & 1218000.26724302 & 51529.7327569801 \tabularnewline
38 & 1479279 & 1475652.76257417 & 3626.23742583176 \tabularnewline
39 & 1607819 & 1648687.98824372 & -40868.9882437192 \tabularnewline
40 & 1712466 & 1686757.27131016 & 25708.7286898399 \tabularnewline
41 & 1721766 & 1713182.14858947 & 8583.85141052523 \tabularnewline
42 & 1949843 & 1951157.95980497 & -1314.95980497209 \tabularnewline
43 & 1821326 & 1828176.2622957 & -6850.26229570319 \tabularnewline
44 & 1757802 & 1743128.55470846 & 14673.4452915389 \tabularnewline
45 & 1590367 & 1571687.3887641 & 18679.6112359023 \tabularnewline
46 & 1260647 & 1283716.30082382 & -23069.300823818 \tabularnewline
47 & 1149235 & 1125675.75297893 & 23559.2470210664 \tabularnewline
48 & 1016367 & 1060539.3804167 & -44172.3804167023 \tabularnewline
49 & 1027885 & 1035642.36625313 & -7757.36625312785 \tabularnewline
50 & 1262159 & 1253695.64462256 & 8463.35537743634 \tabularnewline
51 & 1520854 & 1444859.53664881 & 75994.4633511929 \tabularnewline
52 & 1544144 & 1585040.48242716 & -40896.482427159 \tabularnewline
53 & 1564709 & 1565876.68628087 & -1167.68628086936 \tabularnewline
54 & 1821776 & 1820332.83258359 & 1443.16741640693 \tabularnewline
55 & 1741365 & 1720618.20042828 & 20746.799571719 \tabularnewline
56 & 1623386 & 1681736.82920833 & -58350.8292083309 \tabularnewline
57 & 1498658 & 1487979.33656601 & 10678.6634339871 \tabularnewline
58 & 1241822 & 1244757.57431526 & -2935.57431525602 \tabularnewline
59 & 1136029 & 1142116.20942799 & -6087.20942799137 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110975&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]1008380[/C][C]1015089.08661837[/C][C]-6709.08661837323[/C][/ROW]
[ROW][C]2[/C][C]1207763[/C][C]1229297.44082308[/C][C]-21534.4408230841[/C][/ROW]
[ROW][C]3[/C][C]1368839[/C][C]1384501.53468072[/C][C]-15662.5346807236[/C][/ROW]
[ROW][C]4[/C][C]1469798[/C][C]1451943.9656717[/C][C]17854.0343283044[/C][/ROW]
[ROW][C]5[/C][C]1498721[/C][C]1488488.53330095[/C][C]10232.4666990479[/C][/ROW]
[ROW][C]6[/C][C]1761769[/C][C]1744911.53148293[/C][C]16857.4685170736[/C][/ROW]
[ROW][C]7[/C][C]1653214[/C][C]1643940.33266494[/C][C]9273.66733506085[/C][/ROW]
[ROW][C]8[/C][C]1599104[/C][C]1582770.86124002[/C][C]16333.1387599766[/C][/ROW]
[ROW][C]9[/C][C]1421179[/C][C]1434652.18616491[/C][C]-13473.1861649115[/C][/ROW]
[ROW][C]10[/C][C]1163995[/C][C]1149036.43462628[/C][C]14958.5653737247[/C][/ROW]
[ROW][C]11[/C][C]1037735[/C][C]1044127.30252218[/C][C]-6392.3025221778[/C][/ROW]
[ROW][C]12[/C][C]1015407[/C][C]978845.256447678[/C][C]36561.7435523223[/C][/ROW]
[ROW][C]13[/C][C]1039210[/C][C]1048053.6678872[/C][C]-8843.66788720434[/C][/ROW]
[ROW][C]14[/C][C]1258049[/C][C]1270136.02526419[/C][C]-12087.0252641856[/C][/ROW]
[ROW][C]15[/C][C]1469445[/C][C]1446372.89347576[/C][C]23072.1065242439[/C][/ROW]
[ROW][C]16[/C][C]1552346[/C][C]1545411.53765[/C][C]6934.46234999849[/C][/ROW]
[ROW][C]17[/C][C]1549144[/C][C]1570668.84072605[/C][C]-21524.840726047[/C][/ROW]
[ROW][C]18[/C][C]1785895[/C][C]1799502.30327304[/C][C]-13607.303273042[/C][/ROW]
[ROW][C]19[/C][C]1662335[/C][C]1683275.11260993[/C][C]-20940.112609926[/C][/ROW]
[ROW][C]20[/C][C]1629440[/C][C]1613498.86278385[/C][C]15941.137216146[/C][/ROW]
[ROW][C]21[/C][C]1467430[/C][C]1487257.06467525[/C][C]-19827.0646752548[/C][/ROW]
[ROW][C]22[/C][C]1202209[/C][C]1210758.40675145[/C][C]-8549.40675144641[/C][/ROW]
[ROW][C]23[/C][C]1076982[/C][C]1103778.59559752[/C][C]-26796.5955975158[/C][/ROW]
[ROW][C]24[/C][C]1039367[/C][C]1039390.19209546[/C][C]-23.1920954611987[/C][/ROW]
[ROW][C]25[/C][C]1063449[/C][C]1091668.61199827[/C][C]-28219.6119982747[/C][/ROW]
[ROW][C]26[/C][C]1335135[/C][C]1313603.126716[/C][C]21531.8732840016[/C][/ROW]
[ROW][C]27[/C][C]1491602[/C][C]1534137.04695099[/C][C]-42535.046950994[/C][/ROW]
[ROW][C]28[/C][C]1591972[/C][C]1601572.74294098[/C][C]-9600.74294098374[/C][/ROW]
[ROW][C]29[/C][C]1641248[/C][C]1637371.79110266[/C][C]3876.20889734327[/C][/ROW]
[ROW][C]30[/C][C]1898849[/C][C]1902227.37285547[/C][C]-3378.37285546647[/C][/ROW]
[ROW][C]31[/C][C]1798580[/C][C]1800810.09200115[/C][C]-2230.09200115066[/C][/ROW]
[ROW][C]32[/C][C]1762444[/C][C]1751040.89205933[/C][C]11403.1079406693[/C][/ROW]
[ROW][C]33[/C][C]1622044[/C][C]1618102.02382972[/C][C]3941.9761702768[/C][/ROW]
[ROW][C]34[/C][C]1368955[/C][C]1349359.2834832[/C][C]19595.7165167957[/C][/ROW]
[ROW][C]35[/C][C]1262973[/C][C]1247256.13947338[/C][C]15716.8605266186[/C][/ROW]
[ROW][C]36[/C][C]1195650[/C][C]1188016.17104016[/C][C]7633.82895984126[/C][/ROW]
[ROW][C]37[/C][C]1269530[/C][C]1218000.26724302[/C][C]51529.7327569801[/C][/ROW]
[ROW][C]38[/C][C]1479279[/C][C]1475652.76257417[/C][C]3626.23742583176[/C][/ROW]
[ROW][C]39[/C][C]1607819[/C][C]1648687.98824372[/C][C]-40868.9882437192[/C][/ROW]
[ROW][C]40[/C][C]1712466[/C][C]1686757.27131016[/C][C]25708.7286898399[/C][/ROW]
[ROW][C]41[/C][C]1721766[/C][C]1713182.14858947[/C][C]8583.85141052523[/C][/ROW]
[ROW][C]42[/C][C]1949843[/C][C]1951157.95980497[/C][C]-1314.95980497209[/C][/ROW]
[ROW][C]43[/C][C]1821326[/C][C]1828176.2622957[/C][C]-6850.26229570319[/C][/ROW]
[ROW][C]44[/C][C]1757802[/C][C]1743128.55470846[/C][C]14673.4452915389[/C][/ROW]
[ROW][C]45[/C][C]1590367[/C][C]1571687.3887641[/C][C]18679.6112359023[/C][/ROW]
[ROW][C]46[/C][C]1260647[/C][C]1283716.30082382[/C][C]-23069.300823818[/C][/ROW]
[ROW][C]47[/C][C]1149235[/C][C]1125675.75297893[/C][C]23559.2470210664[/C][/ROW]
[ROW][C]48[/C][C]1016367[/C][C]1060539.3804167[/C][C]-44172.3804167023[/C][/ROW]
[ROW][C]49[/C][C]1027885[/C][C]1035642.36625313[/C][C]-7757.36625312785[/C][/ROW]
[ROW][C]50[/C][C]1262159[/C][C]1253695.64462256[/C][C]8463.35537743634[/C][/ROW]
[ROW][C]51[/C][C]1520854[/C][C]1444859.53664881[/C][C]75994.4633511929[/C][/ROW]
[ROW][C]52[/C][C]1544144[/C][C]1585040.48242716[/C][C]-40896.482427159[/C][/ROW]
[ROW][C]53[/C][C]1564709[/C][C]1565876.68628087[/C][C]-1167.68628086936[/C][/ROW]
[ROW][C]54[/C][C]1821776[/C][C]1820332.83258359[/C][C]1443.16741640693[/C][/ROW]
[ROW][C]55[/C][C]1741365[/C][C]1720618.20042828[/C][C]20746.799571719[/C][/ROW]
[ROW][C]56[/C][C]1623386[/C][C]1681736.82920833[/C][C]-58350.8292083309[/C][/ROW]
[ROW][C]57[/C][C]1498658[/C][C]1487979.33656601[/C][C]10678.6634339871[/C][/ROW]
[ROW][C]58[/C][C]1241822[/C][C]1244757.57431526[/C][C]-2935.57431525602[/C][/ROW]
[ROW][C]59[/C][C]1136029[/C][C]1142116.20942799[/C][C]-6087.20942799137[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110975&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110975&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
110083801015089.08661837-6709.08661837323
212077631229297.44082308-21534.4408230841
313688391384501.53468072-15662.5346807236
414697981451943.965671717854.0343283044
514987211488488.5333009510232.4666990479
617617691744911.5314829316857.4685170736
716532141643940.332664949273.66733506085
815991041582770.8612400216333.1387599766
914211791434652.18616491-13473.1861649115
1011639951149036.4346262814958.5653737247
1110377351044127.30252218-6392.3025221778
121015407978845.25644767836561.7435523223
1310392101048053.6678872-8843.66788720434
1412580491270136.02526419-12087.0252641856
1514694451446372.8934757623072.1065242439
1615523461545411.537656934.46234999849
1715491441570668.84072605-21524.840726047
1817858951799502.30327304-13607.303273042
1916623351683275.11260993-20940.112609926
2016294401613498.8627838515941.137216146
2114674301487257.06467525-19827.0646752548
2212022091210758.40675145-8549.40675144641
2310769821103778.59559752-26796.5955975158
2410393671039390.19209546-23.1920954611987
2510634491091668.61199827-28219.6119982747
2613351351313603.12671621531.8732840016
2714916021534137.04695099-42535.046950994
2815919721601572.74294098-9600.74294098374
2916412481637371.791102663876.20889734327
3018988491902227.37285547-3378.37285546647
3117985801800810.09200115-2230.09200115066
3217624441751040.8920593311403.1079406693
3316220441618102.023829723941.9761702768
3413689551349359.283483219595.7165167957
3512629731247256.1394733815716.8605266186
3611956501188016.171040167633.82895984126
3712695301218000.2672430251529.7327569801
3814792791475652.762574173626.23742583176
3916078191648687.98824372-40868.9882437192
4017124661686757.2713101625708.7286898399
4117217661713182.148589478583.85141052523
4219498431951157.95980497-1314.95980497209
4318213261828176.2622957-6850.26229570319
4417578021743128.5547084614673.4452915389
4515903671571687.388764118679.6112359023
4612606471283716.30082382-23069.300823818
4711492351125675.7529789323559.2470210664
4810163671060539.3804167-44172.3804167023
4910278851035642.36625313-7757.36625312785
5012621591253695.644622568463.35537743634
5115208541444859.5366488175994.4633511929
5215441441585040.48242716-40896.482427159
5315647091565876.68628087-1167.68628086936
5418217761820332.832583591443.16741640693
5517413651720618.2004282820746.799571719
5616233861681736.82920833-58350.8292083309
5714986581487979.3365660110678.6634339871
5812418221244757.57431526-2935.57431525602
5911360291142116.20942799-6087.20942799137







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
180.163132508231210.326265016462420.83686749176879
190.2352646516178610.4705293032357210.764735348382139
200.1425173072909530.2850346145819050.857482692709047
210.08216110578349550.1643222115669910.917838894216504
220.04924237030318270.09848474060636540.950757629696817
230.02799425724664750.0559885144932950.972005742753352
240.01870550493229890.03741100986459780.981294495067701
250.01176366985326190.02352733970652380.988236330146738
260.03326641660368440.06653283320736870.966733583396316
270.03615457187638630.07230914375277270.963845428123614
280.02095644922806270.04191289845612550.979043550771937
290.02342658281283060.04685316562566120.97657341718717
300.01811001893424650.03622003786849310.981889981065753
310.01856375409035490.03712750818070970.981436245909645
320.01036535497244680.02073070994489370.989634645027553
330.02032410592400830.04064821184801650.979675894075992
340.01553884709866140.03107769419732290.984461152901339
350.0277640582531180.05552811650623590.972235941746882
360.01824795222378210.03649590444756420.981752047776218
370.05192062190474650.1038412438094930.948079378095254
380.08417147300126970.1683429460025390.91582852699873
390.4605647083118970.9211294166237940.539435291688103
400.3187289945663340.6374579891326680.681271005433666
410.1965613394421710.3931226788843420.803438660557829

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
18 & 0.16313250823121 & 0.32626501646242 & 0.83686749176879 \tabularnewline
19 & 0.235264651617861 & 0.470529303235721 & 0.764735348382139 \tabularnewline
20 & 0.142517307290953 & 0.285034614581905 & 0.857482692709047 \tabularnewline
21 & 0.0821611057834955 & 0.164322211566991 & 0.917838894216504 \tabularnewline
22 & 0.0492423703031827 & 0.0984847406063654 & 0.950757629696817 \tabularnewline
23 & 0.0279942572466475 & 0.055988514493295 & 0.972005742753352 \tabularnewline
24 & 0.0187055049322989 & 0.0374110098645978 & 0.981294495067701 \tabularnewline
25 & 0.0117636698532619 & 0.0235273397065238 & 0.988236330146738 \tabularnewline
26 & 0.0332664166036844 & 0.0665328332073687 & 0.966733583396316 \tabularnewline
27 & 0.0361545718763863 & 0.0723091437527727 & 0.963845428123614 \tabularnewline
28 & 0.0209564492280627 & 0.0419128984561255 & 0.979043550771937 \tabularnewline
29 & 0.0234265828128306 & 0.0468531656256612 & 0.97657341718717 \tabularnewline
30 & 0.0181100189342465 & 0.0362200378684931 & 0.981889981065753 \tabularnewline
31 & 0.0185637540903549 & 0.0371275081807097 & 0.981436245909645 \tabularnewline
32 & 0.0103653549724468 & 0.0207307099448937 & 0.989634645027553 \tabularnewline
33 & 0.0203241059240083 & 0.0406482118480165 & 0.979675894075992 \tabularnewline
34 & 0.0155388470986614 & 0.0310776941973229 & 0.984461152901339 \tabularnewline
35 & 0.027764058253118 & 0.0555281165062359 & 0.972235941746882 \tabularnewline
36 & 0.0182479522237821 & 0.0364959044475642 & 0.981752047776218 \tabularnewline
37 & 0.0519206219047465 & 0.103841243809493 & 0.948079378095254 \tabularnewline
38 & 0.0841714730012697 & 0.168342946002539 & 0.91582852699873 \tabularnewline
39 & 0.460564708311897 & 0.921129416623794 & 0.539435291688103 \tabularnewline
40 & 0.318728994566334 & 0.637457989132668 & 0.681271005433666 \tabularnewline
41 & 0.196561339442171 & 0.393122678884342 & 0.803438660557829 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=110975&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]18[/C][C]0.16313250823121[/C][C]0.32626501646242[/C][C]0.83686749176879[/C][/ROW]
[ROW][C]19[/C][C]0.235264651617861[/C][C]0.470529303235721[/C][C]0.764735348382139[/C][/ROW]
[ROW][C]20[/C][C]0.142517307290953[/C][C]0.285034614581905[/C][C]0.857482692709047[/C][/ROW]
[ROW][C]21[/C][C]0.0821611057834955[/C][C]0.164322211566991[/C][C]0.917838894216504[/C][/ROW]
[ROW][C]22[/C][C]0.0492423703031827[/C][C]0.0984847406063654[/C][C]0.950757629696817[/C][/ROW]
[ROW][C]23[/C][C]0.0279942572466475[/C][C]0.055988514493295[/C][C]0.972005742753352[/C][/ROW]
[ROW][C]24[/C][C]0.0187055049322989[/C][C]0.0374110098645978[/C][C]0.981294495067701[/C][/ROW]
[ROW][C]25[/C][C]0.0117636698532619[/C][C]0.0235273397065238[/C][C]0.988236330146738[/C][/ROW]
[ROW][C]26[/C][C]0.0332664166036844[/C][C]0.0665328332073687[/C][C]0.966733583396316[/C][/ROW]
[ROW][C]27[/C][C]0.0361545718763863[/C][C]0.0723091437527727[/C][C]0.963845428123614[/C][/ROW]
[ROW][C]28[/C][C]0.0209564492280627[/C][C]0.0419128984561255[/C][C]0.979043550771937[/C][/ROW]
[ROW][C]29[/C][C]0.0234265828128306[/C][C]0.0468531656256612[/C][C]0.97657341718717[/C][/ROW]
[ROW][C]30[/C][C]0.0181100189342465[/C][C]0.0362200378684931[/C][C]0.981889981065753[/C][/ROW]
[ROW][C]31[/C][C]0.0185637540903549[/C][C]0.0371275081807097[/C][C]0.981436245909645[/C][/ROW]
[ROW][C]32[/C][C]0.0103653549724468[/C][C]0.0207307099448937[/C][C]0.989634645027553[/C][/ROW]
[ROW][C]33[/C][C]0.0203241059240083[/C][C]0.0406482118480165[/C][C]0.979675894075992[/C][/ROW]
[ROW][C]34[/C][C]0.0155388470986614[/C][C]0.0310776941973229[/C][C]0.984461152901339[/C][/ROW]
[ROW][C]35[/C][C]0.027764058253118[/C][C]0.0555281165062359[/C][C]0.972235941746882[/C][/ROW]
[ROW][C]36[/C][C]0.0182479522237821[/C][C]0.0364959044475642[/C][C]0.981752047776218[/C][/ROW]
[ROW][C]37[/C][C]0.0519206219047465[/C][C]0.103841243809493[/C][C]0.948079378095254[/C][/ROW]
[ROW][C]38[/C][C]0.0841714730012697[/C][C]0.168342946002539[/C][C]0.91582852699873[/C][/ROW]
[ROW][C]39[/C][C]0.460564708311897[/C][C]0.921129416623794[/C][C]0.539435291688103[/C][/ROW]
[ROW][C]40[/C][C]0.318728994566334[/C][C]0.637457989132668[/C][C]0.681271005433666[/C][/ROW]
[ROW][C]41[/C][C]0.196561339442171[/C][C]0.393122678884342[/C][C]0.803438660557829[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=110975&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110975&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
180.163132508231210.326265016462420.83686749176879
190.2352646516178610.4705293032357210.764735348382139
200.1425173072909530.2850346145819050.857482692709047
210.08216110578349550.1643222115669910.917838894216504
220.04924237030318270.09848474060636540.950757629696817
230.02799425724664750.0559885144932950.972005742753352
240.01870550493229890.03741100986459780.981294495067701
250.01176366985326190.02352733970652380.988236330146738
260.03326641660368440.06653283320736870.966733583396316
270.03615457187638630.07230914375277270.963845428123614
280.02095644922806270.04191289845612550.979043550771937
290.02342658281283060.04685316562566120.97657341718717
300.01811001893424650.03622003786849310.981889981065753
310.01856375409035490.03712750818070970.981436245909645
320.01036535497244680.02073070994489370.989634645027553
330.02032410592400830.04064821184801650.979675894075992
340.01553884709866140.03107769419732290.984461152901339
350.0277640582531180.05552811650623590.972235941746882
360.01824795222378210.03649590444756420.981752047776218
370.05192062190474650.1038412438094930.948079378095254
380.08417147300126970.1683429460025390.91582852699873
390.4605647083118970.9211294166237940.539435291688103
400.3187289945663340.6374579891326680.681271005433666
410.1965613394421710.3931226788843420.803438660557829







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level100.416666666666667NOK
10% type I error level150.625NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=110975&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 level100.416666666666667NOK
10% type I error level150.625NOK



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')
}