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, 23 Nov 2009 01:30:59 -0700
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2009/Nov/23/t12589651132xjd6q97i1845j3.htm/, Retrieved Fri, 03 May 2024 11:31:38 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58710, Retrieved Fri, 03 May 2024 11:31:38 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact171
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:06:21] [b98453cac15ba1066b407e146608df68]
-    D      [Multiple Regression] [WS7] [2009-11-23 08:30:59] [40cfc51151e9382b81a5fb0c269b074d] [Current]
Feedback Forum

Post a new message
Dataseries X:
286602	326011
283042	328282
276687	317480
277915	317539
277128	313737
277103	312276
275037	309391
270150	302950
267140	300316
264993	304035
287259	333476
291186	337698
292300	335932
288186	323931
281477	313927
282656	314485
280190	313218
280408	309664
276836	302963
275216	298989
274352	298423
271311	301631
289802	329765
290726	335083
292300	327616
278506	309119
269826	295916
265861	291413
269034	291542
264176	284678
255198	276475
253353	272566
246057	264981
235372	263290
258556	296806
260993	303598
254663	286994
250643	276427
243422	266424
247105	267153
248541	268381
245039	262522
237080	255542
237085	253158
225554	243803
226839	250741
247934	280445
248333	285257
246969	270976
245098	261076
246263	255603
255765	260376
264319	263903
268347	264291
273046	263276
273963	262572
267430	256167
271993	264221
292710	293860
295881	300713
293299	287224




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 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 & 6 seconds \tabularnewline
R Server & 'Gwilym Jenkins' @ 72.249.127.135 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58710&T=0

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = -225475.408018723 + 1.46214500504937X[t] + 16420.7919349884M1[t] + 23028.7163256820M2[t] + 30661.1473651015M3[t] + 31235.5640239155M4[t] + 31993.2453135483M5[t] + 34960.6704055155M6[t] + 37647.041692M7[t] + 39974.3973820299M8[t] + 40611.7071382829M9[t] + 31413.0352303011M10[t] + 7293.95281682754M11[t] + 1278.41807555408t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  -225475.408018723 +  1.46214500504937X[t] +  16420.7919349884M1[t] +  23028.7163256820M2[t] +  30661.1473651015M3[t] +  31235.5640239155M4[t] +  31993.2453135483M5[t] +  34960.6704055155M6[t] +  37647.041692M7[t] +  39974.3973820299M8[t] +  40611.7071382829M9[t] +  31413.0352303011M10[t] +  7293.95281682754M11[t] +  1278.41807555408t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58710&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  -225475.408018723 +  1.46214500504937X[t] +  16420.7919349884M1[t] +  23028.7163256820M2[t] +  30661.1473651015M3[t] +  31235.5640239155M4[t] +  31993.2453135483M5[t] +  34960.6704055155M6[t] +  37647.041692M7[t] +  39974.3973820299M8[t] +  40611.7071382829M9[t] +  31413.0352303011M10[t] +  7293.95281682754M11[t] +  1278.41807555408t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58710&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58710&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] = -225475.408018723 + 1.46214500504937X[t] + 16420.7919349884M1[t] + 23028.7163256820M2[t] + 30661.1473651015M3[t] + 31235.5640239155M4[t] + 31993.2453135483M5[t] + 34960.6704055155M6[t] + 37647.041692M7[t] + 39974.3973820299M8[t] + 40611.7071382829M9[t] + 31413.0352303011M10[t] + 7293.95281682754M11[t] + 1278.41807555408t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-225475.40801872324007.470271-9.391900
X1.462145005049370.06722821.749100
M116420.79193498843124.5517655.25544e-062e-06
M223028.71632568203561.6277516.465800
M330661.14736510153864.5929087.933900
M431235.56402391553803.9634068.211300
M531993.24531354833758.6409788.511900
M634960.67040551553842.6772849.09800
M737647.0416924000.4974499.410600
M839974.39738202994096.5825649.75800
M940611.70713828294279.0178399.490900
M1031413.03523030114047.4140217.761300
M117293.952816827543168.8377572.30180.0258260.012913
t1278.4180755540887.51179614.608500

