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:12:14 -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/t1229962377wt8wih6tkevsfqd.htm/, Retrieved Sun, 12 May 2024 13:49:29 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=36115, Retrieved Sun, 12 May 2024 13:49:29 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywordsmultiple lineair regression
Estimated Impact191
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] [962e6c9020896982bc8283b8971710a9] [Current]
-    D          [Multiple Regression] [multiple lineair ...] [2008-12-22 16:20:36] [3ffd109c9e040b1ae7e5dbe576d4698c]
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	0	27
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	51	0
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=36115&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=36115&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36115&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] = + 167775.447764236 + 5022.89079155974d[t] -747.243478626984t1[t] -820.519600667931t2[t] -11561.5724413985M1[t] -20776.0138886371M2[t] -23811.5853469903M3[t] -25235.8314195469M4[t] -28112.4774921035M5[t] -33567.3235646602M6[t] -36381.9696372168M7[t] -41638.4157097735M8[t] -39642.0617823301M9[t] -6187.30785488673M10[t] + 1498.24607255662M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
y[t] =  +  167775.447764236 +  5022.89079155974d[t] -747.243478626984t1[t] -820.519600667931t2[t] -11561.5724413985M1[t] -20776.0138886371M2[t] -23811.5853469903M3[t] -25235.8314195469M4[t] -28112.4774921035M5[t] -33567.3235646602M6[t] -36381.9696372168M7[t] -41638.4157097735M8[t] -39642.0617823301M9[t] -6187.30785488673M10[t] +  1498.24607255662M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=36115&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]y[t] =  +  167775.447764236 +  5022.89079155974d[t] -747.243478626984t1[t] -820.519600667931t2[t] -11561.5724413985M1[t] -20776.0138886371M2[t] -23811.5853469903M3[t] -25235.8314195469M4[t] -28112.4774921035M5[t] -33567.3235646602M6[t] -36381.9696372168M7[t] -41638.4157097735M8[t] -39642.0617823301M9[t] -6187.30785488673M10[t] +  1498.24607255662M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=36115&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36115&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] = + 167775.447764236 + 5022.89079155974d[t] -747.243478626984t1[t] -820.519600667931t2[t] -11561.5724413985M1[t] -20776.0138886371M2[t] -23811.5853469903M3[t] -25235.8314195469M4[t] -28112.4774921035M5[t] -33567.3235646602M6[t] -36381.9696372168M7[t] -41638.4157097735M8[t] -39642.0617823301M9[t] -6187.30785488673M10[t] + 1498.24607255662M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)167775.4477642362663.43545162.992100
d5022.890791559743658.9584051.37280.1764810.088241
t1-747.24347862698441.205036-18.134800
t2-820.51960066793198.59321-8.322300
M1-11561.57244139853103.75551-3.7250.0005320.000266
M2-20776.01388863713263.347959-6.366500
M3-23811.58534699033271.17637-7.279200
M4-25235.83141954693263.76329-7.732100
M5-28112.47749210353257.208326-8.630900
M6-33567.32356466023251.516668-10.323600
M7-36381.96963721683246.692857-11.205900
M8-41638.41570977353242.740765-12.840500
M9-39642.06178233013239.663582-12.236500
M10-6187.307854886733237.463804-1.91120.0622270.031113
M111498.246072556623236.1432190.4630.6455670.322783

