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 computationWed, 02 Dec 2009 11:40:51 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Dec/02/t1259779364ezcm4x77gcewj71.htm/, Retrieved Sun, 28 Apr 2024 16:10:45 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=62524, Retrieved Sun, 28 Apr 2024 16:10:45 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact112
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]
- R  D    [Multiple Regression] [Model 4] [2009-11-19 15:08:36] [1f74ef2f756548f1f3a7b6136ea56d7f]
-    D        [Multiple Regression] [5e link] [2009-12-02 18:40:51] [ee8fc1691ecec7724e0ca78f0c288737] [Current]
Feedback Forum

Post a new message
Dataseries X:
825	696	627	0
677	825	696	0
656	677	825	0
785	656	677	0
412	785	656	0
352	412	785	0
839	352	412	0
729	839	352	0
696	729	839	0
641	696	729	0
695	641	696	0
638	695	641	0
762	638	695	0
635	762	638	0
721	635	762	0
854	721	635	0
418	854	721	0
367	418	854	0
824	367	418	0
687	824	367	0
601	687	824	0
676	601	687	0
740	676	601	0
691	740	676	0
683	691	740	0
594	683	691	0
729	594	683	0
731	729	594	0
386	731	729	0
331	386	731	0
707	331	386	0
715	707	331	0
657	715	707	0
653	657	715	0
642	653	657	0
643	642	653	0
718	643	642	0
654	718	643	0
632	654	718	0
731	632	654	0
392	731	632	0
344	392	731	0
792	344	392	0
852	792	344	0
649	852	792	0
629	649	852	0
685	629	649	1
617	685	629	1
715	617	685	1
715	715	617	1
629	715	715	1
916	629	715	1
531	916	629	1
357	531	916	1
917	357	531	1
828	917	357	1
708	828	917	1
858	708	828	1




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 4 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=62524&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Gwilym Jenkins' @ 72.249.127.135[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=62524&T=0

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

As an alternative you can also use a QR Code:  

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

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
Y(t)[t] = + 545.186455397854 + 0.141348092963167`Y(t-1)`[t] + 0.00880922248867556`Y(t-2)`[t] + 71.4208577566432X[t] + 98.2230519212738M1[t] + 1.62679385532139M2[t] + 32.0269502909186M3[t] + 160.81742550343M4[t] -232.68270559757M5[t] -257.700350126129M6[t] + 222.814216532563M7[t] + 104.723350792037M8[t] + 8.83524526213836M9[t] + 53.2794395618514M10[t] + 48.363914887757M11[t] -0.637210678003292t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y(t)[t] =  +  545.186455397854 +  0.141348092963167`Y(t-1)`[t] +  0.00880922248867556`Y(t-2)`[t] +  71.4208577566432X[t] +  98.2230519212738M1[t] +  1.62679385532139M2[t] +  32.0269502909186M3[t] +  160.81742550343M4[t] -232.68270559757M5[t] -257.700350126129M6[t] +  222.814216532563M7[t] +  104.723350792037M8[t] +  8.83524526213836M9[t] +  53.2794395618514M10[t] +  48.363914887757M11[t] -0.637210678003292t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=62524&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y(t)[t] =  +  545.186455397854 +  0.141348092963167`Y(t-1)`[t] +  0.00880922248867556`Y(t-2)`[t] +  71.4208577566432X[t] +  98.2230519212738M1[t] +  1.62679385532139M2[t] +  32.0269502909186M3[t] +  160.81742550343M4[t] -232.68270559757M5[t] -257.700350126129M6[t] +  222.814216532563M7[t] +  104.723350792037M8[t] +  8.83524526213836M9[t] +  53.2794395618514M10[t] +  48.363914887757M11[t] -0.637210678003292t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=62524&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=62524&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)[t] = + 545.186455397854 + 0.141348092963167`Y(t-1)`[t] + 0.00880922248867556`Y(t-2)`[t] + 71.4208577566432X[t] + 98.2230519212738M1[t] + 1.62679385532139M2[t] + 32.0269502909186M3[t] + 160.81742550343M4[t] -232.68270559757M5[t] -257.700350126129M6[t] + 222.814216532563M7[t] + 104.723350792037M8[t] + 8.83524526213836M9[t] + 53.2794395618514M10[t] + 48.363914887757M11[t] -0.637210678003292t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)545.186455397854149.2554173.65270.0007140.000357
`Y(t-1)`0.1413480929631670.163420.86490.3919870.195993
`Y(t-2)`0.008809222488675560.1600740.0550.9563740.478187
X71.420857756643228.2219742.53070.0152190.007609
M198.223051921273837.660512.60810.0125540.006277
M21.6267938553213937.7472570.04310.9658280.482914
M332.026950290918640.3015390.79470.4312660.215633
M4160.8174255034336.9470524.35268.4e-054.2e-05
M5-232.6827055975741.349124-5.62731e-061e-06
M6-257.70035012612963.495252-4.05860.000210.000105
M7222.81421653256371.8112883.10280.0034230.001711
M8104.72335079203765.4626721.59970.1171520.058576
M98.8352452621383646.7961980.18880.8511570.425578
M1053.279439561851441.8608111.27280.2100980.105049
M1148.36391488775739.4100491.22720.2265830.113291
t-0.6372106780032920.641103-0.99390.325950.162975

