Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_multipleregression.wasp
Title produced by softwareMultiple Regression
Date of computationMon, 22 Dec 2008 09:20:36 -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/2008/Dec/22/t1229962912eh42f11cwbdwsxs.htm/, Retrieved Mon, 13 May 2024 03:50:11 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=36118, Retrieved Mon, 13 May 2024 03:50:11 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsmultiple lineair regression
Estimated Impact192
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
F     [Multiple Regression] [MLR] [2008-11-26 18:25:12] [3ffd109c9e040b1ae7e5dbe576d4698c]
- R P   [Multiple Regression] [Multiple Lineair ...] [2008-12-16 16:18:01] [3ffd109c9e040b1ae7e5dbe576d4698c]
-    D    [Multiple Regression] [] [2008-12-17 10:49:06] [3ffd109c9e040b1ae7e5dbe576d4698c]
-    D      [Multiple Regression] [multiple lineair ...] [2008-12-22 16:12:14] [3ffd109c9e040b1ae7e5dbe576d4698c]
-    D          [Multiple Regression] [multiple lineair ...] [2008-12-22 16:20:36] [962e6c9020896982bc8283b8971710a9] [Current]
Feedback Forum

Post a new message
Dataseries X:
147768	0	1	0
137507	0	2	0
136919	0	3	0
136151	0	4	0
133001	0	5	0
125554	0	6	0
119647	0	7	0
114158	0	8	0
116193	0	9	0
152803	0	10	0
161761	0	11	0
160942	0	12	0
149470	0	13	0
139208	0	14	0
134588	0	15	0
130322	0	16	0
126611	0	17	0
122401	0	18	0
117352	0	19	0
112135	0	20	0
112879	0	21	0
148729	0	22	0
157230	0	23	0
157221	0	24	0
146681	0	25	0
136524	0	26	0
132111	0	27	0
125326	1	0	28
122716	1	0	29
116615	1	0	30
113719	1	0	31
110737	1	0	32
112093	1	0	33
143565	1	0	34
149946	1	0	35
149147	1	0	36
134339	1	0	37
122683	1	0	38
115614	1	0	39
116566	1	0	40
111272	1	0	41
104609	1	0	42
101802	1	0	43
94542	1	0	44
93051	1	0	45
124129	1	0	46
130374	1	0	47
123946	1	0	48
114971	1	0	49
105531	1	0	50
104919	1	0	51
104782	0	52	0
101281	0	53	0
94545	0	54	0
93248	0	55	0
84031	0	56	0
87486	0	57	0
115867	0	58	0
120327	0	59	0
117008	0	60	0
108811	0	61	0




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36118&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] = + 166884.834688186 + 27255.1891332781d[t] -702.060280641744t1[t] -1348.48529483192t2[t] -11267.2704959925M1[t] -19865.6627950653M2[t] -22365.4325087475M3[t] -26708.4422905425M4[t] -29401.0120042247M5[t] -34671.7817179069M6[t] -37302.3514315891M7[t] -42374.7211452712M8[t] -40194.2908589534M9[t] -6555.46057263563M10[t] + 1314.16971368219M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
y[t] =  +  166884.834688186 +  27255.1891332781d[t] -702.060280641744t1[t] -1348.48529483192t2[t] -11267.2704959925M1[t] -19865.6627950653M2[t] -22365.4325087475M3[t] -26708.4422905425M4[t] -29401.0120042247M5[t] -34671.7817179069M6[t] -37302.3514315891M7[t] -42374.7211452712M8[t] -40194.2908589534M9[t] -6555.46057263563M10[t] +  1314.16971368219M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=36118&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]y[t] =  +  166884.834688186 +  27255.1891332781d[t] -702.060280641744t1[t] -1348.48529483192t2[t] -11267.2704959925M1[t] -19865.6627950653M2[t] -22365.4325087475M3[t] -26708.4422905425M4[t] -29401.0120042247M5[t] -34671.7817179069M6[t] -37302.3514315891M7[t] -42374.7211452712M8[t] -40194.2908589534M9[t] -6555.46057263563M10[t] +  1314.16971368219M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=36118&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36118&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] = + 166884.834688186 + 27255.1891332781d[t] -702.060280641744t1[t] -1348.48529483192t2[t] -11267.2704959925M1[t] -19865.6627950653M2[t] -22365.4325087475M3[t] -26708.4422905425M4[t] -29401.0120042247M5[t] -34671.7817179069M6[t] -37302.3514315891M7[t] -42374.7211452712M8[t] -40194.2908589534M9[t] -6555.46057263563M10[t] + 1314.16971368219M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)166884.8346881862205.56323675.665400
d27255.18913327815407.2111395.04058e-064e-06
t1-702.06028064174435.418691-19.821700
t2-1348.48529483192131.304157-10.269900
M1-11267.27049599252565.321932-4.39216.5e-053.3e-05
M2-19865.66279506532703.223909-7.348900
M3-22365.43250874752703.016071-8.274300
M4-26708.44229054252711.010209-9.851800
M5-29401.01200422472702.279503-10.880100
M6-34671.78171790692694.69001-12.866700
M7-37302.35143158912688.251396-13.876100
M8-42374.72114527122682.971946-15.793900
M9-40194.29085895342678.858514-15.004300
M10-6555.460572635632675.916477-2.44980.0181590.00908
M111314.169713682192674.1497010.49140.6254560.312728

