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 computationFri, 20 Nov 2009 12:14:20 -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/20/t1258744810zca9ti5ifyno8wr.htm/, Retrieved Fri, 19 Apr 2024 05:18:28 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=58435, Retrieved Fri, 19 Apr 2024 05:18:28 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact143
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]
- RMPD  [Multiple Regression] [Seatbelt] [2009-11-12 14:03:14] [b98453cac15ba1066b407e146608df68]
-   PD    [Multiple Regression] [] [2009-11-19 10:25:48] [d181e5359f7da6c8509e4702d1229fb0]
-    D        [Multiple Regression] [multiple regressi...] [2009-11-20 19:14:20] [371dc2189c569d90e2c1567f632c3ec0] [Current]
-    D          [Multiple Regression] [multiple regressi...] [2009-12-14 19:53:55] [34d27ebe78dc2d31581e8710befe8733]
Feedback Forum

Post a new message
Dataseries X:
463	1802	461	461	455	462
462	1863	463	461	461	455
456	1989	462	463	461	461
455	2197	456	462	463	461
456	2409	455	456	462	463
472	2502	456	455	456	462
472	2593	472	456	455	456
471	2598	472	472	456	455
465	2053	471	472	472	456
459	2213	465	471	472	472
465	2238	459	465	471	472
468	2359	465	459	465	471
467	2151	468	465	459	465
463	2474	467	468	465	459
460	3079	463	467	468	465
462	2312	460	463	467	468
461	2565	462	460	463	467
476	1972	461	462	460	463
476	2484	476	461	462	460
471	2202	476	476	461	462
453	2151	471	476	476	461
443	1976	453	471	476	476
442	2012	443	453	471	476
444	2114	442	443	453	471
438	1772	444	442	443	453
427	1957	438	444	442	443
424	2070	427	438	444	442
416	1990	424	427	438	444
406	2182	416	424	427	438
431	2008	406	416	424	427
434	1916	431	406	416	424
418	2397	434	431	406	416
412	2114	418	434	431	406
404	1778	412	418	434	431
409	1641	404	412	418	434
412	2186	409	404	412	418
406	1773	412	409	404	412
398	1785	406	412	409	404
397	2217	398	406	412	409
385	2153	397	398	406	412
390	1895	385	397	398	406
413	2475	390	385	397	398
413	1793	413	390	385	397
401	2308	413	413	390	385
397	2051	401	413	413	390
397	1898	397	401	413	413
409	2142	397	397	401	413
419	1874	409	397	397	401
424	1560	419	409	397	397
428	1808	424	419	409	397
430	1575	428	424	419	409
424	1525	430	428	424	419
433	1997	424	430	428	424
456	1753	433	424	430	428
459	1623	456	433	424	430
446	2251	459	456	433	424
441	1890	446	459	456	433




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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58435&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 time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135