\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) & 167775.447764236 & 2663.435451 & 62.9921 & 0 & 0 \tabularnewline
d & 5022.89079155974 & 3658.958405 & 1.3728 & 0.176481 & 0.088241 \tabularnewline
t1 & -747.243478626984 & 41.205036 & -18.1348 & 0 & 0 \tabularnewline
t2 & -820.519600667931 & 98.59321 & -8.3223 & 0 & 0 \tabularnewline
M1 & -11561.5724413985 & 3103.75551 & -3.725 & 0.000532 & 0.000266 \tabularnewline
M2 & -20776.0138886371 & 3263.347959 & -6.3665 & 0 & 0 \tabularnewline
M3 & -23811.5853469903 & 3271.17637 & -7.2792 & 0 & 0 \tabularnewline
M4 & -25235.8314195469 & 3263.76329 & -7.7321 & 0 & 0 \tabularnewline
M5 & -28112.4774921035 & 3257.208326 & -8.6309 & 0 & 0 \tabularnewline
M6 & -33567.3235646602 & 3251.516668 & -10.3236 & 0 & 0 \tabularnewline
M7 & -36381.9696372168 & 3246.692857 & -11.2059 & 0 & 0 \tabularnewline
M8 & -41638.4157097735 & 3242.740765 & -12.8405 & 0 & 0 \tabularnewline
M9 & -39642.0617823301 & 3239.663582 & -12.2365 & 0 & 0 \tabularnewline
M10 & -6187.30785488673 & 3237.463804 & -1.9112 & 0.062227 & 0.031113 \tabularnewline
M11 & 1498.24607255662 & 3236.143219 & 0.463 & 0.645567 & 0.322783 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=36115&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]167775.447764236[/C][C]2663.435451[/C][C]62.9921[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]d[/C][C]5022.89079155974[/C][C]3658.958405[/C][C]1.3728[/C][C]0.176481[/C][C]0.088241[/C][/ROW]
[ROW][C]t1[/C][C]-747.243478626984[/C][C]41.205036[/C][C]-18.1348[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]t2[/C][C]-820.519600667931[/C][C]98.59321[/C][C]-8.3223[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]-11561.5724413985[/C][C]3103.75551[/C][C]-3.725[/C][C]0.000532[/C][C]0.000266[/C][/ROW]
[ROW][C]M2[/C][C]-20776.0138886371[/C][C]3263.347959[/C][C]-6.3665[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M3[/C][C]-23811.5853469903[/C][C]3271.17637[/C][C]-7.2792[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M4[/C][C]-25235.8314195469[/C][C]3263.76329[/C][C]-7.7321[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M5[/C][C]-28112.4774921035[/C][C]3257.208326[/C][C]-8.6309[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M6[/C][C]-33567.3235646602[/C][C]3251.516668[/C][C]-10.3236[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M7[/C][C]-36381.9696372168[/C][C]3246.692857[/C][C]-11.2059[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]-41638.4157097735[/C][C]3242.740765[/C][C]-12.8405[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M9[/C][C]-39642.0617823301[/C][C]3239.663582[/C][C]-12.2365[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M10[/C][C]-6187.30785488673[/C][C]3237.463804[/C][C]-1.9112[/C][C]0.062227[/C][C]0.031113[/C][/ROW]
[ROW][C]M11[/C][C]1498.24607255662[/C][C]3236.143219[/C][C]0.463[/C][C]0.645567[/C][C]0.322783[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=36115&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36115&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)167775.4477642362663.43545162.992100
d5022.890791559743658.9584051.37280.1764810.088241
t1-747.24347862698441.205036-18.134800
t2-820.51960066793198.59321-8.322300
M1-11561.57244139853103.75551-3.7250.0005320.000266
M2-20776.01388863713263.347959-6.366500
M3-23811.58534699033271.17637-7.279200
M4-25235.83141954693263.76329-7.732100
M5-28112.47749210353257.208326-8.630900
M6-33567.32356466023251.516668-10.323600
M7-36381.96963721683246.692857-11.205900
M8-41638.41570977353242.740765-12.840500
M9-39642.06178233013239.663582-12.236500
M10-6187.307854886733237.463804-1.91120.0622270.031113
M111498.246072556623236.1432190.4630.6455670.322783







Multiple Linear Regression - Regression Statistics
Multiple R0.972137718251645
R-squared0.945051743247514
Adjusted R-squared0.928328360757627
F-TEST (value)56.510801198203
F-TEST (DF numerator)14
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5116.09550432729
Sum Squared Residuals1204023927.63231

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.972137718251645 \tabularnewline
R-squared & 0.945051743247514 \tabularnewline
Adjusted R-squared & 0.928328360757627 \tabularnewline
F-TEST (value) & 56.510801198203 \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 & 5116.09550432729 \tabularnewline
Sum Squared Residuals & 1204023927.63231 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=36115&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.972137718251645[/C][/ROW]
[ROW][C]R-squared[/C][C]0.945051743247514[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.928328360757627[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]56.510801198203[/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]5116.09550432729[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1204023927.63231[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=36115&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36115&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.972137718251645
R-squared0.945051743247514
Adjusted R-squared0.928328360757627
F-TEST (value)56.510801198203
F-TEST (DF numerator)14
F-TEST (DF denominator)46
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation5116.09550432729
Sum Squared Residuals1204023927.63231







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1147768155466.631844209-7698.63184420943
2137507145504.946918344-7997.94691834445
3136919141722.131981364-4803.1319813643
4136151139550.642430181-3399.64243018062
5133001135926.752878997-2925.75287899699
6125554129724.663327813-4170.6633278134
7119647126162.773776630-6515.77377662973
8114158120159.084225446-6001.08422544613
9116193121408.194674263-5215.19467426251
10152803154115.705123079-1312.70512307890
11161761161054.015571895706.984428104676
12160942158808.5260207122133.47397928836
13149470146499.7101006862970.28989931386
14139208136538.0251748212669.97482517942
15134588132755.2102378401832.78976215959
16130322130583.720686657-261.720686656799
17126611126959.831135473-348.831135473184
18122401120757.7415842901643.25841571045
19117352117195.852033106156.147966894064
20112135111192.162481922942.837518077686
21112879112441.272930739437.727069261307
22148729145148.7833795553580.21662044493
23157230152087.0938283715142.90617162857
24157221149841.6042771887379.39572281217
25146681137532.7883571629148.21164283768
26136524127571.1034312978952.89656870325
27132111121809.83319921110301.1668007890
28125326124587.958317546738.041682453795
29122716120890.7926443221825.20735567836
30116615114615.4269710971999.57302890294
31113719110980.2612978722738.7387021275
32110737104903.2956246485833.70437535206
33112093106079.1299514236013.87004857664
34143565138713.3642781994851.6357218012
35149946145578.3986049744367.60139502579
36149147143259.6329317505887.36706825033
37134339130877.5408896833461.45911031679
38122683120842.5798417771840.42015822331
39115614116986.488782756-1372.48878275559
40116566114741.7231095311824.27689046896
41111272111044.557436306227.442563693529
42104609104769.191763082-160.191763081896
43101802101134.026089857667.973910142655
449454295057.0604166328-515.060416632764
459305196232.8947434082-3181.89474340820
46124129128867.129070184-4738.12907018363
47130374135732.163396959-5358.16339695905
48123946133413.397723734-9467.3977237345
49114971121031.305681668-6060.30568166804
50105531110996.344633762-5465.34463376153
51104919110877.335798829-5958.33579882866
52104782103682.9554560851099.04454391466
53101281100059.0659049021221.93409509828
549454593856.9763537181688.023646281907
559324890295.08680253452952.91319746551
568403184291.3972513509-260.397251350859
578748685540.50770016721945.49229983276
58115867118248.018148984-2381.01814898361
59120327125186.3285978-4859.32859779998
60117008122940.839046616-5932.83904661637
61108811110632.023126591-1821.02312659086

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 147768 & 155466.631844209 & -7698.63184420943 \tabularnewline
2 & 137507 & 145504.946918344 & -7997.94691834445 \tabularnewline
3 & 136919 & 141722.131981364 & -4803.1319813643 \tabularnewline
4 & 136151 & 139550.642430181 & -3399.64243018062 \tabularnewline
5 & 133001 & 135926.752878997 & -2925.75287899699 \tabularnewline
6 & 125554 & 129724.663327813 & -4170.6633278134 \tabularnewline
7 & 119647 & 126162.773776630 & -6515.77377662973 \tabularnewline
8 & 114158 & 120159.084225446 & -6001.08422544613 \tabularnewline
9 & 116193 & 121408.194674263 & -5215.19467426251 \tabularnewline
10 & 152803 & 154115.705123079 & -1312.70512307890 \tabularnewline
11 & 161761 & 161054.015571895 & 706.984428104676 \tabularnewline
12 & 160942 & 158808.526020712 & 2133.47397928836 \tabularnewline
13 & 149470 & 146499.710100686 & 2970.28989931386 \tabularnewline
14 & 139208 & 136538.025174821 & 2669.97482517942 \tabularnewline
15 & 134588 & 132755.210237840 & 1832.78976215959 \tabularnewline
16 & 130322 & 130583.720686657 & -261.720686656799 \tabularnewline
17 & 126611 & 126959.831135473 & -348.831135473184 \tabularnewline
18 & 122401 & 120757.741584290 & 1643.25841571045 \tabularnewline
19 & 117352 & 117195.852033106 & 156.147966894064 \tabularnewline
20 & 112135 & 111192.162481922 & 942.837518077686 \tabularnewline
21 & 112879 & 112441.272930739 & 437.727069261307 \tabularnewline
22 & 148729 & 145148.783379555 & 3580.21662044493 \tabularnewline
23 & 157230 & 152087.093828371 & 5142.90617162857 \tabularnewline
24 & 157221 & 149841.604277188 & 7379.39572281217 \tabularnewline
25 & 146681 & 137532.788357162 & 9148.21164283768 \tabularnewline
26 & 136524 & 127571.103431297 & 8952.89656870325 \tabularnewline
27 & 132111 & 121809.833199211 & 10301.1668007890 \tabularnewline
28 & 125326 & 124587.958317546 & 738.041682453795 \tabularnewline
29 & 122716 & 120890.792644322 & 1825.20735567836 \tabularnewline
30 & 116615 & 114615.426971097 & 1999.57302890294 \tabularnewline
31 & 113719 & 110980.261297872 & 2738.7387021275 \tabularnewline
32 & 110737 & 104903.295624648 & 5833.70437535206 \tabularnewline
33 & 112093 & 106079.129951423 & 6013.87004857664 \tabularnewline
34 & 143565 & 138713.364278199 & 4851.6357218012 \tabularnewline
35 & 149946 & 145578.398604974 & 4367.60139502579 \tabularnewline
36 & 149147 & 143259.632931750 & 5887.36706825033 \tabularnewline
37 & 134339 & 130877.540889683 & 3461.45911031679 \tabularnewline
38 & 122683 & 120842.579841777 & 1840.42015822331 \tabularnewline
39 & 115614 & 116986.488782756 & -1372.48878275559 \tabularnewline
40 & 116566 & 114741.723109531 & 1824.27689046896 \tabularnewline
41 & 111272 & 111044.557436306 & 227.442563693529 \tabularnewline
42 & 104609 & 104769.191763082 & -160.191763081896 \tabularnewline
43 & 101802 & 101134.026089857 & 667.973910142655 \tabularnewline
44 & 94542 & 95057.0604166328 & -515.060416632764 \tabularnewline
45 & 93051 & 96232.8947434082 & -3181.89474340820 \tabularnewline
46 & 124129 & 128867.129070184 & -4738.12907018363 \tabularnewline
47 & 130374 & 135732.163396959 & -5358.16339695905 \tabularnewline
48 & 123946 & 133413.397723734 & -9467.3977237345 \tabularnewline
49 & 114971 & 121031.305681668 & -6060.30568166804 \tabularnewline
50 & 105531 & 110996.344633762 & -5465.34463376153 \tabularnewline
51 & 104919 & 110877.335798829 & -5958.33579882866 \tabularnewline
52 & 104782 & 103682.955456085 & 1099.04454391466 \tabularnewline
53 & 101281 & 100059.065904902 & 1221.93409509828 \tabularnewline
54 & 94545 & 93856.9763537181 & 688.023646281907 \tabularnewline
55 & 93248 & 90295.0868025345 & 2952.91319746551 \tabularnewline
56 & 84031 & 84291.3972513509 & -260.397251350859 \tabularnewline
57 & 87486 & 85540.5077001672 & 1945.49229983276 \tabularnewline
58 & 115867 & 118248.018148984 & -2381.01814898361 \tabularnewline
59 & 120327 & 125186.3285978 & -4859.32859779998 \tabularnewline
60 & 117008 & 122940.839046616 & -5932.83904661637 \tabularnewline
61 & 108811 & 110632.023126591 & -1821.02312659086 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=36115&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]155466.631844209[/C][C]-7698.63184420943[/C][/ROW]
[ROW][C]2[/C][C]137507[/C][C]145504.946918344[/C][C]-7997.94691834445[/C][/ROW]
[ROW][C]3[/C][C]136919[/C][C]141722.131981364[/C][C]-4803.1319813643[/C][/ROW]
[ROW][C]4[/C][C]136151[/C][C]139550.642430181[/C][C]-3399.64243018062[/C][/ROW]
[ROW][C]5[/C][C]133001[/C][C]135926.752878997[/C][C]-2925.75287899699[/C][/ROW]
[ROW][C]6[/C][C]125554[/C][C]129724.663327813[/C][C]-4170.6633278134[/C][/ROW]
[ROW][C]7[/C][C]119647[/C][C]126162.773776630[/C][C]-6515.77377662973[/C][/ROW]
[ROW][C]8[/C][C]114158[/C][C]120159.084225446[/C][C]-6001.08422544613[/C][/ROW]
[ROW][C]9[/C][C]116193[/C][C]121408.194674263[/C][C]-5215.19467426251[/C][/ROW]
[ROW][C]10[/C][C]152803[/C][C]154115.705123079[/C][C]-1312.70512307890[/C][/ROW]
[ROW][C]11[/C][C]161761[/C][C]161054.015571895[/C][C]706.984428104676[/C][/ROW]
[ROW][C]12[/C][C]160942[/C][C]158808.526020712[/C][C]2133.47397928836[/C][/ROW]
[ROW][C]13[/C][C]149470[/C][C]146499.710100686[/C][C]2970.28989931386[/C][/ROW]
[ROW][C]14[/C][C]139208[/C][C]136538.025174821[/C][C]2669.97482517942[/C][/ROW]
[ROW][C]15[/C][C]134588[/C][C]132755.210237840[/C][C]1832.78976215959[/C][/ROW]
[ROW][C]16[/C][C]130322[/C][C]130583.720686657[/C][C]-261.720686656799[/C][/ROW]
[ROW][C]17[/C][C]126611[/C][C]126959.831135473[/C][C]-348.831135473184[/C][/ROW]
[ROW][C]18[/C][C]122401[/C][C]120757.741584290[/C][C]1643.25841571045[/C][/ROW]
[ROW][C]19[/C][C]117352[/C][C]117195.852033106[/C][C]156.147966894064[/C][/ROW]
[ROW][C]20[/C][C]112135[/C][C]111192.162481922[/C][C]942.837518077686[/C][/ROW]
[ROW][C]21[/C][C]112879[/C][C]112441.272930739[/C][C]437.727069261307[/C][/ROW]
[ROW][C]22[/C][C]148729[/C][C]145148.783379555[/C][C]3580.21662044493[/C][/ROW]
[ROW][C]23[/C][C]157230[/C][C]152087.093828371[/C][C]5142.90617162857[/C][/ROW]
[ROW][C]24[/C][C]157221[/C][C]149841.604277188[/C][C]7379.39572281217[/C][/ROW]
[ROW][C]25[/C][C]146681[/C][C]137532.788357162[/C][C]9148.21164283768[/C][/ROW]
[ROW][C]26[/C][C]136524[/C][C]127571.103431297[/C][C]8952.89656870325[/C][/ROW]
[ROW][C]27[/C][C]132111[/C][C]121809.833199211[/C][C]10301.1668007890[/C][/ROW]
[ROW][C]28[/C][C]125326[/C][C]124587.958317546[/C][C]738.041682453795[/C][/ROW]
[ROW][C]29[/C][C]122716[/C][C]120890.792644322[/C][C]1825.20735567836[/C][/ROW]
[ROW][C]30[/C][C]116615[/C][C]114615.426971097[/C][C]1999.57302890294[/C][/ROW]
[ROW][C]31[/C][C]113719[/C][C]110980.261297872[/C][C]2738.7387021275[/C][/ROW]
[ROW][C]32[/C][C]110737[/C][C]104903.295624648[/C][C]5833.70437535206[/C][/ROW]
[ROW][C]33[/C][C]112093[/C][C]106079.129951423[/C][C]6013.87004857664[/C][/ROW]
[ROW][C]34[/C][C]143565[/C][C]138713.364278199[/C][C]4851.6357218012[/C][/ROW]
[ROW][C]35[/C][C]149946[/C][C]145578.398604974[/C][C]4367.60139502579[/C][/ROW]
[ROW][C]36[/C][C]149147[/C][C]143259.632931750[/C][C]5887.36706825033[/C][/ROW]
[ROW][C]37[/C][C]134339[/C][C]130877.540889683[/C][C]3461.45911031679[/C][/ROW]
[ROW][C]38[/C][C]122683[/C][C]120842.579841777[/C][C]1840.42015822331[/C][/ROW]
[ROW][C]39[/C][C]115614[/C][C]116986.488782756[/C][C]-1372.48878275559[/C][/ROW]
[ROW][C]40[/C][C]116566[/C][C]114741.723109531[/C][C]1824.27689046896[/C][/ROW]
[ROW][C]41[/C][C]111272[/C][C]111044.557436306[/C][C]227.442563693529[/C][/ROW]
[ROW][C]42[/C][C]104609[/C][C]104769.191763082[/C][C]-160.191763081896[/C][/ROW]
[ROW][C]43[/C][C]101802[/C][C]101134.026089857[/C][C]667.973910142655[/C][/ROW]
[ROW][C]44[/C][C]94542[/C][C]95057.0604166328[/C][C]-515.060416632764[/C][/ROW]
[ROW][C]45[/C][C]93051[/C][C]96232.8947434082[/C][C]-3181.89474340820[/C][/ROW]
[ROW][C]46[/C][C]124129[/C][C]128867.129070184[/C][C]-4738.12907018363[/C][/ROW]
[ROW][C]47[/C][C]130374[/C][C]135732.163396959[/C][C]-5358.16339695905[/C][/ROW]
[ROW][C]48[/C][C]123946[/C][C]133413.397723734[/C][C]-9467.3977237345[/C][/ROW]
[ROW][C]49[/C][C]114971[/C][C]121031.305681668[/C][C]-6060.30568166804[/C][/ROW]
[ROW][C]50[/C][C]105531[/C][C]110996.344633762[/C][C]-5465.34463376153[/C][/ROW]
[ROW][C]51[/C][C]104919[/C][C]110877.335798829[/C][C]-5958.33579882866[/C][/ROW]
[ROW][C]52[/C][C]104782[/C][C]103682.955456085[/C][C]1099.04454391466[/C][/ROW]
[ROW][C]53[/C][C]101281[/C][C]100059.065904902[/C][C]1221.93409509828[/C][/ROW]
[ROW][C]54[/C][C]94545[/C][C]93856.9763537181[/C][C]688.023646281907[/C][/ROW]
[ROW][C]55[/C][C]93248[/C][C]90295.0868025345[/C][C]2952.91319746551[/C][/ROW]
[ROW][C]56[/C][C]84031[/C][C]84291.3972513509[/C][C]-260.397251350859[/C][/ROW]
[ROW][C]57[/C][C]87486[/C][C]85540.5077001672[/C][C]1945.49229983276[/C][/ROW]
[ROW][C]58[/C][C]115867[/C][C]118248.018148984[/C][C]-2381.01814898361[/C][/ROW]
[ROW][C]59[/C][C]120327[/C][C]125186.3285978[/C][C]-4859.32859779998[/C][/ROW]
[ROW][C]60[/C][C]117008[/C][C]122940.839046616[/C][C]-5932.83904661637[/C][/ROW]
[ROW][C]61[/C][C]108811[/C][C]110632.023126591[/C][C]-1821.02312659086[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=36115&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36115&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
1147768155466.631844209-7698.63184420943
2137507145504.946918344-7997.94691834445
3136919141722.131981364-4803.1319813643
4136151139550.642430181-3399.64243018062
5133001135926.752878997-2925.75287899699
6125554129724.663327813-4170.6633278134
7119647126162.773776630-6515.77377662973
8114158120159.084225446-6001.08422544613
9116193121408.194674263-5215.19467426251
10152803154115.705123079-1312.70512307890
11161761161054.015571895706.984428104676
12160942158808.5260207122133.47397928836
13149470146499.7101006862970.28989931386
14139208136538.0251748212669.97482517942
15134588132755.2102378401832.78976215959
16130322130583.720686657-261.720686656799
17126611126959.831135473-348.831135473184
18122401120757.7415842901643.25841571045
19117352117195.852033106156.147966894064
20112135111192.162481922942.837518077686
21112879112441.272930739437.727069261307
22148729145148.7833795553580.21662044493
23157230152087.0938283715142.90617162857
24157221149841.6042771887379.39572281217
25146681137532.7883571629148.21164283768
26136524127571.1034312978952.89656870325
27132111121809.83319921110301.1668007890
28125326124587.958317546738.041682453795
29122716120890.7926443221825.20735567836
30116615114615.4269710971999.57302890294
31113719110980.2612978722738.7387021275
32110737104903.2956246485833.70437535206
33112093106079.1299514236013.87004857664
34143565138713.3642781994851.6357218012
35149946145578.3986049744367.60139502579
36149147143259.6329317505887.36706825033
37134339130877.5408896833461.45911031679
38122683120842.5798417771840.42015822331
39115614116986.488782756-1372.48878275559
40116566114741.7231095311824.27689046896
41111272111044.557436306227.442563693529
42104609104769.191763082-160.191763081896
43101802101134.026089857667.973910142655
449454295057.0604166328-515.060416632764
459305196232.8947434082-3181.89474340820
46124129128867.129070184-4738.12907018363
47130374135732.163396959-5358.16339695905
48123946133413.397723734-9467.3977237345
49114971121031.305681668-6060.30568166804
50105531110996.344633762-5465.34463376153
51104919110877.335798829-5958.33579882866
52104782103682.9554560851099.04454391466
53101281100059.0659049021221.93409509828
549454593856.9763537181688.023646281907
559324890295.08680253452952.91319746551
568403184291.3972513509-260.397251350859
578748685540.50770016721945.49229983276
58115867118248.018148984-2381.01814898361
59120327125186.3285978-4859.32859779998
60117008122940.839046616-5932.83904661637
61108811110632.023126591-1821.02312659086







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
180.4011569118280980.8023138236561960.598843088171902
190.2914887807773320.5829775615546640.708511219222668
200.2266663546401960.4533327092803930.773333645359804
210.2490670917979730.4981341835959450.750932908202028
220.2326342851189970.4652685702379950.767365714881003
230.2093032331033630.4186064662067270.790696766896636
240.1465901924502540.2931803849005070.853409807549746
250.1296782274656100.2593564549312210.87032177253439
260.1206493176805510.2412986353611020.879350682319449
270.07439174460762750.1487834892152550.925608255392372
280.09282143472151870.1856428694430370.907178565278481
290.1075115492812610.2150230985625220.892488450718739
300.1431558549266680.2863117098533360.856844145073332
310.4926536237354530.9853072474709060.507346376264547
320.6276802234541730.7446395530916540.372319776545827
330.6905958047865640.6188083904268720.309404195213436
340.6310225180761170.7379549638477660.368977481923883
350.623651355316680.752697289366640.37634864468332
360.9427807119745450.1144385760509100.0572192880254552
370.9507458823024260.09850823539514880.0492541176975744
380.9848251430042530.03034971399149310.0151748569957465
390.9893855418637320.02122891627253610.0106144581362681
400.9806770567981920.03864588640361650.0193229432018082
410.9614948679910210.07701026401795820.0385051320089791
420.9216086915996260.1567826168007490.0783913084003743
430.8291009327489170.3417981345021650.170899067251083

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
18 & 0.401156911828098 & 0.802313823656196 & 0.598843088171902 \tabularnewline
19 & 0.291488780777332 & 0.582977561554664 & 0.708511219222668 \tabularnewline
20 & 0.226666354640196 & 0.453332709280393 & 0.773333645359804 \tabularnewline
21 & 0.249067091797973 & 0.498134183595945 & 0.750932908202028 \tabularnewline
22 & 0.232634285118997 & 0.465268570237995 & 0.767365714881003 \tabularnewline
23 & 0.209303233103363 & 0.418606466206727 & 0.790696766896636 \tabularnewline
24 & 0.146590192450254 & 0.293180384900507 & 0.853409807549746 \tabularnewline
25 & 0.129678227465610 & 0.259356454931221 & 0.87032177253439 \tabularnewline
26 & 0.120649317680551 & 0.241298635361102 & 0.879350682319449 \tabularnewline
27 & 0.0743917446076275 & 0.148783489215255 & 0.925608255392372 \tabularnewline
28 & 0.0928214347215187 & 0.185642869443037 & 0.907178565278481 \tabularnewline
29 & 0.107511549281261 & 0.215023098562522 & 0.892488450718739 \tabularnewline
30 & 0.143155854926668 & 0.286311709853336 & 0.856844145073332 \tabularnewline
31 & 0.492653623735453 & 0.985307247470906 & 0.507346376264547 \tabularnewline
32 & 0.627680223454173 & 0.744639553091654 & 0.372319776545827 \tabularnewline
33 & 0.690595804786564 & 0.618808390426872 & 0.309404195213436 \tabularnewline
34 & 0.631022518076117 & 0.737954963847766 & 0.368977481923883 \tabularnewline
35 & 0.62365135531668 & 0.75269728936664 & 0.37634864468332 \tabularnewline
36 & 0.942780711974545 & 0.114438576050910 & 0.0572192880254552 \tabularnewline
37 & 0.950745882302426 & 0.0985082353951488 & 0.0492541176975744 \tabularnewline
38 & 0.984825143004253 & 0.0303497139914931 & 0.0151748569957465 \tabularnewline
39 & 0.989385541863732 & 0.0212289162725361 & 0.0106144581362681 \tabularnewline
40 & 0.980677056798192 & 0.0386458864036165 & 0.0193229432018082 \tabularnewline
41 & 0.961494867991021 & 0.0770102640179582 & 0.0385051320089791 \tabularnewline
42 & 0.921608691599626 & 0.156782616800749 & 0.0783913084003743 \tabularnewline
43 & 0.829100932748917 & 0.341798134502165 & 0.170899067251083 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=36115&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.401156911828098[/C][C]0.802313823656196[/C][C]0.598843088171902[/C][/ROW]
[ROW][C]19[/C][C]0.291488780777332[/C][C]0.582977561554664[/C][C]0.708511219222668[/C][/ROW]
[ROW][C]20[/C][C]0.226666354640196[/C][C]0.453332709280393[/C][C]0.773333645359804[/C][/ROW]
[ROW][C]21[/C][C]0.249067091797973[/C][C]0.498134183595945[/C][C]0.750932908202028[/C][/ROW]
[ROW][C]22[/C][C]0.232634285118997[/C][C]0.465268570237995[/C][C]0.767365714881003[/C][/ROW]
[ROW][C]23[/C][C]0.209303233103363[/C][C]0.418606466206727[/C][C]0.790696766896636[/C][/ROW]
[ROW][C]24[/C][C]0.146590192450254[/C][C]0.293180384900507[/C][C]0.853409807549746[/C][/ROW]
[ROW][C]25[/C][C]0.129678227465610[/C][C]0.259356454931221[/C][C]0.87032177253439[/C][/ROW]
[ROW][C]26[/C][C]0.120649317680551[/C][C]0.241298635361102[/C][C]0.879350682319449[/C][/ROW]
[ROW][C]27[/C][C]0.0743917446076275[/C][C]0.148783489215255[/C][C]0.925608255392372[/C][/ROW]
[ROW][C]28[/C][C]0.0928214347215187[/C][C]0.185642869443037[/C][C]0.907178565278481[/C][/ROW]
[ROW][C]29[/C][C]0.107511549281261[/C][C]0.215023098562522[/C][C]0.892488450718739[/C][/ROW]
[ROW][C]30[/C][C]0.143155854926668[/C][C]0.286311709853336[/C][C]0.856844145073332[/C][/ROW]
[ROW][C]31[/C][C]0.492653623735453[/C][C]0.985307247470906[/C][C]0.507346376264547[/C][/ROW]
[ROW][C]32[/C][C]0.627680223454173[/C][C]0.744639553091654[/C][C]0.372319776545827[/C][/ROW]
[ROW][C]33[/C][C]0.690595804786564[/C][C]0.618808390426872[/C][C]0.309404195213436[/C][/ROW]
[ROW][C]34[/C][C]0.631022518076117[/C][C]0.737954963847766[/C][C]0.368977481923883[/C][/ROW]
[ROW][C]35[/C][C]0.62365135531668[/C][C]0.75269728936664[/C][C]0.37634864468332[/C][/ROW]
[ROW][C]36[/C][C]0.942780711974545[/C][C]0.114438576050910[/C][C]0.0572192880254552[/C][/ROW]
[ROW][C]37[/C][C]0.950745882302426[/C][C]0.0985082353951488[/C][C]0.0492541176975744[/C][/ROW]
[ROW][C]38[/C][C]0.984825143004253[/C][C]0.0303497139914931[/C][C]0.0151748569957465[/C][/ROW]
[ROW][C]39[/C][C]0.989385541863732[/C][C]0.0212289162725361[/C][C]0.0106144581362681[/C][/ROW]
[ROW][C]40[/C][C]0.980677056798192[/C][C]0.0386458864036165[/C][C]0.0193229432018082[/C][/ROW]
[ROW][C]41[/C][C]0.961494867991021[/C][C]0.0770102640179582[/C][C]0.0385051320089791[/C][/ROW]
[ROW][C]42[/C][C]0.921608691599626[/C][C]0.156782616800749[/C][C]0.0783913084003743[/C][/ROW]
[ROW][C]43[/C][C]0.829100932748917[/C][C]0.341798134502165[/C][C]0.170899067251083[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=36115&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36115&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.4011569118280980.8023138236561960.598843088171902
190.2914887807773320.5829775615546640.708511219222668
200.2266663546401960.4533327092803930.773333645359804
210.2490670917979730.4981341835959450.750932908202028
220.2326342851189970.4652685702379950.767365714881003
230.2093032331033630.4186064662067270.790696766896636
240.1465901924502540.2931803849005070.853409807549746
250.1296782274656100.2593564549312210.87032177253439
260.1206493176805510.2412986353611020.879350682319449
270.07439174460762750.1487834892152550.925608255392372
280.09282143472151870.1856428694430370.907178565278481
290.1075115492812610.2150230985625220.892488450718739
300.1431558549266680.2863117098533360.856844145073332
310.4926536237354530.9853072474709060.507346376264547
320.6276802234541730.7446395530916540.372319776545827
330.6905958047865640.6188083904268720.309404195213436
340.6310225180761170.7379549638477660.368977481923883
350.623651355316680.752697289366640.37634864468332
360.9427807119745450.1144385760509100.0572192880254552
370.9507458823024260.09850823539514880.0492541176975744
380.9848251430042530.03034971399149310.0151748569957465
390.9893855418637320.02122891627253610.0106144581362681
400.9806770567981920.03864588640361650.0193229432018082
410.9614948679910210.07701026401795820.0385051320089791
420.9216086915996260.1567826168007490.0783913084003743
430.8291009327489170.3417981345021650.170899067251083







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level00OK
5% type I error level30.115384615384615NOK
10% type I error level50.192307692307692NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=36115&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 level30.115384615384615NOK
10% type I error level50.192307692307692NOK



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