\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) & 545.186455397854 & 149.255417 & 3.6527 & 0.000714 & 0.000357 \tabularnewline
`Y(t-1)` & 0.141348092963167 & 0.16342 & 0.8649 & 0.391987 & 0.195993 \tabularnewline
`Y(t-2)` & 0.00880922248867556 & 0.160074 & 0.055 & 0.956374 & 0.478187 \tabularnewline
X & 71.4208577566432 & 28.221974 & 2.5307 & 0.015219 & 0.007609 \tabularnewline
M1 & 98.2230519212738 & 37.66051 & 2.6081 & 0.012554 & 0.006277 \tabularnewline
M2 & 1.62679385532139 & 37.747257 & 0.0431 & 0.965828 & 0.482914 \tabularnewline
M3 & 32.0269502909186 & 40.301539 & 0.7947 & 0.431266 & 0.215633 \tabularnewline
M4 & 160.81742550343 & 36.947052 & 4.3526 & 8.4e-05 & 4.2e-05 \tabularnewline
M5 & -232.68270559757 & 41.349124 & -5.6273 & 1e-06 & 1e-06 \tabularnewline
M6 & -257.700350126129 & 63.495252 & -4.0586 & 0.00021 & 0.000105 \tabularnewline
M7 & 222.814216532563 & 71.811288 & 3.1028 & 0.003423 & 0.001711 \tabularnewline
M8 & 104.723350792037 & 65.462672 & 1.5997 & 0.117152 & 0.058576 \tabularnewline
M9 & 8.83524526213836 & 46.796198 & 0.1888 & 0.851157 & 0.425578 \tabularnewline
M10 & 53.2794395618514 & 41.860811 & 1.2728 & 0.210098 & 0.105049 \tabularnewline
M11 & 48.363914887757 & 39.410049 & 1.2272 & 0.226583 & 0.113291 \tabularnewline
t & -0.637210678003292 & 0.641103 & -0.9939 & 0.32595 & 0.162975 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=62524&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]545.186455397854[/C][C]149.255417[/C][C]3.6527[/C][C]0.000714[/C][C]0.000357[/C][/ROW]
[ROW][C]`Y(t-1)`[/C][C]0.141348092963167[/C][C]0.16342[/C][C]0.8649[/C][C]0.391987[/C][C]0.195993[/C][/ROW]
[ROW][C]`Y(t-2)`[/C][C]0.00880922248867556[/C][C]0.160074[/C][C]0.055[/C][C]0.956374[/C][C]0.478187[/C][/ROW]
[ROW][C]X[/C][C]71.4208577566432[/C][C]28.221974[/C][C]2.5307[/C][C]0.015219[/C][C]0.007609[/C][/ROW]
[ROW][C]M1[/C][C]98.2230519212738[/C][C]37.66051[/C][C]2.6081[/C][C]0.012554[/C][C]0.006277[/C][/ROW]
[ROW][C]M2[/C][C]1.62679385532139[/C][C]37.747257[/C][C]0.0431[/C][C]0.965828[/C][C]0.482914[/C][/ROW]
[ROW][C]M3[/C][C]32.0269502909186[/C][C]40.301539[/C][C]0.7947[/C][C]0.431266[/C][C]0.215633[/C][/ROW]
[ROW][C]M4[/C][C]160.81742550343[/C][C]36.947052[/C][C]4.3526[/C][C]8.4e-05[/C][C]4.2e-05[/C][/ROW]
[ROW][C]M5[/C][C]-232.68270559757[/C][C]41.349124[/C][C]-5.6273[/C][C]1e-06[/C][C]1e-06[/C][/ROW]
[ROW][C]M6[/C][C]-257.700350126129[/C][C]63.495252[/C][C]-4.0586[/C][C]0.00021[/C][C]0.000105[/C][/ROW]
[ROW][C]M7[/C][C]222.814216532563[/C][C]71.811288[/C][C]3.1028[/C][C]0.003423[/C][C]0.001711[/C][/ROW]
[ROW][C]M8[/C][C]104.723350792037[/C][C]65.462672[/C][C]1.5997[/C][C]0.117152[/C][C]0.058576[/C][/ROW]
[ROW][C]M9[/C][C]8.83524526213836[/C][C]46.796198[/C][C]0.1888[/C][C]0.851157[/C][C]0.425578[/C][/ROW]
[ROW][C]M10[/C][C]53.2794395618514[/C][C]41.860811[/C][C]1.2728[/C][C]0.210098[/C][C]0.105049[/C][/ROW]
[ROW][C]M11[/C][C]48.363914887757[/C][C]39.410049[/C][C]1.2272[/C][C]0.226583[/C][C]0.113291[/C][/ROW]
[ROW][C]t[/C][C]-0.637210678003292[/C][C]0.641103[/C][C]-0.9939[/C][C]0.32595[/C][C]0.162975[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=62524&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=62524&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)545.186455397854149.2554173.65270.0007140.000357
`Y(t-1)`0.1413480929631670.163420.86490.3919870.195993
`Y(t-2)`0.008809222488675560.1600740.0550.9563740.478187
X71.420857756643228.2219742.53070.0152190.007609
M198.223051921273837.660512.60810.0125540.006277
M21.6267938553213937.7472570.04310.9658280.482914
M332.026950290918640.3015390.79470.4312660.215633
M4160.8174255034336.9470524.35268.4e-054.2e-05
M5-232.6827055975741.349124-5.62731e-061e-06
M6-257.70035012612963.495252-4.05860.000210.000105
M7222.81421653256371.8112883.10280.0034230.001711
M8104.72335079203765.4626721.59970.1171520.058576
M98.8352452621383646.7961980.18880.8511570.425578
M1053.279439561851441.8608111.27280.2100980.105049
M1148.36391488775739.4100491.22720.2265830.113291
t-0.6372106780032920.641103-0.99390.325950.162975