Multiple Linear Regression - Estimated Regression Equation
wkl[t] = + 38.5210955524794 -0.00152089568579747bvg[t] + 1.09898403346457Y1[t] -0.082394676964828Y2[t] + 0.409148238270283Y3[t] -0.483746709978272Y4[t] -7.65892149435435M1[t] -15.0130071036027M2[t] -11.2938298789452M3[t] -12.1334166166230M4[t] -4.62991986405527M5[t] + 13.4100542052650M6[t] -6.78455588173178M7[t] -18.0900002095661M8[t] -23.8068515987059M9[t] -12.9528577185224M10[t] + 2.41394734964293M11[t] -0.0688079449944023t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
wkl[t] =  +  38.5210955524794 -0.00152089568579747bvg[t] +  1.09898403346457Y1[t] -0.082394676964828Y2[t] +  0.409148238270283Y3[t] -0.483746709978272Y4[t] -7.65892149435435M1[t] -15.0130071036027M2[t] -11.2938298789452M3[t] -12.1334166166230M4[t] -4.62991986405527M5[t] +  13.4100542052650M6[t] -6.78455588173178M7[t] -18.0900002095661M8[t] -23.8068515987059M9[t] -12.9528577185224M10[t] +  2.41394734964293M11[t] -0.0688079449944023t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58435&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]wkl[t] =  +  38.5210955524794 -0.00152089568579747bvg[t] +  1.09898403346457Y1[t] -0.082394676964828Y2[t] +  0.409148238270283Y3[t] -0.483746709978272Y4[t] -7.65892149435435M1[t] -15.0130071036027M2[t] -11.2938298789452M3[t] -12.1334166166230M4[t] -4.62991986405527M5[t] +  13.4100542052650M6[t] -6.78455588173178M7[t] -18.0900002095661M8[t] -23.8068515987059M9[t] -12.9528577185224M10[t] +  2.41394734964293M11[t] -0.0688079449944023t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58435&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58435&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
wkl[t] = + 38.5210955524794 -0.00152089568579747bvg[t] + 1.09898403346457Y1[t] -0.082394676964828Y2[t] + 0.409148238270283Y3[t] -0.483746709978272Y4[t] -7.65892149435435M1[t] -15.0130071036027M2[t] -11.2938298789452M3[t] -12.1334166166230M4[t] -4.62991986405527M5[t] + 13.4100542052650M6[t] -6.78455588173178M7[t] -18.0900002095661M8[t] -23.8068515987059M9[t] -12.9528577185224M10[t] + 2.41394734964293M11[t] -0.0688079449944023t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)38.521095552479422.3081041.72680.0921220.046061
bvg-0.001520895685797470.002951-0.51540.609190.304595
Y11.098984033464570.1437917.64300
Y2-0.0823946769648280.22076-0.37320.7109980.355499
Y30.4091482382702830.2264941.80640.078570.039285
Y4-0.4837467099782720.157295-3.07540.003830.001915
M1-7.658921494354353.784777-2.02360.0499010.02495
M2-15.01300710360274.295187-3.49530.0011960.000598
M3-11.29382987894524.014019-2.81360.0076360.003818
M4-12.13341661662303.601294-3.36920.0017090.000854
M5-4.629919864055273.654506-1.26690.2127020.106351
M613.41005420526503.3922353.95320.0003150.000157
M7-6.784555881731783.848867-1.76270.085780.04289
M8-18.09000020956615.252776-3.44390.0013840.000692
M9-23.80685159870595.934347-4.01170.0002640.000132
M10-12.95285771852244.268398-3.03460.0042740.002137
M112.413947349642933.7460940.64440.5230950.261547
t-0.06880794499440230.075876-0.90680.3700560.185028