\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) & -225475.408018723 & 24007.470271 & -9.3919 & 0 & 0 \tabularnewline
X & 1.46214500504937 & 0.067228 & 21.7491 & 0 & 0 \tabularnewline
M1 & 16420.7919349884 & 3124.551765 & 5.2554 & 4e-06 & 2e-06 \tabularnewline
M2 & 23028.7163256820 & 3561.627751 & 6.4658 & 0 & 0 \tabularnewline
M3 & 30661.1473651015 & 3864.592908 & 7.9339 & 0 & 0 \tabularnewline
M4 & 31235.5640239155 & 3803.963406 & 8.2113 & 0 & 0 \tabularnewline
M5 & 31993.2453135483 & 3758.640978 & 8.5119 & 0 & 0 \tabularnewline
M6 & 34960.6704055155 & 3842.677284 & 9.098 & 0 & 0 \tabularnewline
M7 & 37647.041692 & 4000.497449 & 9.4106 & 0 & 0 \tabularnewline
M8 & 39974.3973820299 & 4096.582564 & 9.758 & 0 & 0 \tabularnewline
M9 & 40611.7071382829 & 4279.017839 & 9.4909 & 0 & 0 \tabularnewline
M10 & 31413.0352303011 & 4047.414021 & 7.7613 & 0 & 0 \tabularnewline
M11 & 7293.95281682754 & 3168.837757 & 2.3018 & 0.025826 & 0.012913 \tabularnewline
t & 1278.41807555408 & 87.511796 & 14.6085 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58710&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]-225475.408018723[/C][C]24007.470271[/C][C]-9.3919[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]X[/C][C]1.46214500504937[/C][C]0.067228[/C][C]21.7491[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]16420.7919349884[/C][C]3124.551765[/C][C]5.2554[/C][C]4e-06[/C][C]2e-06[/C][/ROW]
[ROW][C]M2[/C][C]23028.7163256820[/C][C]3561.627751[/C][C]6.4658[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M3[/C][C]30661.1473651015[/C][C]3864.592908[/C][C]7.9339[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M4[/C][C]31235.5640239155[/C][C]3803.963406[/C][C]8.2113[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M5[/C][C]31993.2453135483[/C][C]3758.640978[/C][C]8.5119[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M6[/C][C]34960.6704055155[/C][C]3842.677284[/C][C]9.098[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M7[/C][C]37647.041692[/C][C]4000.497449[/C][C]9.4106[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]39974.3973820299[/C][C]4096.582564[/C][C]9.758[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M9[/C][C]40611.7071382829[/C][C]4279.017839[/C][C]9.4909[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M10[/C][C]31413.0352303011[/C][C]4047.414021[/C][C]7.7613[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M11[/C][C]7293.95281682754[/C][C]3168.837757[/C][C]2.3018[/C][C]0.025826[/C][C]0.012913[/C][/ROW]
[ROW][C]t[/C][C]1278.41807555408[/C][C]87.511796[/C][C]14.6085[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58710&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58710&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)-225475.40801872324007.470271-9.391900
X1.462145005049370.06722821.749100
M116420.79193498843124.5517655.25544e-062e-06
M223028.71632568203561.6277516.465800
M330661.14736510153864.5929087.933900
M431235.56402391553803.9634068.211300
M531993.24531354833758.6409788.511900
M634960.67040551553842.6772849.09800
M737647.0416924000.4974499.410600
M839974.39738202994096.5825649.75800
M940611.70713828294279.0178399.490900
M1031413.03523030114047.4140217.761300
M117293.952816827543168.8377572.30180.0258260.012913
t1278.4180755540887.51179614.608500







Multiple Linear Regression - Regression Statistics
Multiple R0.970362601330797
R-squared0.941603578061471
Adjusted R-squared0.925451376248687
F-TEST (value)58.2956793739531
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4957.90285228592
Sum Squared Residuals1155297632.55713

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.970362601330797 \tabularnewline
R-squared & 0.941603578061471 \tabularnewline
Adjusted R-squared & 0.925451376248687 \tabularnewline
F-TEST (value) & 58.2956793739531 \tabularnewline
F-TEST (DF numerator) & 13 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 4957.90285228592 \tabularnewline
Sum Squared Residuals & 1155297632.55713 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58710&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.970362601330797[/C][/ROW]
[ROW][C]R-squared[/C][C]0.941603578061471[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.925451376248687[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]58.2956793739531[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]13[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/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]4957.90285228592[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1155297632.55713[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58710&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58710&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.970362601330797
R-squared0.941603578061471
Adjusted R-squared0.925451376248687
F-TEST (value)58.2956793739531
F-TEST (DF numerator)13
F-TEST (DF denominator)47
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4957.90285228592
Sum Squared Residuals1155297632.55713







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1286602268899.15723296917702.8427670306
2283042280106.0310056852935.968994315
3276687273222.7897761153464.21022388462
4277915275161.8910657812753.10893421868
5277128271638.9151217705489.08487822956
6277103273748.5644369153354.43556308533
7275037273495.0654593861541.93454061418
8270150267683.1632474472466.83675255327
9267140265747.6011359541392.39886404620
10264993263265.0645773051727.93542269529
11287259283471.4113330443787.58866695619
12291186283629.0528030897556.9471969112
13292300298746.114734714-6446.11473471408
14288186289085.254995364-899.254995364174
15281477283368.805479824-1891.80547982388
16282656286037.517127009-3381.51712700947
17280190286221.078770799-6031.07877079874
18280408285270.458590375-4862.45859037459
19276836279437.414273577-2601.41427357734
20275216277232.623789095-2016.62378909508
21274352278320.777548044-3968.77754804426
22271311275091.084891815-3780.08489181489
23289802293386.408125954-3584.40812595447
24290726295146.560521534-4420.56052153358
25292300301927.933779372-9627.9337793724
26278506282768.980087222-4262.98008722176
27269826272375.128700529-2549.12870052852
28265861267643.924477159-1782.92447715923
29269034269868.640547997-834.640547997416
30264176264078.3204008697.6795991401582
31255198256049.134286478-851.134286478446
32253353253939.383227324-586.38322732438
33246057244764.7411958321292.25880416799
34235372234372.000159866999.999840134242
35258556260536.587811181-1980.58781118108
36260993264451.941944203-3458.94194420296
37254663257873.696290906-3210.69629090564
38250643250309.552488797333.447511203453
39243422244594.565118261-1172.56511826129
40247105247513.303561310-408.303561310337
41248541251344.916992698-2803.91699269779
42245039247024.052575635-1985.05257563483
43237080240783.069802429-3703.06980242881
44237085240903.089875975-3818.08987597506
45225554229140.451185545-3586.45118554529
46226839231364.55939815-4525.55939815009
47247934251955.450290217-4021.45029021719
48248333252975.757313241-4642.7573132413
49246969249794.074506674-2825.07450667369
50245098243205.1814229331892.81857706748
51246263244113.7109252712149.28907472906
52255765252945.3637687402819.63623126036
53264319260138.4485667364180.55143326438
54268347264951.6039962163395.39600378393
55273046267432.3161781305613.68382187043
56273963270008.7398601593954.26013984125
57267430262559.4289346254870.57106537536
58271993266415.2909728655577.70902713545
59292710286911.1424396035798.85756039656
60295881290915.6874179334965.31258206665
61293299288892.0234553654406.97654463518

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 286602 & 268899.157232969 & 17702.8427670306 \tabularnewline
2 & 283042 & 280106.031005685 & 2935.968994315 \tabularnewline
3 & 276687 & 273222.789776115 & 3464.21022388462 \tabularnewline
4 & 277915 & 275161.891065781 & 2753.10893421868 \tabularnewline
5 & 277128 & 271638.915121770 & 5489.08487822956 \tabularnewline
6 & 277103 & 273748.564436915 & 3354.43556308533 \tabularnewline
7 & 275037 & 273495.065459386 & 1541.93454061418 \tabularnewline
8 & 270150 & 267683.163247447 & 2466.83675255327 \tabularnewline
9 & 267140 & 265747.601135954 & 1392.39886404620 \tabularnewline
10 & 264993 & 263265.064577305 & 1727.93542269529 \tabularnewline
11 & 287259 & 283471.411333044 & 3787.58866695619 \tabularnewline
12 & 291186 & 283629.052803089 & 7556.9471969112 \tabularnewline
13 & 292300 & 298746.114734714 & -6446.11473471408 \tabularnewline
14 & 288186 & 289085.254995364 & -899.254995364174 \tabularnewline
15 & 281477 & 283368.805479824 & -1891.80547982388 \tabularnewline
16 & 282656 & 286037.517127009 & -3381.51712700947 \tabularnewline
17 & 280190 & 286221.078770799 & -6031.07877079874 \tabularnewline
18 & 280408 & 285270.458590375 & -4862.45859037459 \tabularnewline
19 & 276836 & 279437.414273577 & -2601.41427357734 \tabularnewline
20 & 275216 & 277232.623789095 & -2016.62378909508 \tabularnewline
21 & 274352 & 278320.777548044 & -3968.77754804426 \tabularnewline
22 & 271311 & 275091.084891815 & -3780.08489181489 \tabularnewline
23 & 289802 & 293386.408125954 & -3584.40812595447 \tabularnewline
24 & 290726 & 295146.560521534 & -4420.56052153358 \tabularnewline
25 & 292300 & 301927.933779372 & -9627.9337793724 \tabularnewline
26 & 278506 & 282768.980087222 & -4262.98008722176 \tabularnewline
27 & 269826 & 272375.128700529 & -2549.12870052852 \tabularnewline
28 & 265861 & 267643.924477159 & -1782.92447715923 \tabularnewline
29 & 269034 & 269868.640547997 & -834.640547997416 \tabularnewline
30 & 264176 & 264078.32040086 & 97.6795991401582 \tabularnewline
31 & 255198 & 256049.134286478 & -851.134286478446 \tabularnewline
32 & 253353 & 253939.383227324 & -586.38322732438 \tabularnewline
33 & 246057 & 244764.741195832 & 1292.25880416799 \tabularnewline
34 & 235372 & 234372.000159866 & 999.999840134242 \tabularnewline
35 & 258556 & 260536.587811181 & -1980.58781118108 \tabularnewline
36 & 260993 & 264451.941944203 & -3458.94194420296 \tabularnewline
37 & 254663 & 257873.696290906 & -3210.69629090564 \tabularnewline
38 & 250643 & 250309.552488797 & 333.447511203453 \tabularnewline
39 & 243422 & 244594.565118261 & -1172.56511826129 \tabularnewline
40 & 247105 & 247513.303561310 & -408.303561310337 \tabularnewline
41 & 248541 & 251344.916992698 & -2803.91699269779 \tabularnewline
42 & 245039 & 247024.052575635 & -1985.05257563483 \tabularnewline
43 & 237080 & 240783.069802429 & -3703.06980242881 \tabularnewline
44 & 237085 & 240903.089875975 & -3818.08987597506 \tabularnewline
45 & 225554 & 229140.451185545 & -3586.45118554529 \tabularnewline
46 & 226839 & 231364.55939815 & -4525.55939815009 \tabularnewline
47 & 247934 & 251955.450290217 & -4021.45029021719 \tabularnewline
48 & 248333 & 252975.757313241 & -4642.7573132413 \tabularnewline
49 & 246969 & 249794.074506674 & -2825.07450667369 \tabularnewline
50 & 245098 & 243205.181422933 & 1892.81857706748 \tabularnewline
51 & 246263 & 244113.710925271 & 2149.28907472906 \tabularnewline
52 & 255765 & 252945.363768740 & 2819.63623126036 \tabularnewline
53 & 264319 & 260138.448566736 & 4180.55143326438 \tabularnewline
54 & 268347 & 264951.603996216 & 3395.39600378393 \tabularnewline
55 & 273046 & 267432.316178130 & 5613.68382187043 \tabularnewline
56 & 273963 & 270008.739860159 & 3954.26013984125 \tabularnewline
57 & 267430 & 262559.428934625 & 4870.57106537536 \tabularnewline
58 & 271993 & 266415.290972865 & 5577.70902713545 \tabularnewline
59 & 292710 & 286911.142439603 & 5798.85756039656 \tabularnewline
60 & 295881 & 290915.687417933 & 4965.31258206665 \tabularnewline
61 & 293299 & 288892.023455365 & 4406.97654463518 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58710&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]286602[/C][C]268899.157232969[/C][C]17702.8427670306[/C][/ROW]
[ROW][C]2[/C][C]283042[/C][C]280106.031005685[/C][C]2935.968994315[/C][/ROW]
[ROW][C]3[/C][C]276687[/C][C]273222.789776115[/C][C]3464.21022388462[/C][/ROW]
[ROW][C]4[/C][C]277915[/C][C]275161.891065781[/C][C]2753.10893421868[/C][/ROW]
[ROW][C]5[/C][C]277128[/C][C]271638.915121770[/C][C]5489.08487822956[/C][/ROW]
[ROW][C]6[/C][C]277103[/C][C]273748.564436915[/C][C]3354.43556308533[/C][/ROW]
[ROW][C]7[/C][C]275037[/C][C]273495.065459386[/C][C]1541.93454061418[/C][/ROW]
[ROW][C]8[/C][C]270150[/C][C]267683.163247447[/C][C]2466.83675255327[/C][/ROW]
[ROW][C]9[/C][C]267140[/C][C]265747.601135954[/C][C]1392.39886404620[/C][/ROW]
[ROW][C]10[/C][C]264993[/C][C]263265.064577305[/C][C]1727.93542269529[/C][/ROW]
[ROW][C]11[/C][C]287259[/C][C]283471.411333044[/C][C]3787.58866695619[/C][/ROW]
[ROW][C]12[/C][C]291186[/C][C]283629.052803089[/C][C]7556.9471969112[/C][/ROW]
[ROW][C]13[/C][C]292300[/C][C]298746.114734714[/C][C]-6446.11473471408[/C][/ROW]
[ROW][C]14[/C][C]288186[/C][C]289085.254995364[/C][C]-899.254995364174[/C][/ROW]
[ROW][C]15[/C][C]281477[/C][C]283368.805479824[/C][C]-1891.80547982388[/C][/ROW]
[ROW][C]16[/C][C]282656[/C][C]286037.517127009[/C][C]-3381.51712700947[/C][/ROW]
[ROW][C]17[/C][C]280190[/C][C]286221.078770799[/C][C]-6031.07877079874[/C][/ROW]
[ROW][C]18[/C][C]280408[/C][C]285270.458590375[/C][C]-4862.45859037459[/C][/ROW]
[ROW][C]19[/C][C]276836[/C][C]279437.414273577[/C][C]-2601.41427357734[/C][/ROW]
[ROW][C]20[/C][C]275216[/C][C]277232.623789095[/C][C]-2016.62378909508[/C][/ROW]
[ROW][C]21[/C][C]274352[/C][C]278320.777548044[/C][C]-3968.77754804426[/C][/ROW]
[ROW][C]22[/C][C]271311[/C][C]275091.084891815[/C][C]-3780.08489181489[/C][/ROW]
[ROW][C]23[/C][C]289802[/C][C]293386.408125954[/C][C]-3584.40812595447[/C][/ROW]
[ROW][C]24[/C][C]290726[/C][C]295146.560521534[/C][C]-4420.56052153358[/C][/ROW]
[ROW][C]25[/C][C]292300[/C][C]301927.933779372[/C][C]-9627.9337793724[/C][/ROW]
[ROW][C]26[/C][C]278506[/C][C]282768.980087222[/C][C]-4262.98008722176[/C][/ROW]
[ROW][C]27[/C][C]269826[/C][C]272375.128700529[/C][C]-2549.12870052852[/C][/ROW]
[ROW][C]28[/C][C]265861[/C][C]267643.924477159[/C][C]-1782.92447715923[/C][/ROW]
[ROW][C]29[/C][C]269034[/C][C]269868.640547997[/C][C]-834.640547997416[/C][/ROW]
[ROW][C]30[/C][C]264176[/C][C]264078.32040086[/C][C]97.6795991401582[/C][/ROW]
[ROW][C]31[/C][C]255198[/C][C]256049.134286478[/C][C]-851.134286478446[/C][/ROW]
[ROW][C]32[/C][C]253353[/C][C]253939.383227324[/C][C]-586.38322732438[/C][/ROW]
[ROW][C]33[/C][C]246057[/C][C]244764.741195832[/C][C]1292.25880416799[/C][/ROW]
[ROW][C]34[/C][C]235372[/C][C]234372.000159866[/C][C]999.999840134242[/C][/ROW]
[ROW][C]35[/C][C]258556[/C][C]260536.587811181[/C][C]-1980.58781118108[/C][/ROW]
[ROW][C]36[/C][C]260993[/C][C]264451.941944203[/C][C]-3458.94194420296[/C][/ROW]
[ROW][C]37[/C][C]254663[/C][C]257873.696290906[/C][C]-3210.69629090564[/C][/ROW]
[ROW][C]38[/C][C]250643[/C][C]250309.552488797[/C][C]333.447511203453[/C][/ROW]
[ROW][C]39[/C][C]243422[/C][C]244594.565118261[/C][C]-1172.56511826129[/C][/ROW]
[ROW][C]40[/C][C]247105[/C][C]247513.303561310[/C][C]-408.303561310337[/C][/ROW]
[ROW][C]41[/C][C]248541[/C][C]251344.916992698[/C][C]-2803.91699269779[/C][/ROW]
[ROW][C]42[/C][C]245039[/C][C]247024.052575635[/C][C]-1985.05257563483[/C][/ROW]
[ROW][C]43[/C][C]237080[/C][C]240783.069802429[/C][C]-3703.06980242881[/C][/ROW]
[ROW][C]44[/C][C]237085[/C][C]240903.089875975[/C][C]-3818.08987597506[/C][/ROW]
[ROW][C]45[/C][C]225554[/C][C]229140.451185545[/C][C]-3586.45118554529[/C][/ROW]
[ROW][C]46[/C][C]226839[/C][C]231364.55939815[/C][C]-4525.55939815009[/C][/ROW]
[ROW][C]47[/C][C]247934[/C][C]251955.450290217[/C][C]-4021.45029021719[/C][/ROW]
[ROW][C]48[/C][C]248333[/C][C]252975.757313241[/C][C]-4642.7573132413[/C][/ROW]
[ROW][C]49[/C][C]246969[/C][C]249794.074506674[/C][C]-2825.07450667369[/C][/ROW]
[ROW][C]50[/C][C]245098[/C][C]243205.181422933[/C][C]1892.81857706748[/C][/ROW]
[ROW][C]51[/C][C]246263[/C][C]244113.710925271[/C][C]2149.28907472906[/C][/ROW]
[ROW][C]52[/C][C]255765[/C][C]252945.363768740[/C][C]2819.63623126036[/C][/ROW]
[ROW][C]53[/C][C]264319[/C][C]260138.448566736[/C][C]4180.55143326438[/C][/ROW]
[ROW][C]54[/C][C]268347[/C][C]264951.603996216[/C][C]3395.39600378393[/C][/ROW]
[ROW][C]55[/C][C]273046[/C][C]267432.316178130[/C][C]5613.68382187043[/C][/ROW]
[ROW][C]56[/C][C]273963[/C][C]270008.739860159[/C][C]3954.26013984125[/C][/ROW]
[ROW][C]57[/C][C]267430[/C][C]262559.428934625[/C][C]4870.57106537536[/C][/ROW]
[ROW][C]58[/C][C]271993[/C][C]266415.290972865[/C][C]5577.70902713545[/C][/ROW]
[ROW][C]59[/C][C]292710[/C][C]286911.142439603[/C][C]5798.85756039656[/C][/ROW]
[ROW][C]60[/C][C]295881[/C][C]290915.687417933[/C][C]4965.31258206665[/C][/ROW]
[ROW][C]61[/C][C]293299[/C][C]288892.023455365[/C][C]4406.97654463518[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58710&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58710&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
1286602268899.15723296917702.8427670306
2283042280106.0310056852935.968994315
3276687273222.7897761153464.21022388462
4277915275161.8910657812753.10893421868
5277128271638.9151217705489.08487822956
6277103273748.5644369153354.43556308533
7275037273495.0654593861541.93454061418
8270150267683.1632474472466.83675255327
9267140265747.6011359541392.39886404620
10264993263265.0645773051727.93542269529
11287259283471.4113330443787.58866695619
12291186283629.0528030897556.9471969112
13292300298746.114734714-6446.11473471408
14288186289085.254995364-899.254995364174
15281477283368.805479824-1891.80547982388
16282656286037.517127009-3381.51712700947
17280190286221.078770799-6031.07877079874
18280408285270.458590375-4862.45859037459
19276836279437.414273577-2601.41427357734
20275216277232.623789095-2016.62378909508
21274352278320.777548044-3968.77754804426
22271311275091.084891815-3780.08489181489
23289802293386.408125954-3584.40812595447
24290726295146.560521534-4420.56052153358
25292300301927.933779372-9627.9337793724
26278506282768.980087222-4262.98008722176
27269826272375.128700529-2549.12870052852
28265861267643.924477159-1782.92447715923
29269034269868.640547997-834.640547997416
30264176264078.3204008697.6795991401582
31255198256049.134286478-851.134286478446
32253353253939.383227324-586.38322732438
33246057244764.7411958321292.25880416799
34235372234372.000159866999.999840134242
35258556260536.587811181-1980.58781118108
36260993264451.941944203-3458.94194420296
37254663257873.696290906-3210.69629090564
38250643250309.552488797333.447511203453
39243422244594.565118261-1172.56511826129
40247105247513.303561310-408.303561310337
41248541251344.916992698-2803.91699269779
42245039247024.052575635-1985.05257563483
43237080240783.069802429-3703.06980242881
44237085240903.089875975-3818.08987597506
45225554229140.451185545-3586.45118554529
46226839231364.55939815-4525.55939815009
47247934251955.450290217-4021.45029021719
48248333252975.757313241-4642.7573132413
49246969249794.074506674-2825.07450667369
50245098243205.1814229331892.81857706748
51246263244113.7109252712149.28907472906
52255765252945.3637687402819.63623126036
53264319260138.4485667364180.55143326438
54268347264951.6039962163395.39600378393
55273046267432.3161781305613.68382187043
56273963270008.7398601593954.26013984125
57267430262559.4289346254870.57106537536
58271993266415.2909728655577.70902713545
59292710286911.1424396035798.85756039656
60295881290915.6874179334965.31258206665
61293299288892.0234553654406.97654463518







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.04174758449478720.08349516898957450.958252415505213
180.01932127810110570.03864255620221140.980678721898894
190.01858526024489140.03717052048978280.981414739755109
200.009764230464700190.01952846092940040.9902357695353
210.01985911325748780.03971822651497550.980140886742512
220.01354192748729130.02708385497458250.986458072512709
230.00931991265480010.01863982530960020.9906800873452
240.04020919498504020.08041838997008040.95979080501496
250.1219109017024470.2438218034048950.878089098297553
260.678547480696990.6429050386060190.321452519303010
270.8259316574466170.3481366851067650.174068342553383
280.9060511492649260.1878977014701480.0939488507350738
290.9018744627674960.1962510744650080.0981255372325042
300.8638990808571740.2722018382856520.136100919142826
310.869786106972740.2604277860545190.130213893027260
320.840649160304850.3187016793902990.159350839695150
330.8379190477129210.3241619045741580.162080952287079
340.993269102458920.01346179508215910.00673089754107956
350.9965794515974590.006841096805082420.00342054840254121
360.9977469198953840.004506160209232940.00225308010461647
370.9991190488175950.001761902364809890.000880951182404943
380.9978367777886170.004326444422766080.00216322221138304
390.9942002119337120.01159957613257670.00579978806628837
400.9937272158663760.01254556826724850.00627278413362423
410.9861670352305240.02766592953895270.0138329647694764
420.9859861699875990.02802766002480230.0140138300124011
430.9614757926436250.07704841471275090.0385242073563754
440.9374433332725730.1251133334548540.0625566667274269

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
17 & 0.0417475844947872 & 0.0834951689895745 & 0.958252415505213 \tabularnewline
18 & 0.0193212781011057 & 0.0386425562022114 & 0.980678721898894 \tabularnewline
19 & 0.0185852602448914 & 0.0371705204897828 & 0.981414739755109 \tabularnewline
20 & 0.00976423046470019 & 0.0195284609294004 & 0.9902357695353 \tabularnewline
21 & 0.0198591132574878 & 0.0397182265149755 & 0.980140886742512 \tabularnewline
22 & 0.0135419274872913 & 0.0270838549745825 & 0.986458072512709 \tabularnewline
23 & 0.0093199126548001 & 0.0186398253096002 & 0.9906800873452 \tabularnewline
24 & 0.0402091949850402 & 0.0804183899700804 & 0.95979080501496 \tabularnewline
25 & 0.121910901702447 & 0.243821803404895 & 0.878089098297553 \tabularnewline
26 & 0.67854748069699 & 0.642905038606019 & 0.321452519303010 \tabularnewline
27 & 0.825931657446617 & 0.348136685106765 & 0.174068342553383 \tabularnewline
28 & 0.906051149264926 & 0.187897701470148 & 0.0939488507350738 \tabularnewline
29 & 0.901874462767496 & 0.196251074465008 & 0.0981255372325042 \tabularnewline
30 & 0.863899080857174 & 0.272201838285652 & 0.136100919142826 \tabularnewline
31 & 0.86978610697274 & 0.260427786054519 & 0.130213893027260 \tabularnewline
32 & 0.84064916030485 & 0.318701679390299 & 0.159350839695150 \tabularnewline
33 & 0.837919047712921 & 0.324161904574158 & 0.162080952287079 \tabularnewline
34 & 0.99326910245892 & 0.0134617950821591 & 0.00673089754107956 \tabularnewline
35 & 0.996579451597459 & 0.00684109680508242 & 0.00342054840254121 \tabularnewline
36 & 0.997746919895384 & 0.00450616020923294 & 0.00225308010461647 \tabularnewline
37 & 0.999119048817595 & 0.00176190236480989 & 0.000880951182404943 \tabularnewline
38 & 0.997836777788617 & 0.00432644442276608 & 0.00216322221138304 \tabularnewline
39 & 0.994200211933712 & 0.0115995761325767 & 0.00579978806628837 \tabularnewline
40 & 0.993727215866376 & 0.0125455682672485 & 0.00627278413362423 \tabularnewline
41 & 0.986167035230524 & 0.0276659295389527 & 0.0138329647694764 \tabularnewline
42 & 0.985986169987599 & 0.0280276600248023 & 0.0140138300124011 \tabularnewline
43 & 0.961475792643625 & 0.0770484147127509 & 0.0385242073563754 \tabularnewline
44 & 0.937443333272573 & 0.125113333454854 & 0.0625566667274269 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58710&T=5

[TABLE]
[ROW][C]Goldfeld-Quandt test for Heteroskedasticity[/C][/ROW]
[ROW][C]p-values[/C][C]Alternative Hypothesis[/C][/ROW]
[ROW][C]breakpoint index[/C][C]greater[/C][C]2-sided[/C][C]less[/C][/ROW]
[ROW][C]17[/C][C]0.0417475844947872[/C][C]0.0834951689895745[/C][C]0.958252415505213[/C][/ROW]
[ROW][C]18[/C][C]0.0193212781011057[/C][C]0.0386425562022114[/C][C]0.980678721898894[/C][/ROW]
[ROW][C]19[/C][C]0.0185852602448914[/C][C]0.0371705204897828[/C][C]0.981414739755109[/C][/ROW]
[ROW][C]20[/C][C]0.00976423046470019[/C][C]0.0195284609294004[/C][C]0.9902357695353[/C][/ROW]
[ROW][C]21[/C][C]0.0198591132574878[/C][C]0.0397182265149755[/C][C]0.980140886742512[/C][/ROW]
[ROW][C]22[/C][C]0.0135419274872913[/C][C]0.0270838549745825[/C][C]0.986458072512709[/C][/ROW]
[ROW][C]23[/C][C]0.0093199126548001[/C][C]0.0186398253096002[/C][C]0.9906800873452[/C][/ROW]
[ROW][C]24[/C][C]0.0402091949850402[/C][C]0.0804183899700804[/C][C]0.95979080501496[/C][/ROW]
[ROW][C]25[/C][C]0.121910901702447[/C][C]0.243821803404895[/C][C]0.878089098297553[/C][/ROW]
[ROW][C]26[/C][C]0.67854748069699[/C][C]0.642905038606019[/C][C]0.321452519303010[/C][/ROW]
[ROW][C]27[/C][C]0.825931657446617[/C][C]0.348136685106765[/C][C]0.174068342553383[/C][/ROW]
[ROW][C]28[/C][C]0.906051149264926[/C][C]0.187897701470148[/C][C]0.0939488507350738[/C][/ROW]
[ROW][C]29[/C][C]0.901874462767496[/C][C]0.196251074465008[/C][C]0.0981255372325042[/C][/ROW]
[ROW][C]30[/C][C]0.863899080857174[/C][C]0.272201838285652[/C][C]0.136100919142826[/C][/ROW]
[ROW][C]31[/C][C]0.86978610697274[/C][C]0.260427786054519[/C][C]0.130213893027260[/C][/ROW]
[ROW][C]32[/C][C]0.84064916030485[/C][C]0.318701679390299[/C][C]0.159350839695150[/C][/ROW]
[ROW][C]33[/C][C]0.837919047712921[/C][C]0.324161904574158[/C][C]0.162080952287079[/C][/ROW]
[ROW][C]34[/C][C]0.99326910245892[/C][C]0.0134617950821591[/C][C]0.00673089754107956[/C][/ROW]
[ROW][C]35[/C][C]0.996579451597459[/C][C]0.00684109680508242[/C][C]0.00342054840254121[/C][/ROW]
[ROW][C]36[/C][C]0.997746919895384[/C][C]0.00450616020923294[/C][C]0.00225308010461647[/C][/ROW]
[ROW][C]37[/C][C]0.999119048817595[/C][C]0.00176190236480989[/C][C]0.000880951182404943[/C][/ROW]
[ROW][C]38[/C][C]0.997836777788617[/C][C]0.00432644442276608[/C][C]0.00216322221138304[/C][/ROW]
[ROW][C]39[/C][C]0.994200211933712[/C][C]0.0115995761325767[/C][C]0.00579978806628837[/C][/ROW]
[ROW][C]40[/C][C]0.993727215866376[/C][C]0.0125455682672485[/C][C]0.00627278413362423[/C][/ROW]
[ROW][C]41[/C][C]0.986167035230524[/C][C]0.0276659295389527[/C][C]0.0138329647694764[/C][/ROW]
[ROW][C]42[/C][C]0.985986169987599[/C][C]0.0280276600248023[/C][C]0.0140138300124011[/C][/ROW]
[ROW][C]43[/C][C]0.961475792643625[/C][C]0.0770484147127509[/C][C]0.0385242073563754[/C][/ROW]
[ROW][C]44[/C][C]0.937443333272573[/C][C]0.125113333454854[/C][C]0.0625566667274269[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58710&T=5

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

As an alternative you can also use a QR Code:  

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

Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
170.04174758449478720.08349516898957450.958252415505213
180.01932127810110570.03864255620221140.980678721898894
190.01858526024489140.03717052048978280.981414739755109
200.009764230464700190.01952846092940040.9902357695353
210.01985911325748780.03971822651497550.980140886742512
220.01354192748729130.02708385497458250.986458072512709
230.00931991265480010.01863982530960020.9906800873452
240.04020919498504020.08041838997008040.95979080501496
250.1219109017024470.2438218034048950.878089098297553
260.678547480696990.6429050386060190.321452519303010
270.8259316574466170.3481366851067650.174068342553383
280.9060511492649260.1878977014701480.0939488507350738
290.9018744627674960.1962510744650080.0981255372325042
300.8638990808571740.2722018382856520.136100919142826
310.869786106972740.2604277860545190.130213893027260
320.840649160304850.3187016793902990.159350839695150
330.8379190477129210.3241619045741580.162080952287079
340.993269102458920.01346179508215910.00673089754107956
350.9965794515974590.006841096805082420.00342054840254121
360.9977469198953840.004506160209232940.00225308010461647
370.9991190488175950.001761902364809890.000880951182404943
380.9978367777886170.004326444422766080.00216322221138304
390.9942002119337120.01159957613257670.00579978806628837
400.9937272158663760.01254556826724850.00627278413362423
410.9861670352305240.02766592953895270.0138329647694764
420.9859861699875990.02802766002480230.0140138300124011
430.9614757926436250.07704841471275090.0385242073563754
440.9374433332725730.1251133334548540.0625566667274269







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level40.142857142857143NOK
5% type I error level150.535714285714286NOK
10% type I error level180.642857142857143NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58710&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 level40.142857142857143NOK
5% type I error level150.535714285714286NOK
10% type I error level180.642857142857143NOK



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