\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) & 166884.834688186 & 2205.563236 & 75.6654 & 0 & 0 \tabularnewline
d & 27255.1891332781 & 5407.211139 & 5.0405 & 8e-06 & 4e-06 \tabularnewline
t1 & -702.060280641744 & 35.418691 & -19.8217 & 0 & 0 \tabularnewline
t2 & -1348.48529483192 & 131.304157 & -10.2699 & 0 & 0 \tabularnewline
M1 & -11267.2704959925 & 2565.321932 & -4.3921 & 6.5e-05 & 3.3e-05 \tabularnewline
M2 & -19865.6627950653 & 2703.223909 & -7.3489 & 0 & 0 \tabularnewline
M3 & -22365.4325087475 & 2703.016071 & -8.2743 & 0 & 0 \tabularnewline
M4 & -26708.4422905425 & 2711.010209 & -9.8518 & 0 & 0 \tabularnewline
M5 & -29401.0120042247 & 2702.279503 & -10.8801 & 0 & 0 \tabularnewline
M6 & -34671.7817179069 & 2694.69001 & -12.8667 & 0 & 0 \tabularnewline
M7 & -37302.3514315891 & 2688.251396 & -13.8761 & 0 & 0 \tabularnewline
M8 & -42374.7211452712 & 2682.971946 & -15.7939 & 0 & 0 \tabularnewline
M9 & -40194.2908589534 & 2678.858514 & -15.0043 & 0 & 0 \tabularnewline
M10 & -6555.46057263563 & 2675.916477 & -2.4498 & 0.018159 & 0.00908 \tabularnewline
M11 & 1314.16971368219 & 2674.149701 & 0.4914 & 0.625456 & 0.312728 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=36118&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]166884.834688186[/C][C]2205.563236[/C][C]75.6654[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]d[/C][C]27255.1891332781[/C][C]5407.211139[/C][C]5.0405[/C][C]8e-06[/C][C]4e-06[/C][/ROW]
[ROW][C]t1[/C][C]-702.060280641744[/C][C]35.418691[/C][C]-19.8217[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]t2[/C][C]-1348.48529483192[/C][C]131.304157[/C][C]-10.2699[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-11267.2704959925[/C][C]2565.321932[/C][C]-4.3921[/C][C]6.5e-05[/C][C]3.3e-05[/C][/ROW]
[ROW][C]M2[/C][C]-19865.6627950653[/C][C]2703.223909[/C][C]-7.3489[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M3[/C][C]-22365.4325087475[/C][C]2703.016071[/C][C]-8.2743[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M4[/C][C]-26708.4422905425[/C][C]2711.010209[/C][C]-9.8518[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M5[/C][C]-29401.0120042247[/C][C]2702.279503[/C][C]-10.8801[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M6[/C][C]-34671.7817179069[/C][C]2694.69001[/C][C]-12.8667[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M7[/C][C]-37302.3514315891[/C][C]2688.251396[/C][C]-13.8761[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]-42374.7211452712[/C][C]2682.971946[/C][C]-15.7939[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M9[/C][C]-40194.2908589534[/C][C]2678.858514[/C][C]-15.0043[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M10[/C][C]-6555.46057263563[/C][C]2675.916477[/C][C]-2.4498[/C][C]0.018159[/C][C]0.00908[/C][/ROW]
[ROW][C]M11[/C][C]1314.16971368219[/C][C]2674.149701[/C][C]0.4914[/C][C]0.625456[/C][C]0.312728[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=36118&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36118&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)166884.8346881862205.56323675.665400
d27255.18913327815407.2111395.04058e-064e-06
t1-702.06028064174435.418691-19.821700
t2-1348.48529483192131.304157-10.269900
M1-11267.27049599252565.321932-4.39216.5e-053.3e-05
M2-19865.66279506532703.223909-7.348900
M3-22365.43250874752703.016071-8.274300
M4-26708.44229054252711.010209-9.851800
M5-29401.01200422472702.279503-10.880100
M6-34671.78171790692694.69001-12.866700
M7-37302.35143158912688.251396-13.876100
M8-42374.72114527122682.971946-15.793900
M9-40194.29085895342678.858514-15.004300
M10-6555.460572635632675.916477-2.44980.0181590.00908
M111314.169713682192674.1497010.49140.6254560.312728







Multiple Linear Regression - Regression Statistics
Multiple R0.981063562928421
R-squared0.962485714505809
Adjusted R-squared0.951068323268446
F-TEST (value)84.2999678732339
F-TEST (DF numerator)14
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4227.27034708779
Sum Squared Residuals822011471.018915

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.981063562928421 \tabularnewline
R-squared & 0.962485714505809 \tabularnewline
Adjusted R-squared & 0.951068323268446 \tabularnewline
F-TEST (value) & 84.2999678732339 \tabularnewline
F-TEST (DF numerator) & 14 \tabularnewline
F-TEST (DF denominator) & 46 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 4227.27034708779 \tabularnewline
Sum Squared Residuals & 822011471.018915 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=36118&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.981063562928421[/C][/ROW]
[ROW][C]R-squared[/C][C]0.962485714505809[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.951068323268446[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]84.2999678732339[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]14[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]46[/C][/ROW]
[ROW][C]p-value[/C][C]0[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]4227.27034708779[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]822011471.018915[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=36118&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36118&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.981063562928421
R-squared0.962485714505809
Adjusted R-squared0.951068323268446
F-TEST (value)84.2999678732339
F-TEST (DF numerator)14
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4227.27034708779
Sum Squared Residuals822011471.018915







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1147768154915.503911552-7147.50391155166
2137507145615.051331838-8108.05133183763
3136919142413.221337514-5494.2213375137
4136151137368.151275077-1217.15127507692
5133001133973.521280753-972.521280752997
6125554128000.691286429-2446.69128642905
7119647124668.061292105-5021.06129210516
8114158118893.631297781-4735.63129778118
9116193120372.001303457-4179.00130345726
10152803153308.771309133-505.771309133354
11161761160476.3413148091284.6586851906
12160942158460.1113204852481.88867951452
13149470146490.7805438512979.21945614880
14139208137190.3279641372017.67203586331
15134588133988.497969813599.502030187242
16130322128943.4279073761378.57209262399
17126611125548.7979130521062.20208694792
18122401119575.9679187282825.03208127186
19117352116243.3379244041108.66207559580
20112135110468.9079300801666.09206991971
21112879111947.277935756931.72206424365
22148729144884.0479414323844.95205856758
23157230152051.6179471085178.38205289151
24157221150035.3879527857185.61204721544
25146681138066.0571761508614.9428238497
26136524128765.6045964367758.39540356423
27132111125563.7746021126547.22539788817
28125326129673.993275628-4347.99327562840
29122716125632.938267114-2916.93826711431
30116615119013.683258600-2398.68325860021
31113719115034.628250086-1315.62825008609
32110737108613.7732415722123.22675842801
33112093109445.7182330582647.28176694211
34143565141736.0632245441828.93677545621
35149946148257.2082160301688.79178397031
36149147145594.5532075163552.44679248442
37134339132978.7974166911360.20258330885
38122683123031.919822786-348.919822786452
39115614119183.664814272-3569.66481427235
40116566113492.1697376453073.83026235457
41111272109451.1147291311820.88527086868
42104609102831.8597206171777.14027938278
4310180298852.80471210312949.19528789689
449454292431.9497035892110.05029641099
459305193263.8946950749-212.894695074905
46124129125554.239686561-1425.23968656080
47130374132075.384678047-1701.38467804670
48123946129412.729669533-5466.72966953259
49114971116796.973878708-1825.97387870816
50105531106850.096284803-1319.09628480345
51104919103001.8412762891917.15872371064
52104782103669.2578042731112.74219572676
53101281100274.6278099491006.37219005070
549454594301.7978156254243.202184374625
559324890969.16782130142278.83217869856
568403185194.7378269775-1163.73782697752
578748686673.1078326536812.892167346413
58115867119609.877838330-3742.87783832964
59120327126777.447844006-6450.44784400572
60117008124761.217849682-7753.21784968179
61108811112791.887073048-3980.88707304753

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 147768 & 154915.503911552 & -7147.50391155166 \tabularnewline
2 & 137507 & 145615.051331838 & -8108.05133183763 \tabularnewline
3 & 136919 & 142413.221337514 & -5494.2213375137 \tabularnewline
4 & 136151 & 137368.151275077 & -1217.15127507692 \tabularnewline
5 & 133001 & 133973.521280753 & -972.521280752997 \tabularnewline
6 & 125554 & 128000.691286429 & -2446.69128642905 \tabularnewline
7 & 119647 & 124668.061292105 & -5021.06129210516 \tabularnewline
8 & 114158 & 118893.631297781 & -4735.63129778118 \tabularnewline
9 & 116193 & 120372.001303457 & -4179.00130345726 \tabularnewline
10 & 152803 & 153308.771309133 & -505.771309133354 \tabularnewline
11 & 161761 & 160476.341314809 & 1284.6586851906 \tabularnewline
12 & 160942 & 158460.111320485 & 2481.88867951452 \tabularnewline
13 & 149470 & 146490.780543851 & 2979.21945614880 \tabularnewline
14 & 139208 & 137190.327964137 & 2017.67203586331 \tabularnewline
15 & 134588 & 133988.497969813 & 599.502030187242 \tabularnewline
16 & 130322 & 128943.427907376 & 1378.57209262399 \tabularnewline
17 & 126611 & 125548.797913052 & 1062.20208694792 \tabularnewline
18 & 122401 & 119575.967918728 & 2825.03208127186 \tabularnewline
19 & 117352 & 116243.337924404 & 1108.66207559580 \tabularnewline
20 & 112135 & 110468.907930080 & 1666.09206991971 \tabularnewline
21 & 112879 & 111947.277935756 & 931.72206424365 \tabularnewline
22 & 148729 & 144884.047941432 & 3844.95205856758 \tabularnewline
23 & 157230 & 152051.617947108 & 5178.38205289151 \tabularnewline
24 & 157221 & 150035.387952785 & 7185.61204721544 \tabularnewline
25 & 146681 & 138066.057176150 & 8614.9428238497 \tabularnewline
26 & 136524 & 128765.604596436 & 7758.39540356423 \tabularnewline
27 & 132111 & 125563.774602112 & 6547.22539788817 \tabularnewline
28 & 125326 & 129673.993275628 & -4347.99327562840 \tabularnewline
29 & 122716 & 125632.938267114 & -2916.93826711431 \tabularnewline
30 & 116615 & 119013.683258600 & -2398.68325860021 \tabularnewline
31 & 113719 & 115034.628250086 & -1315.62825008609 \tabularnewline
32 & 110737 & 108613.773241572 & 2123.22675842801 \tabularnewline
33 & 112093 & 109445.718233058 & 2647.28176694211 \tabularnewline
34 & 143565 & 141736.063224544 & 1828.93677545621 \tabularnewline
35 & 149946 & 148257.208216030 & 1688.79178397031 \tabularnewline
36 & 149147 & 145594.553207516 & 3552.44679248442 \tabularnewline
37 & 134339 & 132978.797416691 & 1360.20258330885 \tabularnewline
38 & 122683 & 123031.919822786 & -348.919822786452 \tabularnewline
39 & 115614 & 119183.664814272 & -3569.66481427235 \tabularnewline
40 & 116566 & 113492.169737645 & 3073.83026235457 \tabularnewline
41 & 111272 & 109451.114729131 & 1820.88527086868 \tabularnewline
42 & 104609 & 102831.859720617 & 1777.14027938278 \tabularnewline
43 & 101802 & 98852.8047121031 & 2949.19528789689 \tabularnewline
44 & 94542 & 92431.949703589 & 2110.05029641099 \tabularnewline
45 & 93051 & 93263.8946950749 & -212.894695074905 \tabularnewline
46 & 124129 & 125554.239686561 & -1425.23968656080 \tabularnewline
47 & 130374 & 132075.384678047 & -1701.38467804670 \tabularnewline
48 & 123946 & 129412.729669533 & -5466.72966953259 \tabularnewline
49 & 114971 & 116796.973878708 & -1825.97387870816 \tabularnewline
50 & 105531 & 106850.096284803 & -1319.09628480345 \tabularnewline
51 & 104919 & 103001.841276289 & 1917.15872371064 \tabularnewline
52 & 104782 & 103669.257804273 & 1112.74219572676 \tabularnewline
53 & 101281 & 100274.627809949 & 1006.37219005070 \tabularnewline
54 & 94545 & 94301.7978156254 & 243.202184374625 \tabularnewline
55 & 93248 & 90969.1678213014 & 2278.83217869856 \tabularnewline
56 & 84031 & 85194.7378269775 & -1163.73782697752 \tabularnewline
57 & 87486 & 86673.1078326536 & 812.892167346413 \tabularnewline
58 & 115867 & 119609.877838330 & -3742.87783832964 \tabularnewline
59 & 120327 & 126777.447844006 & -6450.44784400572 \tabularnewline
60 & 117008 & 124761.217849682 & -7753.21784968179 \tabularnewline
61 & 108811 & 112791.887073048 & -3980.88707304753 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=36118&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]147768[/C][C]154915.503911552[/C][C]-7147.50391155166[/C][/ROW]
[ROW][C]2[/C][C]137507[/C][C]145615.051331838[/C][C]-8108.05133183763[/C][/ROW]
[ROW][C]3[/C][C]136919[/C][C]142413.221337514[/C][C]-5494.2213375137[/C][/ROW]
[ROW][C]4[/C][C]136151[/C][C]137368.151275077[/C][C]-1217.15127507692[/C][/ROW]
[ROW][C]5[/C][C]133001[/C][C]133973.521280753[/C][C]-972.521280752997[/C][/ROW]
[ROW][C]6[/C][C]125554[/C][C]128000.691286429[/C][C]-2446.69128642905[/C][/ROW]
[ROW][C]7[/C][C]119647[/C][C]124668.061292105[/C][C]-5021.06129210516[/C][/ROW]
[ROW][C]8[/C][C]114158[/C][C]118893.631297781[/C][C]-4735.63129778118[/C][/ROW]
[ROW][C]9[/C][C]116193[/C][C]120372.001303457[/C][C]-4179.00130345726[/C][/ROW]
[ROW][C]10[/C][C]152803[/C][C]153308.771309133[/C][C]-505.771309133354[/C][/ROW]
[ROW][C]11[/C][C]161761[/C][C]160476.341314809[/C][C]1284.6586851906[/C][/ROW]
[ROW][C]12[/C][C]160942[/C][C]158460.111320485[/C][C]2481.88867951452[/C][/ROW]
[ROW][C]13[/C][C]149470[/C][C]146490.780543851[/C][C]2979.21945614880[/C][/ROW]
[ROW][C]14[/C][C]139208[/C][C]137190.327964137[/C][C]2017.67203586331[/C][/ROW]
[ROW][C]15[/C][C]134588[/C][C]133988.497969813[/C][C]599.502030187242[/C][/ROW]
[ROW][C]16[/C][C]130322[/C][C]128943.427907376[/C][C]1378.57209262399[/C][/ROW]
[ROW][C]17[/C][C]126611[/C][C]125548.797913052[/C][C]1062.20208694792[/C][/ROW]
[ROW][C]18[/C][C]122401[/C][C]119575.967918728[/C][C]2825.03208127186[/C][/ROW]
[ROW][C]19[/C][C]117352[/C][C]116243.337924404[/C][C]1108.66207559580[/C][/ROW]
[ROW][C]20[/C][C]112135[/C][C]110468.907930080[/C][C]1666.09206991971[/C][/ROW]
[ROW][C]21[/C][C]112879[/C][C]111947.277935756[/C][C]931.72206424365[/C][/ROW]
[ROW][C]22[/C][C]148729[/C][C]144884.047941432[/C][C]3844.95205856758[/C][/ROW]
[ROW][C]23[/C][C]157230[/C][C]152051.617947108[/C][C]5178.38205289151[/C][/ROW]
[ROW][C]24[/C][C]157221[/C][C]150035.387952785[/C][C]7185.61204721544[/C][/ROW]
[ROW][C]25[/C][C]146681[/C][C]138066.057176150[/C][C]8614.9428238497[/C][/ROW]
[ROW][C]26[/C][C]136524[/C][C]128765.604596436[/C][C]7758.39540356423[/C][/ROW]
[ROW][C]27[/C][C]132111[/C][C]125563.774602112[/C][C]6547.22539788817[/C][/ROW]
[ROW][C]28[/C][C]125326[/C][C]129673.993275628[/C][C]-4347.99327562840[/C][/ROW]
[ROW][C]29[/C][C]122716[/C][C]125632.938267114[/C][C]-2916.93826711431[/C][/ROW]
[ROW][C]30[/C][C]116615[/C][C]119013.683258600[/C][C]-2398.68325860021[/C][/ROW]
[ROW][C]31[/C][C]113719[/C][C]115034.628250086[/C][C]-1315.62825008609[/C][/ROW]
[ROW][C]32[/C][C]110737[/C][C]108613.773241572[/C][C]2123.22675842801[/C][/ROW]
[ROW][C]33[/C][C]112093[/C][C]109445.718233058[/C][C]2647.28176694211[/C][/ROW]
[ROW][C]34[/C][C]143565[/C][C]141736.063224544[/C][C]1828.93677545621[/C][/ROW]
[ROW][C]35[/C][C]149946[/C][C]148257.208216030[/C][C]1688.79178397031[/C][/ROW]
[ROW][C]36[/C][C]149147[/C][C]145594.553207516[/C][C]3552.44679248442[/C][/ROW]
[ROW][C]37[/C][C]134339[/C][C]132978.797416691[/C][C]1360.20258330885[/C][/ROW]
[ROW][C]38[/C][C]122683[/C][C]123031.919822786[/C][C]-348.919822786452[/C][/ROW]
[ROW][C]39[/C][C]115614[/C][C]119183.664814272[/C][C]-3569.66481427235[/C][/ROW]
[ROW][C]40[/C][C]116566[/C][C]113492.169737645[/C][C]3073.83026235457[/C][/ROW]
[ROW][C]41[/C][C]111272[/C][C]109451.114729131[/C][C]1820.88527086868[/C][/ROW]
[ROW][C]42[/C][C]104609[/C][C]102831.859720617[/C][C]1777.14027938278[/C][/ROW]
[ROW][C]43[/C][C]101802[/C][C]98852.8047121031[/C][C]2949.19528789689[/C][/ROW]
[ROW][C]44[/C][C]94542[/C][C]92431.949703589[/C][C]2110.05029641099[/C][/ROW]
[ROW][C]45[/C][C]93051[/C][C]93263.8946950749[/C][C]-212.894695074905[/C][/ROW]
[ROW][C]46[/C][C]124129[/C][C]125554.239686561[/C][C]-1425.23968656080[/C][/ROW]
[ROW][C]47[/C][C]130374[/C][C]132075.384678047[/C][C]-1701.38467804670[/C][/ROW]
[ROW][C]48[/C][C]123946[/C][C]129412.729669533[/C][C]-5466.72966953259[/C][/ROW]
[ROW][C]49[/C][C]114971[/C][C]116796.973878708[/C][C]-1825.97387870816[/C][/ROW]
[ROW][C]50[/C][C]105531[/C][C]106850.096284803[/C][C]-1319.09628480345[/C][/ROW]
[ROW][C]51[/C][C]104919[/C][C]103001.841276289[/C][C]1917.15872371064[/C][/ROW]
[ROW][C]52[/C][C]104782[/C][C]103669.257804273[/C][C]1112.74219572676[/C][/ROW]
[ROW][C]53[/C][C]101281[/C][C]100274.627809949[/C][C]1006.37219005070[/C][/ROW]
[ROW][C]54[/C][C]94545[/C][C]94301.7978156254[/C][C]243.202184374625[/C][/ROW]
[ROW][C]55[/C][C]93248[/C][C]90969.1678213014[/C][C]2278.83217869856[/C][/ROW]
[ROW][C]56[/C][C]84031[/C][C]85194.7378269775[/C][C]-1163.73782697752[/C][/ROW]
[ROW][C]57[/C][C]87486[/C][C]86673.1078326536[/C][C]812.892167346413[/C][/ROW]
[ROW][C]58[/C][C]115867[/C][C]119609.877838330[/C][C]-3742.87783832964[/C][/ROW]
[ROW][C]59[/C][C]120327[/C][C]126777.447844006[/C][C]-6450.44784400572[/C][/ROW]
[ROW][C]60[/C][C]117008[/C][C]124761.217849682[/C][C]-7753.21784968179[/C][/ROW]
[ROW][C]61[/C][C]108811[/C][C]112791.887073048[/C][C]-3980.88707304753[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=36118&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36118&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
1147768154915.503911552-7147.50391155166
2137507145615.051331838-8108.05133183763
3136919142413.221337514-5494.2213375137
4136151137368.151275077-1217.15127507692
5133001133973.521280753-972.521280752997
6125554128000.691286429-2446.69128642905
7119647124668.061292105-5021.06129210516
8114158118893.631297781-4735.63129778118
9116193120372.001303457-4179.00130345726
10152803153308.771309133-505.771309133354
11161761160476.3413148091284.6586851906
12160942158460.1113204852481.88867951452
13149470146490.7805438512979.21945614880
14139208137190.3279641372017.67203586331
15134588133988.497969813599.502030187242
16130322128943.4279073761378.57209262399
17126611125548.7979130521062.20208694792
18122401119575.9679187282825.03208127186
19117352116243.3379244041108.66207559580
20112135110468.9079300801666.09206991971
21112879111947.277935756931.72206424365
22148729144884.0479414323844.95205856758
23157230152051.6179471085178.38205289151
24157221150035.3879527857185.61204721544
25146681138066.0571761508614.9428238497
26136524128765.6045964367758.39540356423
27132111125563.7746021126547.22539788817
28125326129673.993275628-4347.99327562840
29122716125632.938267114-2916.93826711431
30116615119013.683258600-2398.68325860021
31113719115034.628250086-1315.62825008609
32110737108613.7732415722123.22675842801
33112093109445.7182330582647.28176694211
34143565141736.0632245441828.93677545621
35149946148257.2082160301688.79178397031
36149147145594.5532075163552.44679248442
37134339132978.7974166911360.20258330885
38122683123031.919822786-348.919822786452
39115614119183.664814272-3569.66481427235
40116566113492.1697376453073.83026235457
41111272109451.1147291311820.88527086868
42104609102831.8597206171777.14027938278
4310180298852.80471210312949.19528789689
449454292431.9497035892110.05029641099
459305193263.8946950749-212.894695074905
46124129125554.239686561-1425.23968656080
47130374132075.384678047-1701.38467804670
48123946129412.729669533-5466.72966953259
49114971116796.973878708-1825.97387870816
50105531106850.096284803-1319.09628480345
51104919103001.8412762891917.15872371064
52104782103669.2578042731112.74219572676
53101281100274.6278099491006.37219005070
549454594301.7978156254243.202184374625
559324890969.16782130142278.83217869856
568403185194.7378269775-1163.73782697752
578748686673.1078326536812.892167346413
58115867119609.877838330-3742.87783832964
59120327126777.447844006-6450.44784400572
60117008124761.217849682-7753.21784968179
61108811112791.887073048-3980.88707304753







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
180.5519253603683380.8961492792633240.448074639631662
190.4255927743230830.8511855486461650.574407225676917
200.3348100662090410.6696201324180830.665189933790959
210.3374975609544250.6749951219088490.662502439045575
220.2852313079357730.5704626158715460.714768692064227
230.2272800135245980.4545600270491960.772719986475402
240.1493876346216350.2987752692432710.850612365378365
250.1134401109985980.2268802219971960.886559889001402
260.07979023483649340.1595804696729870.920209765163507
270.06530809452194180.1306161890438840.934691905478058
280.06196378442484420.1239275688496880.938036215575156
290.05407400538514850.1081480107702970.945925994614851
300.05290038969175030.1058007793835010.94709961030825
310.1056417615490890.2112835230981770.894358238450911
320.079191629193610.158383258387220.92080837080639
330.05119756140693310.1023951228138660.948802438593067
340.08997202698213930.1799440539642790.91002797301786
350.1405198398883280.2810396797766560.859480160111672
360.6259103693348760.7481792613302480.374089630665124
370.824557237639050.3508855247219000.175442762360950
380.964476709282280.07104658143543840.0355232907177192
390.9525507975569230.0948984048861550.0474492024430775
400.9183978752596290.1632042494807420.0816021247403712
410.8420374612776130.3159250774447740.157962538722387
420.7246918217942340.5506163564115330.275308178205766
430.5717907102339880.8564185795320240.428209289766012

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
18 & 0.551925360368338 & 0.896149279263324 & 0.448074639631662 \tabularnewline
19 & 0.425592774323083 & 0.851185548646165 & 0.574407225676917 \tabularnewline
20 & 0.334810066209041 & 0.669620132418083 & 0.665189933790959 \tabularnewline
21 & 0.337497560954425 & 0.674995121908849 & 0.662502439045575 \tabularnewline
22 & 0.285231307935773 & 0.570462615871546 & 0.714768692064227 \tabularnewline
23 & 0.227280013524598 & 0.454560027049196 & 0.772719986475402 \tabularnewline
24 & 0.149387634621635 & 0.298775269243271 & 0.850612365378365 \tabularnewline
25 & 0.113440110998598 & 0.226880221997196 & 0.886559889001402 \tabularnewline
26 & 0.0797902348364934 & 0.159580469672987 & 0.920209765163507 \tabularnewline
27 & 0.0653080945219418 & 0.130616189043884 & 0.934691905478058 \tabularnewline
28 & 0.0619637844248442 & 0.123927568849688 & 0.938036215575156 \tabularnewline
29 & 0.0540740053851485 & 0.108148010770297 & 0.945925994614851 \tabularnewline
30 & 0.0529003896917503 & 0.105800779383501 & 0.94709961030825 \tabularnewline
31 & 0.105641761549089 & 0.211283523098177 & 0.894358238450911 \tabularnewline
32 & 0.07919162919361 & 0.15838325838722 & 0.92080837080639 \tabularnewline
33 & 0.0511975614069331 & 0.102395122813866 & 0.948802438593067 \tabularnewline
34 & 0.0899720269821393 & 0.179944053964279 & 0.91002797301786 \tabularnewline
35 & 0.140519839888328 & 0.281039679776656 & 0.859480160111672 \tabularnewline
36 & 0.625910369334876 & 0.748179261330248 & 0.374089630665124 \tabularnewline
37 & 0.82455723763905 & 0.350885524721900 & 0.175442762360950 \tabularnewline
38 & 0.96447670928228 & 0.0710465814354384 & 0.0355232907177192 \tabularnewline
39 & 0.952550797556923 & 0.094898404886155 & 0.0474492024430775 \tabularnewline
40 & 0.918397875259629 & 0.163204249480742 & 0.0816021247403712 \tabularnewline
41 & 0.842037461277613 & 0.315925077444774 & 0.157962538722387 \tabularnewline
42 & 0.724691821794234 & 0.550616356411533 & 0.275308178205766 \tabularnewline
43 & 0.571790710233988 & 0.856418579532024 & 0.428209289766012 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=36118&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.551925360368338[/C][C]0.896149279263324[/C][C]0.448074639631662[/C][/ROW]
[ROW][C]19[/C][C]0.425592774323083[/C][C]0.851185548646165[/C][C]0.574407225676917[/C][/ROW]
[ROW][C]20[/C][C]0.334810066209041[/C][C]0.669620132418083[/C][C]0.665189933790959[/C][/ROW]
[ROW][C]21[/C][C]0.337497560954425[/C][C]0.674995121908849[/C][C]0.662502439045575[/C][/ROW]
[ROW][C]22[/C][C]0.285231307935773[/C][C]0.570462615871546[/C][C]0.714768692064227[/C][/ROW]
[ROW][C]23[/C][C]0.227280013524598[/C][C]0.454560027049196[/C][C]0.772719986475402[/C][/ROW]
[ROW][C]24[/C][C]0.149387634621635[/C][C]0.298775269243271[/C][C]0.850612365378365[/C][/ROW]
[ROW][C]25[/C][C]0.113440110998598[/C][C]0.226880221997196[/C][C]0.886559889001402[/C][/ROW]
[ROW][C]26[/C][C]0.0797902348364934[/C][C]0.159580469672987[/C][C]0.920209765163507[/C][/ROW]
[ROW][C]27[/C][C]0.0653080945219418[/C][C]0.130616189043884[/C][C]0.934691905478058[/C][/ROW]
[ROW][C]28[/C][C]0.0619637844248442[/C][C]0.123927568849688[/C][C]0.938036215575156[/C][/ROW]
[ROW][C]29[/C][C]0.0540740053851485[/C][C]0.108148010770297[/C][C]0.945925994614851[/C][/ROW]
[ROW][C]30[/C][C]0.0529003896917503[/C][C]0.105800779383501[/C][C]0.94709961030825[/C][/ROW]
[ROW][C]31[/C][C]0.105641761549089[/C][C]0.211283523098177[/C][C]0.894358238450911[/C][/ROW]
[ROW][C]32[/C][C]0.07919162919361[/C][C]0.15838325838722[/C][C]0.92080837080639[/C][/ROW]
[ROW][C]33[/C][C]0.0511975614069331[/C][C]0.102395122813866[/C][C]0.948802438593067[/C][/ROW]
[ROW][C]34[/C][C]0.0899720269821393[/C][C]0.179944053964279[/C][C]0.91002797301786[/C][/ROW]
[ROW][C]35[/C][C]0.140519839888328[/C][C]0.281039679776656[/C][C]0.859480160111672[/C][/ROW]
[ROW][C]36[/C][C]0.625910369334876[/C][C]0.748179261330248[/C][C]0.374089630665124[/C][/ROW]
[ROW][C]37[/C][C]0.82455723763905[/C][C]0.350885524721900[/C][C]0.175442762360950[/C][/ROW]
[ROW][C]38[/C][C]0.96447670928228[/C][C]0.0710465814354384[/C][C]0.0355232907177192[/C][/ROW]
[ROW][C]39[/C][C]0.952550797556923[/C][C]0.094898404886155[/C][C]0.0474492024430775[/C][/ROW]
[ROW][C]40[/C][C]0.918397875259629[/C][C]0.163204249480742[/C][C]0.0816021247403712[/C][/ROW]
[ROW][C]41[/C][C]0.842037461277613[/C][C]0.315925077444774[/C][C]0.157962538722387[/C][/ROW]
[ROW][C]42[/C][C]0.724691821794234[/C][C]0.550616356411533[/C][C]0.275308178205766[/C][/ROW]
[ROW][C]43[/C][C]0.571790710233988[/C][C]0.856418579532024[/C][C]0.428209289766012[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=36118&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36118&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.5519253603683380.8961492792633240.448074639631662
190.4255927743230830.8511855486461650.574407225676917
200.3348100662090410.6696201324180830.665189933790959
210.3374975609544250.6749951219088490.662502439045575
220.2852313079357730.5704626158715460.714768692064227
230.2272800135245980.4545600270491960.772719986475402
240.1493876346216350.2987752692432710.850612365378365
250.1134401109985980.2268802219971960.886559889001402
260.07979023483649340.1595804696729870.920209765163507
270.06530809452194180.1306161890438840.934691905478058
280.06196378442484420.1239275688496880.938036215575156
290.05407400538514850.1081480107702970.945925994614851
300.05290038969175030.1058007793835010.94709961030825
310.1056417615490890.2112835230981770.894358238450911
320.079191629193610.158383258387220.92080837080639
330.05119756140693310.1023951228138660.948802438593067
340.08997202698213930.1799440539642790.91002797301786
350.1405198398883280.2810396797766560.859480160111672
360.6259103693348760.7481792613302480.374089630665124
370.824557237639050.3508855247219000.175442762360950
380.964476709282280.07104658143543840.0355232907177192
390.9525507975569230.0948984048861550.0474492024430775
400.9183978752596290.1632042494807420.0816021247403712
410.8420374612776130.3159250774447740.157962538722387
420.7246918217942340.5506163564115330.275308178205766
430.5717907102339880.8564185795320240.428209289766012







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

\begin{tabular}{lllllllll}
\hline
Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
Description & # significant tests & % significant tests & OK/NOK \tabularnewline
1% type I error level & 0 & 0 & OK \tabularnewline
5% type I error level & 0 & 0 & OK \tabularnewline
10% type I error level & 2 & 0.0769230769230769 & OK \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=36118&T=6

[TABLE]
[ROW][C]Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]Description[/C][C]# significant tests[/C][C]% significant tests[/C][C]OK/NOK[/C][/ROW]
[ROW][C]1% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]5% type I error level[/C][C]0[/C][C]0[/C][C]OK[/C][/ROW]
[ROW][C]10% type I error level[/C][C]2[/C][C]0.0769230769230769[/C][C]OK[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=36118&T=6

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

As an alternative you can also use a QR Code:  

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

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



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