\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) & 38.5210955524794 & 22.308104 & 1.7268 & 0.092122 & 0.046061 \tabularnewline
bvg & -0.00152089568579747 & 0.002951 & -0.5154 & 0.60919 & 0.304595 \tabularnewline
Y1 & 1.09898403346457 & 0.143791 & 7.643 & 0 & 0 \tabularnewline
Y2 & -0.082394676964828 & 0.22076 & -0.3732 & 0.710998 & 0.355499 \tabularnewline
Y3 & 0.409148238270283 & 0.226494 & 1.8064 & 0.07857 & 0.039285 \tabularnewline
Y4 & -0.483746709978272 & 0.157295 & -3.0754 & 0.00383 & 0.001915 \tabularnewline
M1 & -7.65892149435435 & 3.784777 & -2.0236 & 0.049901 & 0.02495 \tabularnewline
M2 & -15.0130071036027 & 4.295187 & -3.4953 & 0.001196 & 0.000598 \tabularnewline
M3 & -11.2938298789452 & 4.014019 & -2.8136 & 0.007636 & 0.003818 \tabularnewline
M4 & -12.1334166166230 & 3.601294 & -3.3692 & 0.001709 & 0.000854 \tabularnewline
M5 & -4.62991986405527 & 3.654506 & -1.2669 & 0.212702 & 0.106351 \tabularnewline
M6 & 13.4100542052650 & 3.392235 & 3.9532 & 0.000315 & 0.000157 \tabularnewline
M7 & -6.78455588173178 & 3.848867 & -1.7627 & 0.08578 & 0.04289 \tabularnewline
M8 & -18.0900002095661 & 5.252776 & -3.4439 & 0.001384 & 0.000692 \tabularnewline
M9 & -23.8068515987059 & 5.934347 & -4.0117 & 0.000264 & 0.000132 \tabularnewline
M10 & -12.9528577185224 & 4.268398 & -3.0346 & 0.004274 & 0.002137 \tabularnewline
M11 & 2.41394734964293 & 3.746094 & 0.6444 & 0.523095 & 0.261547 \tabularnewline
t & -0.0688079449944023 & 0.075876 & -0.9068 & 0.370056 & 0.185028 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58435&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]38.5210955524794[/C][C]22.308104[/C][C]1.7268[/C][C]0.092122[/C][C]0.046061[/C][/ROW]
[ROW][C]bvg[/C][C]-0.00152089568579747[/C][C]0.002951[/C][C]-0.5154[/C][C]0.60919[/C][C]0.304595[/C][/ROW]
[ROW][C]Y1[/C][C]1.09898403346457[/C][C]0.143791[/C][C]7.643[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]-0.082394676964828[/C][C]0.22076[/C][C]-0.3732[/C][C]0.710998[/C][C]0.355499[/C][/ROW]
[ROW][C]Y3[/C][C]0.409148238270283[/C][C]0.226494[/C][C]1.8064[/C][C]0.07857[/C][C]0.039285[/C][/ROW]
[ROW][C]Y4[/C][C]-0.483746709978272[/C][C]0.157295[/C][C]-3.0754[/C][C]0.00383[/C][C]0.001915[/C][/ROW]
[ROW][C]M1[/C][C]-7.65892149435435[/C][C]3.784777[/C][C]-2.0236[/C][C]0.049901[/C][C]0.02495[/C][/ROW]
[ROW][C]M2[/C][C]-15.0130071036027[/C][C]4.295187[/C][C]-3.4953[/C][C]0.001196[/C][C]0.000598[/C][/ROW]
[ROW][C]M3[/C][C]-11.2938298789452[/C][C]4.014019[/C][C]-2.8136[/C][C]0.007636[/C][C]0.003818[/C][/ROW]
[ROW][C]M4[/C][C]-12.1334166166230[/C][C]3.601294[/C][C]-3.3692[/C][C]0.001709[/C][C]0.000854[/C][/ROW]
[ROW][C]M5[/C][C]-4.62991986405527[/C][C]3.654506[/C][C]-1.2669[/C][C]0.212702[/C][C]0.106351[/C][/ROW]
[ROW][C]M6[/C][C]13.4100542052650[/C][C]3.392235[/C][C]3.9532[/C][C]0.000315[/C][C]0.000157[/C][/ROW]
[ROW][C]M7[/C][C]-6.78455588173178[/C][C]3.848867[/C][C]-1.7627[/C][C]0.08578[/C][C]0.04289[/C][/ROW]
[ROW][C]M8[/C][C]-18.0900002095661[/C][C]5.252776[/C][C]-3.4439[/C][C]0.001384[/C][C]0.000692[/C][/ROW]
[ROW][C]M9[/C][C]-23.8068515987059[/C][C]5.934347[/C][C]-4.0117[/C][C]0.000264[/C][C]0.000132[/C][/ROW]
[ROW][C]M10[/C][C]-12.9528577185224[/C][C]4.268398[/C][C]-3.0346[/C][C]0.004274[/C][C]0.002137[/C][/ROW]
[ROW][C]M11[/C][C]2.41394734964293[/C][C]3.746094[/C][C]0.6444[/C][C]0.523095[/C][C]0.261547[/C][/ROW]
[ROW][C]t[/C][C]-0.0688079449944023[/C][C]0.075876[/C][C]-0.9068[/C][C]0.370056[/C][C]0.185028[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58435&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58435&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)38.521095552479422.3081041.72680.0921220.046061
bvg-0.001520895685797470.002951-0.51540.609190.304595
Y11.098984033464570.1437917.64300
Y2-0.0823946769648280.22076-0.37320.7109980.355499
Y30.4091482382702830.2264941.80640.078570.039285
Y4-0.4837467099782720.157295-3.07540.003830.001915
M1-7.658921494354353.784777-2.02360.0499010.02495
M2-15.01300710360274.295187-3.49530.0011960.000598
M3-11.29382987894524.014019-2.81360.0076360.003818
M4-12.13341661662303.601294-3.36920.0017090.000854
M5-4.629919864055273.654506-1.26690.2127020.106351
M613.41005420526503.3922353.95320.0003150.000157
M7-6.784555881731783.848867-1.76270.085780.04289
M8-18.09000020956615.252776-3.44390.0013840.000692
M9-23.80685159870595.934347-4.01170.0002640.000132
M10-12.95285771852244.268398-3.03460.0042740.002137
M112.413947349642933.7460940.64440.5230950.261547
t-0.06880794499440230.075876-0.90680.3700560.185028