Multiple Linear Regression - Regression Statistics
Multiple R0.947365382278292
R-squared0.897501167539294
Adjusted R-squared0.860894441660471
F-TEST (value)24.5173843328744
F-TEST (DF numerator)15
F-TEST (DF denominator)42
p-value4.44089209850063e-16
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation54.8915474089605
Sum Squared Residuals126549.443031907

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.947365382278292 \tabularnewline
R-squared & 0.897501167539294 \tabularnewline
Adjusted R-squared & 0.860894441660471 \tabularnewline
F-TEST (value) & 24.5173843328744 \tabularnewline
F-TEST (DF numerator) & 15 \tabularnewline
F-TEST (DF denominator) & 42 \tabularnewline
p-value & 4.44089209850063e-16 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 54.8915474089605 \tabularnewline
Sum Squared Residuals & 126549.443031907 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=62524&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.947365382278292[/C][/ROW]
[ROW][C]R-squared[/C][C]0.897501167539294[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.860894441660471[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]24.5173843328744[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]15[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]42[/C][/ROW]
[ROW][C]p-value[/C][C]4.44089209850063e-16[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]54.8915474089605[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]126549.443031907[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=62524&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=62524&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.947365382278292
R-squared0.897501167539294
Adjusted R-squared0.860894441660471
F-TEST (value)24.5173843328744
F-TEST (DF numerator)15
F-TEST (DF denominator)42
p-value4.44089209850063e-16
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation54.8915474089605
Sum Squared Residuals126549.443031907







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1825746.67395184389278.3260481561084
2677668.28222344398.71777655609997
3656678.262041143984-22.2620411439842
4785802.143230797942-17.1432307979421
5412426.054799338925-14.0547993389251
6352348.8134951581413.18650484185928
7839816.92412557276322.0758744272371
8729766.504017077975-37.5040170779754
9696658.7205019961137.2794980038895
10641696.893984076281-55.8939840762814
11695683.27639926908311.7236007309167
12638641.423563486457-3.42356348645686
13762731.42826144521530.5717385547847
14635651.219830546838-16.2198305468378
15721664.12391208670556.8760879132948
16854803.31434135998450.6856586400158
17418428.733889079108-10.7338890791081
18367342.62289193159924.3771080684011
19824811.45067416610312.5493258338969
20687756.869405884819-69.8694058848186
21601645.005215618288-44.0052156182879
22676675.4493997642170.550600235783341
23740679.7401782503360.2598217496695
24691640.44602232086350.5539776791365
25683731.669597248214-48.6695972482141
26594632.873691858608-38.8736918586079
27729649.98618356257079.0138164374295
28731796.437419845614-65.4374198456143
29386403.772019288508-17.7720192885085
30331329.3696904546311.63030954536914
31707798.433719563752-91.433719563752
32715732.368018862496-17.3680188624962
33657640.28575505404216.7142449459580
34653675.965023063797-22.9650230637974
35642669.335960435504-27.3359604355040
36643618.74476895719424.2552310428059
37718716.3750568460521.62494315394763
38654629.75150429682324.2484957031771
39632651.128863791425-19.1288637914246
40731775.608680041468-44.6086800414681
41392395.270996571067-3.27099657106742
42344322.57125087637021.4287491236296
43792792.677571971166-0.677571971165651
44852736.850598520679115.149401479321
45649652.752699565494-3.75269956549375
46629668.394573665001-39.3945736650011
47685729.647462045082-44.6474620450822
48617688.385645235486-71.3856452354857
49715776.853132616627-61.8531326166267
50715692.87274985383122.1272501461686
51629723.498999415316-94.4989994153155
52916839.49632795499176.5036720450085
53531485.16829572239145.8317042776090
54357407.622671579259-50.6226715792592
55917859.51390872621657.4860912737836
56828818.4079596540319.5920403459689
57708714.235827766066-6.2358277660659
58858740.297019430703117.702980569297

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 825 & 746.673951843892 & 78.3260481561084 \tabularnewline
2 & 677 & 668.2822234439 & 8.71777655609997 \tabularnewline
3 & 656 & 678.262041143984 & -22.2620411439842 \tabularnewline
4 & 785 & 802.143230797942 & -17.1432307979421 \tabularnewline
5 & 412 & 426.054799338925 & -14.0547993389251 \tabularnewline
6 & 352 & 348.813495158141 & 3.18650484185928 \tabularnewline
7 & 839 & 816.924125572763 & 22.0758744272371 \tabularnewline
8 & 729 & 766.504017077975 & -37.5040170779754 \tabularnewline
9 & 696 & 658.72050199611 & 37.2794980038895 \tabularnewline
10 & 641 & 696.893984076281 & -55.8939840762814 \tabularnewline
11 & 695 & 683.276399269083 & 11.7236007309167 \tabularnewline
12 & 638 & 641.423563486457 & -3.42356348645686 \tabularnewline
13 & 762 & 731.428261445215 & 30.5717385547847 \tabularnewline
14 & 635 & 651.219830546838 & -16.2198305468378 \tabularnewline
15 & 721 & 664.123912086705 & 56.8760879132948 \tabularnewline
16 & 854 & 803.314341359984 & 50.6856586400158 \tabularnewline
17 & 418 & 428.733889079108 & -10.7338890791081 \tabularnewline
18 & 367 & 342.622891931599 & 24.3771080684011 \tabularnewline
19 & 824 & 811.450674166103 & 12.5493258338969 \tabularnewline
20 & 687 & 756.869405884819 & -69.8694058848186 \tabularnewline
21 & 601 & 645.005215618288 & -44.0052156182879 \tabularnewline
22 & 676 & 675.449399764217 & 0.550600235783341 \tabularnewline
23 & 740 & 679.74017825033 & 60.2598217496695 \tabularnewline
24 & 691 & 640.446022320863 & 50.5539776791365 \tabularnewline
25 & 683 & 731.669597248214 & -48.6695972482141 \tabularnewline
26 & 594 & 632.873691858608 & -38.8736918586079 \tabularnewline
27 & 729 & 649.986183562570 & 79.0138164374295 \tabularnewline
28 & 731 & 796.437419845614 & -65.4374198456143 \tabularnewline
29 & 386 & 403.772019288508 & -17.7720192885085 \tabularnewline
30 & 331 & 329.369690454631 & 1.63030954536914 \tabularnewline
31 & 707 & 798.433719563752 & -91.433719563752 \tabularnewline
32 & 715 & 732.368018862496 & -17.3680188624962 \tabularnewline
33 & 657 & 640.285755054042 & 16.7142449459580 \tabularnewline
34 & 653 & 675.965023063797 & -22.9650230637974 \tabularnewline
35 & 642 & 669.335960435504 & -27.3359604355040 \tabularnewline
36 & 643 & 618.744768957194 & 24.2552310428059 \tabularnewline
37 & 718 & 716.375056846052 & 1.62494315394763 \tabularnewline
38 & 654 & 629.751504296823 & 24.2484957031771 \tabularnewline
39 & 632 & 651.128863791425 & -19.1288637914246 \tabularnewline
40 & 731 & 775.608680041468 & -44.6086800414681 \tabularnewline
41 & 392 & 395.270996571067 & -3.27099657106742 \tabularnewline
42 & 344 & 322.571250876370 & 21.4287491236296 \tabularnewline
43 & 792 & 792.677571971166 & -0.677571971165651 \tabularnewline
44 & 852 & 736.850598520679 & 115.149401479321 \tabularnewline
45 & 649 & 652.752699565494 & -3.75269956549375 \tabularnewline
46 & 629 & 668.394573665001 & -39.3945736650011 \tabularnewline
47 & 685 & 729.647462045082 & -44.6474620450822 \tabularnewline
48 & 617 & 688.385645235486 & -71.3856452354857 \tabularnewline
49 & 715 & 776.853132616627 & -61.8531326166267 \tabularnewline
50 & 715 & 692.872749853831 & 22.1272501461686 \tabularnewline
51 & 629 & 723.498999415316 & -94.4989994153155 \tabularnewline
52 & 916 & 839.496327954991 & 76.5036720450085 \tabularnewline
53 & 531 & 485.168295722391 & 45.8317042776090 \tabularnewline
54 & 357 & 407.622671579259 & -50.6226715792592 \tabularnewline
55 & 917 & 859.513908726216 & 57.4860912737836 \tabularnewline
56 & 828 & 818.407959654031 & 9.5920403459689 \tabularnewline
57 & 708 & 714.235827766066 & -6.2358277660659 \tabularnewline
58 & 858 & 740.297019430703 & 117.702980569297 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=62524&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]825[/C][C]746.673951843892[/C][C]78.3260481561084[/C][/ROW]
[ROW][C]2[/C][C]677[/C][C]668.2822234439[/C][C]8.71777655609997[/C][/ROW]
[ROW][C]3[/C][C]656[/C][C]678.262041143984[/C][C]-22.2620411439842[/C][/ROW]
[ROW][C]4[/C][C]785[/C][C]802.143230797942[/C][C]-17.1432307979421[/C][/ROW]
[ROW][C]5[/C][C]412[/C][C]426.054799338925[/C][C]-14.0547993389251[/C][/ROW]
[ROW][C]6[/C][C]352[/C][C]348.813495158141[/C][C]3.18650484185928[/C][/ROW]
[ROW][C]7[/C][C]839[/C][C]816.924125572763[/C][C]22.0758744272371[/C][/ROW]
[ROW][C]8[/C][C]729[/C][C]766.504017077975[/C][C]-37.5040170779754[/C][/ROW]
[ROW][C]9[/C][C]696[/C][C]658.72050199611[/C][C]37.2794980038895[/C][/ROW]
[ROW][C]10[/C][C]641[/C][C]696.893984076281[/C][C]-55.8939840762814[/C][/ROW]
[ROW][C]11[/C][C]695[/C][C]683.276399269083[/C][C]11.7236007309167[/C][/ROW]
[ROW][C]12[/C][C]638[/C][C]641.423563486457[/C][C]-3.42356348645686[/C][/ROW]
[ROW][C]13[/C][C]762[/C][C]731.428261445215[/C][C]30.5717385547847[/C][/ROW]
[ROW][C]14[/C][C]635[/C][C]651.219830546838[/C][C]-16.2198305468378[/C][/ROW]
[ROW][C]15[/C][C]721[/C][C]664.123912086705[/C][C]56.8760879132948[/C][/ROW]
[ROW][C]16[/C][C]854[/C][C]803.314341359984[/C][C]50.6856586400158[/C][/ROW]
[ROW][C]17[/C][C]418[/C][C]428.733889079108[/C][C]-10.7338890791081[/C][/ROW]
[ROW][C]18[/C][C]367[/C][C]342.622891931599[/C][C]24.3771080684011[/C][/ROW]
[ROW][C]19[/C][C]824[/C][C]811.450674166103[/C][C]12.5493258338969[/C][/ROW]
[ROW][C]20[/C][C]687[/C][C]756.869405884819[/C][C]-69.8694058848186[/C][/ROW]
[ROW][C]21[/C][C]601[/C][C]645.005215618288[/C][C]-44.0052156182879[/C][/ROW]
[ROW][C]22[/C][C]676[/C][C]675.449399764217[/C][C]0.550600235783341[/C][/ROW]
[ROW][C]23[/C][C]740[/C][C]679.74017825033[/C][C]60.2598217496695[/C][/ROW]
[ROW][C]24[/C][C]691[/C][C]640.446022320863[/C][C]50.5539776791365[/C][/ROW]
[ROW][C]25[/C][C]683[/C][C]731.669597248214[/C][C]-48.6695972482141[/C][/ROW]
[ROW][C]26[/C][C]594[/C][C]632.873691858608[/C][C]-38.8736918586079[/C][/ROW]
[ROW][C]27[/C][C]729[/C][C]649.986183562570[/C][C]79.0138164374295[/C][/ROW]
[ROW][C]28[/C][C]731[/C][C]796.437419845614[/C][C]-65.4374198456143[/C][/ROW]
[ROW][C]29[/C][C]386[/C][C]403.772019288508[/C][C]-17.7720192885085[/C][/ROW]
[ROW][C]30[/C][C]331[/C][C]329.369690454631[/C][C]1.63030954536914[/C][/ROW]
[ROW][C]31[/C][C]707[/C][C]798.433719563752[/C][C]-91.433719563752[/C][/ROW]
[ROW][C]32[/C][C]715[/C][C]732.368018862496[/C][C]-17.3680188624962[/C][/ROW]
[ROW][C]33[/C][C]657[/C][C]640.285755054042[/C][C]16.7142449459580[/C][/ROW]
[ROW][C]34[/C][C]653[/C][C]675.965023063797[/C][C]-22.9650230637974[/C][/ROW]
[ROW][C]35[/C][C]642[/C][C]669.335960435504[/C][C]-27.3359604355040[/C][/ROW]
[ROW][C]36[/C][C]643[/C][C]618.744768957194[/C][C]24.2552310428059[/C][/ROW]
[ROW][C]37[/C][C]718[/C][C]716.375056846052[/C][C]1.62494315394763[/C][/ROW]
[ROW][C]38[/C][C]654[/C][C]629.751504296823[/C][C]24.2484957031771[/C][/ROW]
[ROW][C]39[/C][C]632[/C][C]651.128863791425[/C][C]-19.1288637914246[/C][/ROW]
[ROW][C]40[/C][C]731[/C][C]775.608680041468[/C][C]-44.6086800414681[/C][/ROW]
[ROW][C]41[/C][C]392[/C][C]395.270996571067[/C][C]-3.27099657106742[/C][/ROW]
[ROW][C]42[/C][C]344[/C][C]322.571250876370[/C][C]21.4287491236296[/C][/ROW]
[ROW][C]43[/C][C]792[/C][C]792.677571971166[/C][C]-0.677571971165651[/C][/ROW]
[ROW][C]44[/C][C]852[/C][C]736.850598520679[/C][C]115.149401479321[/C][/ROW]
[ROW][C]45[/C][C]649[/C][C]652.752699565494[/C][C]-3.75269956549375[/C][/ROW]
[ROW][C]46[/C][C]629[/C][C]668.394573665001[/C][C]-39.3945736650011[/C][/ROW]
[ROW][C]47[/C][C]685[/C][C]729.647462045082[/C][C]-44.6474620450822[/C][/ROW]
[ROW][C]48[/C][C]617[/C][C]688.385645235486[/C][C]-71.3856452354857[/C][/ROW]
[ROW][C]49[/C][C]715[/C][C]776.853132616627[/C][C]-61.8531326166267[/C][/ROW]
[ROW][C]50[/C][C]715[/C][C]692.872749853831[/C][C]22.1272501461686[/C][/ROW]
[ROW][C]51[/C][C]629[/C][C]723.498999415316[/C][C]-94.4989994153155[/C][/ROW]
[ROW][C]52[/C][C]916[/C][C]839.496327954991[/C][C]76.5036720450085[/C][/ROW]
[ROW][C]53[/C][C]531[/C][C]485.168295722391[/C][C]45.8317042776090[/C][/ROW]
[ROW][C]54[/C][C]357[/C][C]407.622671579259[/C][C]-50.6226715792592[/C][/ROW]
[ROW][C]55[/C][C]917[/C][C]859.513908726216[/C][C]57.4860912737836[/C][/ROW]
[ROW][C]56[/C][C]828[/C][C]818.407959654031[/C][C]9.5920403459689[/C][/ROW]
[ROW][C]57[/C][C]708[/C][C]714.235827766066[/C][C]-6.2358277660659[/C][/ROW]
[ROW][C]58[/C][C]858[/C][C]740.297019430703[/C][C]117.702980569297[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=62524&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=62524&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
1825746.67395184389278.3260481561084
2677668.28222344398.71777655609997
3656678.262041143984-22.2620411439842
4785802.143230797942-17.1432307979421
5412426.054799338925-14.0547993389251
6352348.8134951581413.18650484185928
7839816.92412557276322.0758744272371
8729766.504017077975-37.5040170779754
9696658.7205019961137.2794980038895
10641696.893984076281-55.8939840762814
11695683.27639926908311.7236007309167
12638641.423563486457-3.42356348645686
13762731.42826144521530.5717385547847
14635651.219830546838-16.2198305468378
15721664.12391208670556.8760879132948
16854803.31434135998450.6856586400158
17418428.733889079108-10.7338890791081
18367342.62289193159924.3771080684011
19824811.45067416610312.5493258338969
20687756.869405884819-69.8694058848186
21601645.005215618288-44.0052156182879
22676675.4493997642170.550600235783341
23740679.7401782503360.2598217496695
24691640.44602232086350.5539776791365
25683731.669597248214-48.6695972482141
26594632.873691858608-38.8736918586079
27729649.98618356257079.0138164374295
28731796.437419845614-65.4374198456143
29386403.772019288508-17.7720192885085
30331329.3696904546311.63030954536914
31707798.433719563752-91.433719563752
32715732.368018862496-17.3680188624962
33657640.28575505404216.7142449459580
34653675.965023063797-22.9650230637974
35642669.335960435504-27.3359604355040
36643618.74476895719424.2552310428059
37718716.3750568460521.62494315394763
38654629.75150429682324.2484957031771
39632651.128863791425-19.1288637914246
40731775.608680041468-44.6086800414681
41392395.270996571067-3.27099657106742
42344322.57125087637021.4287491236296
43792792.677571971166-0.677571971165651
44852736.850598520679115.149401479321
45649652.752699565494-3.75269956549375
46629668.394573665001-39.3945736650011
47685729.647462045082-44.6474620450822
48617688.385645235486-71.3856452354857
49715776.853132616627-61.8531326166267
50715692.87274985383122.1272501461686
51629723.498999415316-94.4989994153155
52916839.49632795499176.5036720450085
53531485.16829572239145.8317042776090
54357407.622671579259-50.6226715792592
55917859.51390872621657.4860912737836
56828818.4079596540319.5920403459689
57708714.235827766066-6.2358277660659
58858740.297019430703117.702980569297







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
190.1604720883129540.3209441766259080.839527911687046
200.08909158129436710.1781831625887340.910908418705633
210.1040430009236230.2080860018472450.895956999076377
220.1017784559094120.2035569118188250.898221544090588
230.06841079155635230.1368215831127050.931589208443648
240.06211174083611020.1242234816722200.93788825916389
250.0867907760113970.1735815520227940.913209223988603
260.04826925949876040.09653851899752090.95173074050124
270.07286199041091070.1457239808218210.92713800958909
280.1639026271871740.3278052543743490.836097372812826
290.1123191012525840.2246382025051680.887680898747416
300.09065704193708840.1813140838741770.909342958062912
310.1265936821213040.2531873642426070.873406317878696
320.1003449351632600.2006898703265210.89965506483674
330.0650651803863090.1301303607726180.934934819613691
340.03779125515850880.07558251031701750.962208744841491
350.0222812102011720.0445624204023440.977718789798828
360.02117282851601580.04234565703203170.978827171483984
370.01945300174557840.03890600349115670.980546998254422
380.01669090447649020.03338180895298040.98330909552351
390.04438833668745260.08877667337490530.955611663312547

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
19 & 0.160472088312954 & 0.320944176625908 & 0.839527911687046 \tabularnewline
20 & 0.0890915812943671 & 0.178183162588734 & 0.910908418705633 \tabularnewline
21 & 0.104043000923623 & 0.208086001847245 & 0.895956999076377 \tabularnewline
22 & 0.101778455909412 & 0.203556911818825 & 0.898221544090588 \tabularnewline
23 & 0.0684107915563523 & 0.136821583112705 & 0.931589208443648 \tabularnewline
24 & 0.0621117408361102 & 0.124223481672220 & 0.93788825916389 \tabularnewline
25 & 0.086790776011397 & 0.173581552022794 & 0.913209223988603 \tabularnewline
26 & 0.0482692594987604 & 0.0965385189975209 & 0.95173074050124 \tabularnewline
27 & 0.0728619904109107 & 0.145723980821821 & 0.92713800958909 \tabularnewline
28 & 0.163902627187174 & 0.327805254374349 & 0.836097372812826 \tabularnewline
29 & 0.112319101252584 & 0.224638202505168 & 0.887680898747416 \tabularnewline
30 & 0.0906570419370884 & 0.181314083874177 & 0.909342958062912 \tabularnewline
31 & 0.126593682121304 & 0.253187364242607 & 0.873406317878696 \tabularnewline
32 & 0.100344935163260 & 0.200689870326521 & 0.89965506483674 \tabularnewline
33 & 0.065065180386309 & 0.130130360772618 & 0.934934819613691 \tabularnewline
34 & 0.0377912551585088 & 0.0755825103170175 & 0.962208744841491 \tabularnewline
35 & 0.022281210201172 & 0.044562420402344 & 0.977718789798828 \tabularnewline
36 & 0.0211728285160158 & 0.0423456570320317 & 0.978827171483984 \tabularnewline
37 & 0.0194530017455784 & 0.0389060034911567 & 0.980546998254422 \tabularnewline
38 & 0.0166909044764902 & 0.0333818089529804 & 0.98330909552351 \tabularnewline
39 & 0.0443883366874526 & 0.0887766733749053 & 0.955611663312547 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=62524&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]19[/C][C]0.160472088312954[/C][C]0.320944176625908[/C][C]0.839527911687046[/C][/ROW]
[ROW][C]20[/C][C]0.0890915812943671[/C][C]0.178183162588734[/C][C]0.910908418705633[/C][/ROW]
[ROW][C]21[/C][C]0.104043000923623[/C][C]0.208086001847245[/C][C]0.895956999076377[/C][/ROW]
[ROW][C]22[/C][C]0.101778455909412[/C][C]0.203556911818825[/C][C]0.898221544090588[/C][/ROW]
[ROW][C]23[/C][C]0.0684107915563523[/C][C]0.136821583112705[/C][C]0.931589208443648[/C][/ROW]
[ROW][C]24[/C][C]0.0621117408361102[/C][C]0.124223481672220[/C][C]0.93788825916389[/C][/ROW]
[ROW][C]25[/C][C]0.086790776011397[/C][C]0.173581552022794[/C][C]0.913209223988603[/C][/ROW]
[ROW][C]26[/C][C]0.0482692594987604[/C][C]0.0965385189975209[/C][C]0.95173074050124[/C][/ROW]
[ROW][C]27[/C][C]0.0728619904109107[/C][C]0.145723980821821[/C][C]0.92713800958909[/C][/ROW]
[ROW][C]28[/C][C]0.163902627187174[/C][C]0.327805254374349[/C][C]0.836097372812826[/C][/ROW]
[ROW][C]29[/C][C]0.112319101252584[/C][C]0.224638202505168[/C][C]0.887680898747416[/C][/ROW]
[ROW][C]30[/C][C]0.0906570419370884[/C][C]0.181314083874177[/C][C]0.909342958062912[/C][/ROW]
[ROW][C]31[/C][C]0.126593682121304[/C][C]0.253187364242607[/C][C]0.873406317878696[/C][/ROW]
[ROW][C]32[/C][C]0.100344935163260[/C][C]0.200689870326521[/C][C]0.89965506483674[/C][/ROW]
[ROW][C]33[/C][C]0.065065180386309[/C][C]0.130130360772618[/C][C]0.934934819613691[/C][/ROW]
[ROW][C]34[/C][C]0.0377912551585088[/C][C]0.0755825103170175[/C][C]0.962208744841491[/C][/ROW]
[ROW][C]35[/C][C]0.022281210201172[/C][C]0.044562420402344[/C][C]0.977718789798828[/C][/ROW]
[ROW][C]36[/C][C]0.0211728285160158[/C][C]0.0423456570320317[/C][C]0.978827171483984[/C][/ROW]
[ROW][C]37[/C][C]0.0194530017455784[/C][C]0.0389060034911567[/C][C]0.980546998254422[/C][/ROW]
[ROW][C]38[/C][C]0.0166909044764902[/C][C]0.0333818089529804[/C][C]0.98330909552351[/C][/ROW]
[ROW][C]39[/C][C]0.0443883366874526[/C][C]0.0887766733749053[/C][C]0.955611663312547[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=62524&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=62524&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
190.1604720883129540.3209441766259080.839527911687046
200.08909158129436710.1781831625887340.910908418705633
210.1040430009236230.2080860018472450.895956999076377
220.1017784559094120.2035569118188250.898221544090588
230.06841079155635230.1368215831127050.931589208443648
240.06211174083611020.1242234816722200.93788825916389
250.0867907760113970.1735815520227940.913209223988603
260.04826925949876040.09653851899752090.95173074050124
270.07286199041091070.1457239808218210.92713800958909
280.1639026271871740.3278052543743490.836097372812826
290.1123191012525840.2246382025051680.887680898747416
300.09065704193708840.1813140838741770.909342958062912
310.1265936821213040.2531873642426070.873406317878696
320.1003449351632600.2006898703265210.89965506483674
330.0650651803863090.1301303607726180.934934819613691
340.03779125515850880.07558251031701750.962208744841491
350.0222812102011720.0445624204023440.977718789798828
360.02117282851601580.04234565703203170.978827171483984
370.01945300174557840.03890600349115670.980546998254422
380.01669090447649020.03338180895298040.98330909552351
390.04438833668745260.08877667337490530.955611663312547







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level40.190476190476190NOK
10% type I error level70.333333333333333NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=62524&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 level40.190476190476190NOK
10% type I error level70.333333333333333NOK



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