Multiple Linear Regression - Regression Statistics
Multiple R0.988899182665083
R-squared0.97792159347567
Adjusted R-squared0.968297672683013
F-TEST (value)101.613636951569
F-TEST (DF numerator)17
F-TEST (DF denominator)39
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.71069167719526
Sum Squared Residuals865.434027026272

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.988899182665083 \tabularnewline
R-squared & 0.97792159347567 \tabularnewline
Adjusted R-squared & 0.968297672683013 \tabularnewline
F-TEST (value) & 101.613636951569 \tabularnewline
F-TEST (DF numerator) & 17 \tabularnewline
F-TEST (DF denominator) & 39 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 4.71069167719526 \tabularnewline
Sum Squared Residuals & 865.434027026272 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58435&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.988899182665083[/C][/ROW]
[ROW][C]R-squared[/C][C]0.97792159347567[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.968297672683013[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]101.613636951569[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]17[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]39[/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]4.71069167719526[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]865.434027026272[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58435&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58435&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.988899182665083
R-squared0.97792159347567
Adjusted R-squared0.968297672683013
F-TEST (value)101.613636951569
F-TEST (DF numerator)17
F-TEST (DF denominator)39
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation4.71069167719526
Sum Squared Residuals865.434027026272







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1463459.3718738367213.62812616327886
2462459.8952901120432.10470988795653
3456459.187772888032-3.18777288803227
4455452.2698188554322.7301811445679
5456457.400820147714-1.40082014771398
6472474.440778964047-2.44077896404659
7472474.033641304716-2.03364130471551
8471462.2263646702698.7736353297309
9465462.2332345537762.76676544622374
10459458.5236202957630.476379704237281
11465467.27491064952-2.27491064952004
12468469.725256519834-1.72525651983418
13467465.5640482519841.43595174801603
14463461.6611070163611.33889298363914
15460458.4027574041641.59724259583569
16462453.8331279517598.16687204824076
17461462.175336005547-1.1753360055466
18476480.492162009258-4.49216200925834
19476478.286737171548-2.28673717154764
20471464.7288156694156.27118433058544
21453460.146772131966-7.14677213196571
22443444.572174944957-1.57217494495710
23442448.262942482809-6.26294248280918
24444440.404083825433.59591617456951
25438440.092821851425-2.09282185142451
26427430.058187902105-3.05818790210455
27424423.244282849470.755717150529872
28416416.644566318303-0.644566318302859
29406413.644404556278-7.64440455627754
30431425.6432927059555.35670729404479
31434431.9963989070922.00360109290750
32418420.906172282792-2.90617228279153
33412412.78617091795-0.786170917950232
34404407.940565399571-3.94056539957111
35409407.1518090835091.8481909164906
36412415.279301153185-3.27930115318458
37406410.693974701347-4.69397470134713
38398402.32745703837-4.32745703837046
39397395.8320063407611.16799365923901
40385390.674992804677-5.67499280467734
41390385.0259533282844.9740466717162
42413412.0594816873040.940518312696215
43413413.271941748622-0.271941748622342
44401407.070052338508-6.07005233850753
45397395.4791307243741.52086927562637
46397391.9636393597095.03636064029093
47409402.3103377841616.68966221583862
48419417.5913585015511.40864149844925
49424422.2772813585231.72271864147675
50428424.0579579311213.94204206887936
51430430.333180517572-0.333180517572299
52424428.577494069828-4.57749406982845
53433427.7534859621785.24651403782191
54456455.3642846334360.635715366563918
55459456.4112808680222.588719131978
56446452.068595039017-6.06859503901729
57441437.3546916719343.64530832806583

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 463 & 459.371873836721 & 3.62812616327886 \tabularnewline
2 & 462 & 459.895290112043 & 2.10470988795653 \tabularnewline
3 & 456 & 459.187772888032 & -3.18777288803227 \tabularnewline
4 & 455 & 452.269818855432 & 2.7301811445679 \tabularnewline
5 & 456 & 457.400820147714 & -1.40082014771398 \tabularnewline
6 & 472 & 474.440778964047 & -2.44077896404659 \tabularnewline
7 & 472 & 474.033641304716 & -2.03364130471551 \tabularnewline
8 & 471 & 462.226364670269 & 8.7736353297309 \tabularnewline
9 & 465 & 462.233234553776 & 2.76676544622374 \tabularnewline
10 & 459 & 458.523620295763 & 0.476379704237281 \tabularnewline
11 & 465 & 467.27491064952 & -2.27491064952004 \tabularnewline
12 & 468 & 469.725256519834 & -1.72525651983418 \tabularnewline
13 & 467 & 465.564048251984 & 1.43595174801603 \tabularnewline
14 & 463 & 461.661107016361 & 1.33889298363914 \tabularnewline
15 & 460 & 458.402757404164 & 1.59724259583569 \tabularnewline
16 & 462 & 453.833127951759 & 8.16687204824076 \tabularnewline
17 & 461 & 462.175336005547 & -1.1753360055466 \tabularnewline
18 & 476 & 480.492162009258 & -4.49216200925834 \tabularnewline
19 & 476 & 478.286737171548 & -2.28673717154764 \tabularnewline
20 & 471 & 464.728815669415 & 6.27118433058544 \tabularnewline
21 & 453 & 460.146772131966 & -7.14677213196571 \tabularnewline
22 & 443 & 444.572174944957 & -1.57217494495710 \tabularnewline
23 & 442 & 448.262942482809 & -6.26294248280918 \tabularnewline
24 & 444 & 440.40408382543 & 3.59591617456951 \tabularnewline
25 & 438 & 440.092821851425 & -2.09282185142451 \tabularnewline
26 & 427 & 430.058187902105 & -3.05818790210455 \tabularnewline
27 & 424 & 423.24428284947 & 0.755717150529872 \tabularnewline
28 & 416 & 416.644566318303 & -0.644566318302859 \tabularnewline
29 & 406 & 413.644404556278 & -7.64440455627754 \tabularnewline
30 & 431 & 425.643292705955 & 5.35670729404479 \tabularnewline
31 & 434 & 431.996398907092 & 2.00360109290750 \tabularnewline
32 & 418 & 420.906172282792 & -2.90617228279153 \tabularnewline
33 & 412 & 412.78617091795 & -0.786170917950232 \tabularnewline
34 & 404 & 407.940565399571 & -3.94056539957111 \tabularnewline
35 & 409 & 407.151809083509 & 1.8481909164906 \tabularnewline
36 & 412 & 415.279301153185 & -3.27930115318458 \tabularnewline
37 & 406 & 410.693974701347 & -4.69397470134713 \tabularnewline
38 & 398 & 402.32745703837 & -4.32745703837046 \tabularnewline
39 & 397 & 395.832006340761 & 1.16799365923901 \tabularnewline
40 & 385 & 390.674992804677 & -5.67499280467734 \tabularnewline
41 & 390 & 385.025953328284 & 4.9740466717162 \tabularnewline
42 & 413 & 412.059481687304 & 0.940518312696215 \tabularnewline
43 & 413 & 413.271941748622 & -0.271941748622342 \tabularnewline
44 & 401 & 407.070052338508 & -6.07005233850753 \tabularnewline
45 & 397 & 395.479130724374 & 1.52086927562637 \tabularnewline
46 & 397 & 391.963639359709 & 5.03636064029093 \tabularnewline
47 & 409 & 402.310337784161 & 6.68966221583862 \tabularnewline
48 & 419 & 417.591358501551 & 1.40864149844925 \tabularnewline
49 & 424 & 422.277281358523 & 1.72271864147675 \tabularnewline
50 & 428 & 424.057957931121 & 3.94204206887936 \tabularnewline
51 & 430 & 430.333180517572 & -0.333180517572299 \tabularnewline
52 & 424 & 428.577494069828 & -4.57749406982845 \tabularnewline
53 & 433 & 427.753485962178 & 5.24651403782191 \tabularnewline
54 & 456 & 455.364284633436 & 0.635715366563918 \tabularnewline
55 & 459 & 456.411280868022 & 2.588719131978 \tabularnewline
56 & 446 & 452.068595039017 & -6.06859503901729 \tabularnewline
57 & 441 & 437.354691671934 & 3.64530832806583 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58435&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]463[/C][C]459.371873836721[/C][C]3.62812616327886[/C][/ROW]
[ROW][C]2[/C][C]462[/C][C]459.895290112043[/C][C]2.10470988795653[/C][/ROW]
[ROW][C]3[/C][C]456[/C][C]459.187772888032[/C][C]-3.18777288803227[/C][/ROW]
[ROW][C]4[/C][C]455[/C][C]452.269818855432[/C][C]2.7301811445679[/C][/ROW]
[ROW][C]5[/C][C]456[/C][C]457.400820147714[/C][C]-1.40082014771398[/C][/ROW]
[ROW][C]6[/C][C]472[/C][C]474.440778964047[/C][C]-2.44077896404659[/C][/ROW]
[ROW][C]7[/C][C]472[/C][C]474.033641304716[/C][C]-2.03364130471551[/C][/ROW]
[ROW][C]8[/C][C]471[/C][C]462.226364670269[/C][C]8.7736353297309[/C][/ROW]
[ROW][C]9[/C][C]465[/C][C]462.233234553776[/C][C]2.76676544622374[/C][/ROW]
[ROW][C]10[/C][C]459[/C][C]458.523620295763[/C][C]0.476379704237281[/C][/ROW]
[ROW][C]11[/C][C]465[/C][C]467.27491064952[/C][C]-2.27491064952004[/C][/ROW]
[ROW][C]12[/C][C]468[/C][C]469.725256519834[/C][C]-1.72525651983418[/C][/ROW]
[ROW][C]13[/C][C]467[/C][C]465.564048251984[/C][C]1.43595174801603[/C][/ROW]
[ROW][C]14[/C][C]463[/C][C]461.661107016361[/C][C]1.33889298363914[/C][/ROW]
[ROW][C]15[/C][C]460[/C][C]458.402757404164[/C][C]1.59724259583569[/C][/ROW]
[ROW][C]16[/C][C]462[/C][C]453.833127951759[/C][C]8.16687204824076[/C][/ROW]
[ROW][C]17[/C][C]461[/C][C]462.175336005547[/C][C]-1.1753360055466[/C][/ROW]
[ROW][C]18[/C][C]476[/C][C]480.492162009258[/C][C]-4.49216200925834[/C][/ROW]
[ROW][C]19[/C][C]476[/C][C]478.286737171548[/C][C]-2.28673717154764[/C][/ROW]
[ROW][C]20[/C][C]471[/C][C]464.728815669415[/C][C]6.27118433058544[/C][/ROW]
[ROW][C]21[/C][C]453[/C][C]460.146772131966[/C][C]-7.14677213196571[/C][/ROW]
[ROW][C]22[/C][C]443[/C][C]444.572174944957[/C][C]-1.57217494495710[/C][/ROW]
[ROW][C]23[/C][C]442[/C][C]448.262942482809[/C][C]-6.26294248280918[/C][/ROW]
[ROW][C]24[/C][C]444[/C][C]440.40408382543[/C][C]3.59591617456951[/C][/ROW]
[ROW][C]25[/C][C]438[/C][C]440.092821851425[/C][C]-2.09282185142451[/C][/ROW]
[ROW][C]26[/C][C]427[/C][C]430.058187902105[/C][C]-3.05818790210455[/C][/ROW]
[ROW][C]27[/C][C]424[/C][C]423.24428284947[/C][C]0.755717150529872[/C][/ROW]
[ROW][C]28[/C][C]416[/C][C]416.644566318303[/C][C]-0.644566318302859[/C][/ROW]
[ROW][C]29[/C][C]406[/C][C]413.644404556278[/C][C]-7.64440455627754[/C][/ROW]
[ROW][C]30[/C][C]431[/C][C]425.643292705955[/C][C]5.35670729404479[/C][/ROW]
[ROW][C]31[/C][C]434[/C][C]431.996398907092[/C][C]2.00360109290750[/C][/ROW]
[ROW][C]32[/C][C]418[/C][C]420.906172282792[/C][C]-2.90617228279153[/C][/ROW]
[ROW][C]33[/C][C]412[/C][C]412.78617091795[/C][C]-0.786170917950232[/C][/ROW]
[ROW][C]34[/C][C]404[/C][C]407.940565399571[/C][C]-3.94056539957111[/C][/ROW]
[ROW][C]35[/C][C]409[/C][C]407.151809083509[/C][C]1.8481909164906[/C][/ROW]
[ROW][C]36[/C][C]412[/C][C]415.279301153185[/C][C]-3.27930115318458[/C][/ROW]
[ROW][C]37[/C][C]406[/C][C]410.693974701347[/C][C]-4.69397470134713[/C][/ROW]
[ROW][C]38[/C][C]398[/C][C]402.32745703837[/C][C]-4.32745703837046[/C][/ROW]
[ROW][C]39[/C][C]397[/C][C]395.832006340761[/C][C]1.16799365923901[/C][/ROW]
[ROW][C]40[/C][C]385[/C][C]390.674992804677[/C][C]-5.67499280467734[/C][/ROW]
[ROW][C]41[/C][C]390[/C][C]385.025953328284[/C][C]4.9740466717162[/C][/ROW]
[ROW][C]42[/C][C]413[/C][C]412.059481687304[/C][C]0.940518312696215[/C][/ROW]
[ROW][C]43[/C][C]413[/C][C]413.271941748622[/C][C]-0.271941748622342[/C][/ROW]
[ROW][C]44[/C][C]401[/C][C]407.070052338508[/C][C]-6.07005233850753[/C][/ROW]
[ROW][C]45[/C][C]397[/C][C]395.479130724374[/C][C]1.52086927562637[/C][/ROW]
[ROW][C]46[/C][C]397[/C][C]391.963639359709[/C][C]5.03636064029093[/C][/ROW]
[ROW][C]47[/C][C]409[/C][C]402.310337784161[/C][C]6.68966221583862[/C][/ROW]
[ROW][C]48[/C][C]419[/C][C]417.591358501551[/C][C]1.40864149844925[/C][/ROW]
[ROW][C]49[/C][C]424[/C][C]422.277281358523[/C][C]1.72271864147675[/C][/ROW]
[ROW][C]50[/C][C]428[/C][C]424.057957931121[/C][C]3.94204206887936[/C][/ROW]
[ROW][C]51[/C][C]430[/C][C]430.333180517572[/C][C]-0.333180517572299[/C][/ROW]
[ROW][C]52[/C][C]424[/C][C]428.577494069828[/C][C]-4.57749406982845[/C][/ROW]
[ROW][C]53[/C][C]433[/C][C]427.753485962178[/C][C]5.24651403782191[/C][/ROW]
[ROW][C]54[/C][C]456[/C][C]455.364284633436[/C][C]0.635715366563918[/C][/ROW]
[ROW][C]55[/C][C]459[/C][C]456.411280868022[/C][C]2.588719131978[/C][/ROW]
[ROW][C]56[/C][C]446[/C][C]452.068595039017[/C][C]-6.06859503901729[/C][/ROW]
[ROW][C]57[/C][C]441[/C][C]437.354691671934[/C][C]3.64530832806583[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58435&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58435&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
1463459.3718738367213.62812616327886
2462459.8952901120432.10470988795653
3456459.187772888032-3.18777288803227
4455452.2698188554322.7301811445679
5456457.400820147714-1.40082014771398
6472474.440778964047-2.44077896404659
7472474.033641304716-2.03364130471551
8471462.2263646702698.7736353297309
9465462.2332345537762.76676544622374
10459458.5236202957630.476379704237281
11465467.27491064952-2.27491064952004
12468469.725256519834-1.72525651983418
13467465.5640482519841.43595174801603
14463461.6611070163611.33889298363914
15460458.4027574041641.59724259583569
16462453.8331279517598.16687204824076
17461462.175336005547-1.1753360055466
18476480.492162009258-4.49216200925834
19476478.286737171548-2.28673717154764
20471464.7288156694156.27118433058544
21453460.146772131966-7.14677213196571
22443444.572174944957-1.57217494495710
23442448.262942482809-6.26294248280918
24444440.404083825433.59591617456951
25438440.092821851425-2.09282185142451
26427430.058187902105-3.05818790210455
27424423.244282849470.755717150529872
28416416.644566318303-0.644566318302859
29406413.644404556278-7.64440455627754
30431425.6432927059555.35670729404479
31434431.9963989070922.00360109290750
32418420.906172282792-2.90617228279153
33412412.78617091795-0.786170917950232
34404407.940565399571-3.94056539957111
35409407.1518090835091.8481909164906
36412415.279301153185-3.27930115318458
37406410.693974701347-4.69397470134713
38398402.32745703837-4.32745703837046
39397395.8320063407611.16799365923901
40385390.674992804677-5.67499280467734
41390385.0259533282844.9740466717162
42413412.0594816873040.940518312696215
43413413.271941748622-0.271941748622342
44401407.070052338508-6.07005233850753
45397395.4791307243741.52086927562637
46397391.9636393597095.03636064029093
47409402.3103377841616.68966221583862
48419417.5913585015511.40864149844925
49424422.2772813585231.72271864147675
50428424.0579579311213.94204206887936
51430430.333180517572-0.333180517572299
52424428.577494069828-4.57749406982845
53433427.7534859621785.24651403782191
54456455.3642846334360.635715366563918
55459456.4112808680222.588719131978
56446452.068595039017-6.06859503901729
57441437.3546916719343.64530832806583







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.507276847126970.985446305746060.49272315287303
220.4130923489823150.826184697964630.586907651017685
230.3597732179046780.7195464358093550.640226782095322
240.4014801067370470.8029602134740950.598519893262953
250.3258122359020370.6516244718040750.674187764097963
260.2158547669062570.4317095338125130.784145233093743
270.2537656638768860.5075313277537730.746234336123114
280.3138462535973980.6276925071947970.686153746402602
290.4846393491962030.9692786983924070.515360650803797
300.895556641169320.2088867176613590.104443358830679
310.9898371695429280.02032566091414370.0101628304570718
320.9809800725925550.03803985481488910.0190199274074445
330.9544438949201250.09111221015974890.0455561050798744
340.922383082598750.1552338348024990.0776169174012495
350.9562595214172660.08748095716546850.0437404785827342
360.9502742806386670.0994514387226670.0497257193613335

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.50727684712697 & 0.98544630574606 & 0.49272315287303 \tabularnewline
22 & 0.413092348982315 & 0.82618469796463 & 0.586907651017685 \tabularnewline
23 & 0.359773217904678 & 0.719546435809355 & 0.640226782095322 \tabularnewline
24 & 0.401480106737047 & 0.802960213474095 & 0.598519893262953 \tabularnewline
25 & 0.325812235902037 & 0.651624471804075 & 0.674187764097963 \tabularnewline
26 & 0.215854766906257 & 0.431709533812513 & 0.784145233093743 \tabularnewline
27 & 0.253765663876886 & 0.507531327753773 & 0.746234336123114 \tabularnewline
28 & 0.313846253597398 & 0.627692507194797 & 0.686153746402602 \tabularnewline
29 & 0.484639349196203 & 0.969278698392407 & 0.515360650803797 \tabularnewline
30 & 0.89555664116932 & 0.208886717661359 & 0.104443358830679 \tabularnewline
31 & 0.989837169542928 & 0.0203256609141437 & 0.0101628304570718 \tabularnewline
32 & 0.980980072592555 & 0.0380398548148891 & 0.0190199274074445 \tabularnewline
33 & 0.954443894920125 & 0.0911122101597489 & 0.0455561050798744 \tabularnewline
34 & 0.92238308259875 & 0.155233834802499 & 0.0776169174012495 \tabularnewline
35 & 0.956259521417266 & 0.0874809571654685 & 0.0437404785827342 \tabularnewline
36 & 0.950274280638667 & 0.099451438722667 & 0.0497257193613335 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=58435&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]21[/C][C]0.50727684712697[/C][C]0.98544630574606[/C][C]0.49272315287303[/C][/ROW]
[ROW][C]22[/C][C]0.413092348982315[/C][C]0.82618469796463[/C][C]0.586907651017685[/C][/ROW]
[ROW][C]23[/C][C]0.359773217904678[/C][C]0.719546435809355[/C][C]0.640226782095322[/C][/ROW]
[ROW][C]24[/C][C]0.401480106737047[/C][C]0.802960213474095[/C][C]0.598519893262953[/C][/ROW]
[ROW][C]25[/C][C]0.325812235902037[/C][C]0.651624471804075[/C][C]0.674187764097963[/C][/ROW]
[ROW][C]26[/C][C]0.215854766906257[/C][C]0.431709533812513[/C][C]0.784145233093743[/C][/ROW]
[ROW][C]27[/C][C]0.253765663876886[/C][C]0.507531327753773[/C][C]0.746234336123114[/C][/ROW]
[ROW][C]28[/C][C]0.313846253597398[/C][C]0.627692507194797[/C][C]0.686153746402602[/C][/ROW]
[ROW][C]29[/C][C]0.484639349196203[/C][C]0.969278698392407[/C][C]0.515360650803797[/C][/ROW]
[ROW][C]30[/C][C]0.89555664116932[/C][C]0.208886717661359[/C][C]0.104443358830679[/C][/ROW]
[ROW][C]31[/C][C]0.989837169542928[/C][C]0.0203256609141437[/C][C]0.0101628304570718[/C][/ROW]
[ROW][C]32[/C][C]0.980980072592555[/C][C]0.0380398548148891[/C][C]0.0190199274074445[/C][/ROW]
[ROW][C]33[/C][C]0.954443894920125[/C][C]0.0911122101597489[/C][C]0.0455561050798744[/C][/ROW]
[ROW][C]34[/C][C]0.92238308259875[/C][C]0.155233834802499[/C][C]0.0776169174012495[/C][/ROW]
[ROW][C]35[/C][C]0.956259521417266[/C][C]0.0874809571654685[/C][C]0.0437404785827342[/C][/ROW]
[ROW][C]36[/C][C]0.950274280638667[/C][C]0.099451438722667[/C][C]0.0497257193613335[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=58435&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=58435&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
210.507276847126970.985446305746060.49272315287303
220.4130923489823150.826184697964630.586907651017685
230.3597732179046780.7195464358093550.640226782095322
240.4014801067370470.8029602134740950.598519893262953
250.3258122359020370.6516244718040750.674187764097963
260.2158547669062570.4317095338125130.784145233093743
270.2537656638768860.5075313277537730.746234336123114
280.3138462535973980.6276925071947970.686153746402602
290.4846393491962030.9692786983924070.515360650803797
300.895556641169320.2088867176613590.104443358830679
310.9898371695429280.02032566091414370.0101628304570718
320.9809800725925550.03803985481488910.0190199274074445
330.9544438949201250.09111221015974890.0455561050798744
340.922383082598750.1552338348024990.0776169174012495
350.9562595214172660.08748095716546850.0437404785827342
360.9502742806386670.0994514387226670.0497257193613335







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

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

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



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