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 computationThu, 26 Nov 2009 09:24:19 -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/26/t1259252853110m1bxt7v0fp0h.htm/, Retrieved Mon, 29 Apr 2024 01:58:44 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=60160, Retrieved Mon, 29 Apr 2024 01:58:44 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact117
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [Q1 The Seatbeltlaw] [2007-11-14 19:27:43] [8cd6641b921d30ebe00b648d1481bba0]
- RM D  [Multiple Regression] [Seatbelt] [2009-11-12 14:10:54] [b98453cac15ba1066b407e146608df68]
F    D    [Multiple Regression] [] [2009-11-20 14:29:56] [e149fd9094b67af26551857fa83a9d9d]
-    D        [Multiple Regression] [] [2009-11-26 16:24:19] [429631dabc57c2ce83a6344a979b9063] [Current]
Feedback Forum

Post a new message
Dataseries X:
591	0	595	594	611	613
589	0	591	595	594	611
584	0	589	591	595	594
573	0	584	589	591	595
567	0	573	584	589	591
569	0	567	573	584	589
621	0	569	567	573	584
629	0	621	569	567	573
628	0	629	621	569	567
612	0	628	629	621	569
595	0	612	628	629	621
597	0	595	612	628	629
593	0	597	595	612	628
590	0	593	597	595	612
580	0	590	593	597	595
574	0	580	590	593	597
573	0	574	580	590	593
573	0	573	574	580	590
620	0	573	573	574	580
626	0	620	573	573	574
620	0	626	620	573	573
588	0	620	626	620	573
566	0	588	620	626	620
557	0	566	588	620	626
561	0	557	566	588	620
549	0	561	557	566	588
532	0	549	561	557	566
526	0	532	549	561	557
511	0	526	532	549	561
499	0	511	526	532	549
555	0	499	511	526	532
565	0	555	499	511	526
542	0	565	555	499	511
527	0	542	565	555	499
510	0	527	542	565	555
514	0	510	527	542	565
517	0	514	510	527	542
508	0	517	514	510	527
493	0	508	517	514	510
490	0	493	508	517	514
469	0	490	493	508	517
478	0	469	490	493	508
528	0	478	469	490	493
534	0	528	478	469	490
518	1	534	528	478	469
506	1	518	534	528	478
502	1	506	518	534	528
516	1	502	506	518	534
528	1	516	502	506	518
533	1	528	516	502	506
536	1	533	528	516	502
537	1	536	533	528	516
524	1	537	536	533	528
536	1	524	537	536	533
587	1	536	524	537	536
597	1	587	536	524	537
581	1	597	587	536	524




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
Y[t] = + 62.0612446771867 + 11.2313886269777X[t] + 0.903839553931842Y1[t] + 0.138496282550783Y2[t] -0.0268436559582434Y3[t] -0.106380515370436Y4[t] -0.304423604736795M1[t] -8.57352205803797M2[t] -15.1525310336085M3[t] -10.9992974103655M4[t] -16.0366466935367M5[t] -3.40079273180213M6[t] + 46.5949436809979M7[t] + 7.48450705642377M8[t] -22.312510614135M9[t] -29.1933619104057M10[t] -19.6969423104956M11[t] -0.303391881932367t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Y[t] =  +  62.0612446771867 +  11.2313886269777X[t] +  0.903839553931842Y1[t] +  0.138496282550783Y2[t] -0.0268436559582434Y3[t] -0.106380515370436Y4[t] -0.304423604736795M1[t] -8.57352205803797M2[t] -15.1525310336085M3[t] -10.9992974103655M4[t] -16.0366466935367M5[t] -3.40079273180213M6[t] +  46.5949436809979M7[t] +  7.48450705642377M8[t] -22.312510614135M9[t] -29.1933619104057M10[t] -19.6969423104956M11[t] -0.303391881932367t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60160&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Y[t] =  +  62.0612446771867 +  11.2313886269777X[t] +  0.903839553931842Y1[t] +  0.138496282550783Y2[t] -0.0268436559582434Y3[t] -0.106380515370436Y4[t] -0.304423604736795M1[t] -8.57352205803797M2[t] -15.1525310336085M3[t] -10.9992974103655M4[t] -16.0366466935367M5[t] -3.40079273180213M6[t] +  46.5949436809979M7[t] +  7.48450705642377M8[t] -22.312510614135M9[t] -29.1933619104057M10[t] -19.6969423104956M11[t] -0.303391881932367t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60160&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60160&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] = + 62.0612446771867 + 11.2313886269777X[t] + 0.903839553931842Y1[t] + 0.138496282550783Y2[t] -0.0268436559582434Y3[t] -0.106380515370436Y4[t] -0.304423604736795M1[t] -8.57352205803797M2[t] -15.1525310336085M3[t] -10.9992974103655M4[t] -16.0366466935367M5[t] -3.40079273180213M6[t] + 46.5949436809979M7[t] + 7.48450705642377M8[t] -22.312510614135M9[t] -29.1933619104057M10[t] -19.6969423104956M11[t] -0.303391881932367t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)62.061244677186729.0901642.13340.0392380.019619
X11.23138862697774.1187962.72690.0095320.004766
Y10.9038395539318420.1538655.87421e-060
Y20.1384962825507830.2113390.65530.5161050.258052
Y3-0.02684365595824340.204305-0.13140.8961420.448071
Y4-0.1063805153704360.15215-0.69920.4885880.244294
M1-0.3044236047367955.151245-0.05910.9531770.476588
M2-8.573522058037976.08372-1.40930.1666840.083342
M3-15.15253103360856.209176-2.44030.0193190.009659
M4-10.99929741036555.5677-1.97560.0553120.027656
M5-16.03664669353675.11864-3.1330.0032780.001639
M6-3.400792731802135.061933-0.67180.5056480.252824
M746.59494368099795.514568.449400
M87.4845070564237711.600720.64520.5225910.261295
M9-22.31251061413512.101186-1.84380.0728160.036408
M10-29.193361910405711.412181-2.55810.0145240.007262
M11-19.69694231049565.519844-3.56840.0009710.000485
t-0.3033918819323670.132367-2.29210.0273840.013692

\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) & 62.0612446771867 & 29.090164 & 2.1334 & 0.039238 & 0.019619 \tabularnewline
X & 11.2313886269777 & 4.118796 & 2.7269 & 0.009532 & 0.004766 \tabularnewline
Y1 & 0.903839553931842 & 0.153865 & 5.8742 & 1e-06 & 0 \tabularnewline
Y2 & 0.138496282550783 & 0.211339 & 0.6553 & 0.516105 & 0.258052 \tabularnewline
Y3 & -0.0268436559582434 & 0.204305 & -0.1314 & 0.896142 & 0.448071 \tabularnewline
Y4 & -0.106380515370436 & 0.15215 & -0.6992 & 0.488588 & 0.244294 \tabularnewline
M1 & -0.304423604736795 & 5.151245 & -0.0591 & 0.953177 & 0.476588 \tabularnewline
M2 & -8.57352205803797 & 6.08372 & -1.4093 & 0.166684 & 0.083342 \tabularnewline
M3 & -15.1525310336085 & 6.209176 & -2.4403 & 0.019319 & 0.009659 \tabularnewline
M4 & -10.9992974103655 & 5.5677 & -1.9756 & 0.055312 & 0.027656 \tabularnewline
M5 & -16.0366466935367 & 5.11864 & -3.133 & 0.003278 & 0.001639 \tabularnewline
M6 & -3.40079273180213 & 5.061933 & -0.6718 & 0.505648 & 0.252824 \tabularnewline
M7 & 46.5949436809979 & 5.51456 & 8.4494 & 0 & 0 \tabularnewline
M8 & 7.48450705642377 & 11.60072 & 0.6452 & 0.522591 & 0.261295 \tabularnewline
M9 & -22.312510614135 & 12.101186 & -1.8438 & 0.072816 & 0.036408 \tabularnewline
M10 & -29.1933619104057 & 11.412181 & -2.5581 & 0.014524 & 0.007262 \tabularnewline
M11 & -19.6969423104956 & 5.519844 & -3.5684 & 0.000971 & 0.000485 \tabularnewline
t & -0.303391881932367 & 0.132367 & -2.2921 & 0.027384 & 0.013692 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60160&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]62.0612446771867[/C][C]29.090164[/C][C]2.1334[/C][C]0.039238[/C][C]0.019619[/C][/ROW]
[ROW][C]X[/C][C]11.2313886269777[/C][C]4.118796[/C][C]2.7269[/C][C]0.009532[/C][C]0.004766[/C][/ROW]
[ROW][C]Y1[/C][C]0.903839553931842[/C][C]0.153865[/C][C]5.8742[/C][C]1e-06[/C][C]0[/C][/ROW]
[ROW][C]Y2[/C][C]0.138496282550783[/C][C]0.211339[/C][C]0.6553[/C][C]0.516105[/C][C]0.258052[/C][/ROW]
[ROW][C]Y3[/C][C]-0.0268436559582434[/C][C]0.204305[/C][C]-0.1314[/C][C]0.896142[/C][C]0.448071[/C][/ROW]
[ROW][C]Y4[/C][C]-0.106380515370436[/C][C]0.15215[/C][C]-0.6992[/C][C]0.488588[/C][C]0.244294[/C][/ROW]
[ROW][C]M1[/C][C]-0.304423604736795[/C][C]5.151245[/C][C]-0.0591[/C][C]0.953177[/C][C]0.476588[/C][/ROW]
[ROW][C]M2[/C][C]-8.57352205803797[/C][C]6.08372[/C][C]-1.4093[/C][C]0.166684[/C][C]0.083342[/C][/ROW]
[ROW][C]M3[/C][C]-15.1525310336085[/C][C]6.209176[/C][C]-2.4403[/C][C]0.019319[/C][C]0.009659[/C][/ROW]
[ROW][C]M4[/C][C]-10.9992974103655[/C][C]5.5677[/C][C]-1.9756[/C][C]0.055312[/C][C]0.027656[/C][/ROW]
[ROW][C]M5[/C][C]-16.0366466935367[/C][C]5.11864[/C][C]-3.133[/C][C]0.003278[/C][C]0.001639[/C][/ROW]
[ROW][C]M6[/C][C]-3.40079273180213[/C][C]5.061933[/C][C]-0.6718[/C][C]0.505648[/C][C]0.252824[/C][/ROW]
[ROW][C]M7[/C][C]46.5949436809979[/C][C]5.51456[/C][C]8.4494[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M8[/C][C]7.48450705642377[/C][C]11.60072[/C][C]0.6452[/C][C]0.522591[/C][C]0.261295[/C][/ROW]
[ROW][C]M9[/C][C]-22.312510614135[/C][C]12.101186[/C][C]-1.8438[/C][C]0.072816[/C][C]0.036408[/C][/ROW]
[ROW][C]M10[/C][C]-29.1933619104057[/C][C]11.412181[/C][C]-2.5581[/C][C]0.014524[/C][C]0.007262[/C][/ROW]
[ROW][C]M11[/C][C]-19.6969423104956[/C][C]5.519844[/C][C]-3.5684[/C][C]0.000971[/C][C]0.000485[/C][/ROW]
[ROW][C]t[/C][C]-0.303391881932367[/C][C]0.132367[/C][C]-2.2921[/C][C]0.027384[/C][C]0.013692[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60160&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60160&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)62.061244677186729.0901642.13340.0392380.019619
X11.23138862697774.1187962.72690.0095320.004766
Y10.9038395539318420.1538655.87421e-060
Y20.1384962825507830.2113390.65530.5161050.258052
Y3-0.02684365595824340.204305-0.13140.8961420.448071
Y4-0.1063805153704360.15215-0.69920.4885880.244294
M1-0.3044236047367955.151245-0.05910.9531770.476588
M2-8.573522058037976.08372-1.40930.1666840.083342
M3-15.15253103360856.209176-2.44030.0193190.009659
M4-10.99929741036555.5677-1.97560.0553120.027656
M5-16.03664669353675.11864-3.1330.0032780.001639
M6-3.400792731802135.061933-0.67180.5056480.252824
M746.59494368099795.514568.449400
M87.4845070564237711.600720.64520.5225910.261295
M9-22.31251061413512.101186-1.84380.0728160.036408
M10-29.193361910405711.412181-2.55810.0145240.007262
M11-19.69694231049565.519844-3.56840.0009710.000485
t-0.3033918819323670.132367-2.29210.0273840.013692







Multiple Linear Regression - Regression Statistics
Multiple R0.9916496435823
R-squared0.983369015616902
Adjusted R-squared0.97611961216786
F-TEST (value)135.648267133865
F-TEST (DF numerator)17
F-TEST (DF denominator)39
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.43186455317889
Sum Squared Residuals1613.38638358712

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.9916496435823 \tabularnewline
R-squared & 0.983369015616902 \tabularnewline
Adjusted R-squared & 0.97611961216786 \tabularnewline
F-TEST (value) & 135.648267133865 \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 & 6.43186455317889 \tabularnewline
Sum Squared Residuals & 1613.38638358712 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60160&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.9916496435823[/C][/ROW]
[ROW][C]R-squared[/C][C]0.983369015616902[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.97611961216786[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]135.648267133865[/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]6.43186455317889[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1613.38638358712[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60160&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60160&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.9916496435823
R-squared0.983369015616902
Adjusted R-squared0.97611961216786
F-TEST (value)135.648267133865
F-TEST (DF numerator)17
F-TEST (DF denominator)39
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.43186455317889
Sum Squared Residuals1613.38638358712







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1591599.892025902565-8.89202590256489
2589588.5117768161860.488223183814306
3584581.0493368259552.95066317404505
4573580.103982340967-7.10398234096754
5567564.6077340432582.39226595674198
6569570.340679001943-1.34067900194263
7621621.836907737762-0.836907737762074
8629631.030976205637-2.03097620563719
9628615.94768555754812.0523144424523
10612607.358941945254.64105805475053
11595596.205504470838-1.20550447083832
12597597.193641494743-0.193641494742516
13593596.574947323276-3.57494732327611
14590586.8225217346343.17747826536618
15580578.4293985345131.57060146548678
16574572.7199694819451.28003051805481
17573561.07728119709911.9227188029008
18573572.2625041333590.737495866641411
19620623.041219471129-3.04121947112932
20626626.7729767476-0.772976747600198
21620608.71131031395711.2886896860426
22588595.67335567743-7.67335567743049
23566569.951593816125-3.95159381612462
24557564.551571860089-7.55157186008916
25561554.2595622548036.74043774519735
26549552.050700515275-3.05070051527468
27532537.458174382567-5.45817438256663
28526525.1308383309280.869161669072479
29511511.909224848887-0.90922484888677
30499511.586024260142-12.5860242601420
31555550.3243806026134.67561939738731
32565560.9045496572764.09545034272385
33542549.516159069003-7.51615906900278
34527522.7018904266594.29810957334124
35510508.9261649166641.07383508333602
36514510.4305976234593.56940237654056
37517513.9331102420483.06688975795195
38508510.67817358066-2.67817358065981
39493497.777799722887-4.77779972288714
40490486.3175285829073.68247141709336
41469476.110275875259-7.11027587525868
42478470.4066979525477.59330204745259
43528527.0014152336660.998584766333523
44534534.908889287943-0.908889287943508
45518530.380117732715-12.3801177327152
46506507.265811950661-1.26581195066128
47502497.9167367963734.08326320362692
48516511.8241890217094.17581097829111
49528525.3403542773082.65964572269169
50533530.9368273532462.063172646754
51536530.2852905340785.71470946592194
52537535.7276812632531.27231873674689
53524530.295484035497-6.29548403549729
54536530.4040946520095.59590534799061
55587588.79607695483-1.79607695482944
56597597.382608101543-0.382608101542956
57581584.444727326777-3.44472732677695

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 591 & 599.892025902565 & -8.89202590256489 \tabularnewline
2 & 589 & 588.511776816186 & 0.488223183814306 \tabularnewline
3 & 584 & 581.049336825955 & 2.95066317404505 \tabularnewline
4 & 573 & 580.103982340967 & -7.10398234096754 \tabularnewline
5 & 567 & 564.607734043258 & 2.39226595674198 \tabularnewline
6 & 569 & 570.340679001943 & -1.34067900194263 \tabularnewline
7 & 621 & 621.836907737762 & -0.836907737762074 \tabularnewline
8 & 629 & 631.030976205637 & -2.03097620563719 \tabularnewline
9 & 628 & 615.947685557548 & 12.0523144424523 \tabularnewline
10 & 612 & 607.35894194525 & 4.64105805475053 \tabularnewline
11 & 595 & 596.205504470838 & -1.20550447083832 \tabularnewline
12 & 597 & 597.193641494743 & -0.193641494742516 \tabularnewline
13 & 593 & 596.574947323276 & -3.57494732327611 \tabularnewline
14 & 590 & 586.822521734634 & 3.17747826536618 \tabularnewline
15 & 580 & 578.429398534513 & 1.57060146548678 \tabularnewline
16 & 574 & 572.719969481945 & 1.28003051805481 \tabularnewline
17 & 573 & 561.077281197099 & 11.9227188029008 \tabularnewline
18 & 573 & 572.262504133359 & 0.737495866641411 \tabularnewline
19 & 620 & 623.041219471129 & -3.04121947112932 \tabularnewline
20 & 626 & 626.7729767476 & -0.772976747600198 \tabularnewline
21 & 620 & 608.711310313957 & 11.2886896860426 \tabularnewline
22 & 588 & 595.67335567743 & -7.67335567743049 \tabularnewline
23 & 566 & 569.951593816125 & -3.95159381612462 \tabularnewline
24 & 557 & 564.551571860089 & -7.55157186008916 \tabularnewline
25 & 561 & 554.259562254803 & 6.74043774519735 \tabularnewline
26 & 549 & 552.050700515275 & -3.05070051527468 \tabularnewline
27 & 532 & 537.458174382567 & -5.45817438256663 \tabularnewline
28 & 526 & 525.130838330928 & 0.869161669072479 \tabularnewline
29 & 511 & 511.909224848887 & -0.90922484888677 \tabularnewline
30 & 499 & 511.586024260142 & -12.5860242601420 \tabularnewline
31 & 555 & 550.324380602613 & 4.67561939738731 \tabularnewline
32 & 565 & 560.904549657276 & 4.09545034272385 \tabularnewline
33 & 542 & 549.516159069003 & -7.51615906900278 \tabularnewline
34 & 527 & 522.701890426659 & 4.29810957334124 \tabularnewline
35 & 510 & 508.926164916664 & 1.07383508333602 \tabularnewline
36 & 514 & 510.430597623459 & 3.56940237654056 \tabularnewline
37 & 517 & 513.933110242048 & 3.06688975795195 \tabularnewline
38 & 508 & 510.67817358066 & -2.67817358065981 \tabularnewline
39 & 493 & 497.777799722887 & -4.77779972288714 \tabularnewline
40 & 490 & 486.317528582907 & 3.68247141709336 \tabularnewline
41 & 469 & 476.110275875259 & -7.11027587525868 \tabularnewline
42 & 478 & 470.406697952547 & 7.59330204745259 \tabularnewline
43 & 528 & 527.001415233666 & 0.998584766333523 \tabularnewline
44 & 534 & 534.908889287943 & -0.908889287943508 \tabularnewline
45 & 518 & 530.380117732715 & -12.3801177327152 \tabularnewline
46 & 506 & 507.265811950661 & -1.26581195066128 \tabularnewline
47 & 502 & 497.916736796373 & 4.08326320362692 \tabularnewline
48 & 516 & 511.824189021709 & 4.17581097829111 \tabularnewline
49 & 528 & 525.340354277308 & 2.65964572269169 \tabularnewline
50 & 533 & 530.936827353246 & 2.063172646754 \tabularnewline
51 & 536 & 530.285290534078 & 5.71470946592194 \tabularnewline
52 & 537 & 535.727681263253 & 1.27231873674689 \tabularnewline
53 & 524 & 530.295484035497 & -6.29548403549729 \tabularnewline
54 & 536 & 530.404094652009 & 5.59590534799061 \tabularnewline
55 & 587 & 588.79607695483 & -1.79607695482944 \tabularnewline
56 & 597 & 597.382608101543 & -0.382608101542956 \tabularnewline
57 & 581 & 584.444727326777 & -3.44472732677695 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60160&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]591[/C][C]599.892025902565[/C][C]-8.89202590256489[/C][/ROW]
[ROW][C]2[/C][C]589[/C][C]588.511776816186[/C][C]0.488223183814306[/C][/ROW]
[ROW][C]3[/C][C]584[/C][C]581.049336825955[/C][C]2.95066317404505[/C][/ROW]
[ROW][C]4[/C][C]573[/C][C]580.103982340967[/C][C]-7.10398234096754[/C][/ROW]
[ROW][C]5[/C][C]567[/C][C]564.607734043258[/C][C]2.39226595674198[/C][/ROW]
[ROW][C]6[/C][C]569[/C][C]570.340679001943[/C][C]-1.34067900194263[/C][/ROW]
[ROW][C]7[/C][C]621[/C][C]621.836907737762[/C][C]-0.836907737762074[/C][/ROW]
[ROW][C]8[/C][C]629[/C][C]631.030976205637[/C][C]-2.03097620563719[/C][/ROW]
[ROW][C]9[/C][C]628[/C][C]615.947685557548[/C][C]12.0523144424523[/C][/ROW]
[ROW][C]10[/C][C]612[/C][C]607.35894194525[/C][C]4.64105805475053[/C][/ROW]
[ROW][C]11[/C][C]595[/C][C]596.205504470838[/C][C]-1.20550447083832[/C][/ROW]
[ROW][C]12[/C][C]597[/C][C]597.193641494743[/C][C]-0.193641494742516[/C][/ROW]
[ROW][C]13[/C][C]593[/C][C]596.574947323276[/C][C]-3.57494732327611[/C][/ROW]
[ROW][C]14[/C][C]590[/C][C]586.822521734634[/C][C]3.17747826536618[/C][/ROW]
[ROW][C]15[/C][C]580[/C][C]578.429398534513[/C][C]1.57060146548678[/C][/ROW]
[ROW][C]16[/C][C]574[/C][C]572.719969481945[/C][C]1.28003051805481[/C][/ROW]
[ROW][C]17[/C][C]573[/C][C]561.077281197099[/C][C]11.9227188029008[/C][/ROW]
[ROW][C]18[/C][C]573[/C][C]572.262504133359[/C][C]0.737495866641411[/C][/ROW]
[ROW][C]19[/C][C]620[/C][C]623.041219471129[/C][C]-3.04121947112932[/C][/ROW]
[ROW][C]20[/C][C]626[/C][C]626.7729767476[/C][C]-0.772976747600198[/C][/ROW]
[ROW][C]21[/C][C]620[/C][C]608.711310313957[/C][C]11.2886896860426[/C][/ROW]
[ROW][C]22[/C][C]588[/C][C]595.67335567743[/C][C]-7.67335567743049[/C][/ROW]
[ROW][C]23[/C][C]566[/C][C]569.951593816125[/C][C]-3.95159381612462[/C][/ROW]
[ROW][C]24[/C][C]557[/C][C]564.551571860089[/C][C]-7.55157186008916[/C][/ROW]
[ROW][C]25[/C][C]561[/C][C]554.259562254803[/C][C]6.74043774519735[/C][/ROW]
[ROW][C]26[/C][C]549[/C][C]552.050700515275[/C][C]-3.05070051527468[/C][/ROW]
[ROW][C]27[/C][C]532[/C][C]537.458174382567[/C][C]-5.45817438256663[/C][/ROW]
[ROW][C]28[/C][C]526[/C][C]525.130838330928[/C][C]0.869161669072479[/C][/ROW]
[ROW][C]29[/C][C]511[/C][C]511.909224848887[/C][C]-0.90922484888677[/C][/ROW]
[ROW][C]30[/C][C]499[/C][C]511.586024260142[/C][C]-12.5860242601420[/C][/ROW]
[ROW][C]31[/C][C]555[/C][C]550.324380602613[/C][C]4.67561939738731[/C][/ROW]
[ROW][C]32[/C][C]565[/C][C]560.904549657276[/C][C]4.09545034272385[/C][/ROW]
[ROW][C]33[/C][C]542[/C][C]549.516159069003[/C][C]-7.51615906900278[/C][/ROW]
[ROW][C]34[/C][C]527[/C][C]522.701890426659[/C][C]4.29810957334124[/C][/ROW]
[ROW][C]35[/C][C]510[/C][C]508.926164916664[/C][C]1.07383508333602[/C][/ROW]
[ROW][C]36[/C][C]514[/C][C]510.430597623459[/C][C]3.56940237654056[/C][/ROW]
[ROW][C]37[/C][C]517[/C][C]513.933110242048[/C][C]3.06688975795195[/C][/ROW]
[ROW][C]38[/C][C]508[/C][C]510.67817358066[/C][C]-2.67817358065981[/C][/ROW]
[ROW][C]39[/C][C]493[/C][C]497.777799722887[/C][C]-4.77779972288714[/C][/ROW]
[ROW][C]40[/C][C]490[/C][C]486.317528582907[/C][C]3.68247141709336[/C][/ROW]
[ROW][C]41[/C][C]469[/C][C]476.110275875259[/C][C]-7.11027587525868[/C][/ROW]
[ROW][C]42[/C][C]478[/C][C]470.406697952547[/C][C]7.59330204745259[/C][/ROW]
[ROW][C]43[/C][C]528[/C][C]527.001415233666[/C][C]0.998584766333523[/C][/ROW]
[ROW][C]44[/C][C]534[/C][C]534.908889287943[/C][C]-0.908889287943508[/C][/ROW]
[ROW][C]45[/C][C]518[/C][C]530.380117732715[/C][C]-12.3801177327152[/C][/ROW]
[ROW][C]46[/C][C]506[/C][C]507.265811950661[/C][C]-1.26581195066128[/C][/ROW]
[ROW][C]47[/C][C]502[/C][C]497.916736796373[/C][C]4.08326320362692[/C][/ROW]
[ROW][C]48[/C][C]516[/C][C]511.824189021709[/C][C]4.17581097829111[/C][/ROW]
[ROW][C]49[/C][C]528[/C][C]525.340354277308[/C][C]2.65964572269169[/C][/ROW]
[ROW][C]50[/C][C]533[/C][C]530.936827353246[/C][C]2.063172646754[/C][/ROW]
[ROW][C]51[/C][C]536[/C][C]530.285290534078[/C][C]5.71470946592194[/C][/ROW]
[ROW][C]52[/C][C]537[/C][C]535.727681263253[/C][C]1.27231873674689[/C][/ROW]
[ROW][C]53[/C][C]524[/C][C]530.295484035497[/C][C]-6.29548403549729[/C][/ROW]
[ROW][C]54[/C][C]536[/C][C]530.404094652009[/C][C]5.59590534799061[/C][/ROW]
[ROW][C]55[/C][C]587[/C][C]588.79607695483[/C][C]-1.79607695482944[/C][/ROW]
[ROW][C]56[/C][C]597[/C][C]597.382608101543[/C][C]-0.382608101542956[/C][/ROW]
[ROW][C]57[/C][C]581[/C][C]584.444727326777[/C][C]-3.44472732677695[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60160&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60160&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
1591599.892025902565-8.89202590256489
2589588.5117768161860.488223183814306
3584581.0493368259552.95066317404505
4573580.103982340967-7.10398234096754
5567564.6077340432582.39226595674198
6569570.340679001943-1.34067900194263
7621621.836907737762-0.836907737762074
8629631.030976205637-2.03097620563719
9628615.94768555754812.0523144424523
10612607.358941945254.64105805475053
11595596.205504470838-1.20550447083832
12597597.193641494743-0.193641494742516
13593596.574947323276-3.57494732327611
14590586.8225217346343.17747826536618
15580578.4293985345131.57060146548678
16574572.7199694819451.28003051805481
17573561.07728119709911.9227188029008
18573572.2625041333590.737495866641411
19620623.041219471129-3.04121947112932
20626626.7729767476-0.772976747600198
21620608.71131031395711.2886896860426
22588595.67335567743-7.67335567743049
23566569.951593816125-3.95159381612462
24557564.551571860089-7.55157186008916
25561554.2595622548036.74043774519735
26549552.050700515275-3.05070051527468
27532537.458174382567-5.45817438256663
28526525.1308383309280.869161669072479
29511511.909224848887-0.90922484888677
30499511.586024260142-12.5860242601420
31555550.3243806026134.67561939738731
32565560.9045496572764.09545034272385
33542549.516159069003-7.51615906900278
34527522.7018904266594.29810957334124
35510508.9261649166641.07383508333602
36514510.4305976234593.56940237654056
37517513.9331102420483.06688975795195
38508510.67817358066-2.67817358065981
39493497.777799722887-4.77779972288714
40490486.3175285829073.68247141709336
41469476.110275875259-7.11027587525868
42478470.4066979525477.59330204745259
43528527.0014152336660.998584766333523
44534534.908889287943-0.908889287943508
45518530.380117732715-12.3801177327152
46506507.265811950661-1.26581195066128
47502497.9167367963734.08326320362692
48516511.8241890217094.17581097829111
49528525.3403542773082.65964572269169
50533530.9368273532462.063172646754
51536530.2852905340785.71470946592194
52537535.7276812632531.27231873674689
53524530.295484035497-6.29548403549729
54536530.4040946520095.59590534799061
55587588.79607695483-1.79607695482944
56597597.382608101543-0.382608101542956
57581584.444727326777-3.44472732677695







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.2725494316154570.5450988632309140.727450568384543
220.471180997967070.942361995934140.52881900203293
230.4745966070270940.9491932140541880.525403392972906
240.4516105184212780.9032210368425560.548389481578722
250.5896890352905530.8206219294188930.410310964709447
260.49923970879810.99847941759620.5007602912019
270.4192931617931910.8385863235863810.580706838206809
280.5057533119208150.988493376158370.494246688079185
290.5317710303906870.9364579392186260.468228969609313
300.8531044448094170.2937911103811670.146895555190583
310.9205608257712620.1588783484574760.079439174228738
320.938080886289920.123838227420160.06191911371008
330.9270515127779790.1458969744440420.0729484872220211
340.922190853664220.1556182926715590.0778091463357793
350.8383455407821730.3233089184356540.161654459217827
360.7986237834455740.4027524331088530.201376216554426

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.272549431615457 & 0.545098863230914 & 0.727450568384543 \tabularnewline
22 & 0.47118099796707 & 0.94236199593414 & 0.52881900203293 \tabularnewline
23 & 0.474596607027094 & 0.949193214054188 & 0.525403392972906 \tabularnewline
24 & 0.451610518421278 & 0.903221036842556 & 0.548389481578722 \tabularnewline
25 & 0.589689035290553 & 0.820621929418893 & 0.410310964709447 \tabularnewline
26 & 0.4992397087981 & 0.9984794175962 & 0.5007602912019 \tabularnewline
27 & 0.419293161793191 & 0.838586323586381 & 0.580706838206809 \tabularnewline
28 & 0.505753311920815 & 0.98849337615837 & 0.494246688079185 \tabularnewline
29 & 0.531771030390687 & 0.936457939218626 & 0.468228969609313 \tabularnewline
30 & 0.853104444809417 & 0.293791110381167 & 0.146895555190583 \tabularnewline
31 & 0.920560825771262 & 0.158878348457476 & 0.079439174228738 \tabularnewline
32 & 0.93808088628992 & 0.12383822742016 & 0.06191911371008 \tabularnewline
33 & 0.927051512777979 & 0.145896974444042 & 0.0729484872220211 \tabularnewline
34 & 0.92219085366422 & 0.155618292671559 & 0.0778091463357793 \tabularnewline
35 & 0.838345540782173 & 0.323308918435654 & 0.161654459217827 \tabularnewline
36 & 0.798623783445574 & 0.402752433108853 & 0.201376216554426 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=60160&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.272549431615457[/C][C]0.545098863230914[/C][C]0.727450568384543[/C][/ROW]
[ROW][C]22[/C][C]0.47118099796707[/C][C]0.94236199593414[/C][C]0.52881900203293[/C][/ROW]
[ROW][C]23[/C][C]0.474596607027094[/C][C]0.949193214054188[/C][C]0.525403392972906[/C][/ROW]
[ROW][C]24[/C][C]0.451610518421278[/C][C]0.903221036842556[/C][C]0.548389481578722[/C][/ROW]
[ROW][C]25[/C][C]0.589689035290553[/C][C]0.820621929418893[/C][C]0.410310964709447[/C][/ROW]
[ROW][C]26[/C][C]0.4992397087981[/C][C]0.9984794175962[/C][C]0.5007602912019[/C][/ROW]
[ROW][C]27[/C][C]0.419293161793191[/C][C]0.838586323586381[/C][C]0.580706838206809[/C][/ROW]
[ROW][C]28[/C][C]0.505753311920815[/C][C]0.98849337615837[/C][C]0.494246688079185[/C][/ROW]
[ROW][C]29[/C][C]0.531771030390687[/C][C]0.936457939218626[/C][C]0.468228969609313[/C][/ROW]
[ROW][C]30[/C][C]0.853104444809417[/C][C]0.293791110381167[/C][C]0.146895555190583[/C][/ROW]
[ROW][C]31[/C][C]0.920560825771262[/C][C]0.158878348457476[/C][C]0.079439174228738[/C][/ROW]
[ROW][C]32[/C][C]0.93808088628992[/C][C]0.12383822742016[/C][C]0.06191911371008[/C][/ROW]
[ROW][C]33[/C][C]0.927051512777979[/C][C]0.145896974444042[/C][C]0.0729484872220211[/C][/ROW]
[ROW][C]34[/C][C]0.92219085366422[/C][C]0.155618292671559[/C][C]0.0778091463357793[/C][/ROW]
[ROW][C]35[/C][C]0.838345540782173[/C][C]0.323308918435654[/C][C]0.161654459217827[/C][/ROW]
[ROW][C]36[/C][C]0.798623783445574[/C][C]0.402752433108853[/C][C]0.201376216554426[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=60160&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=60160&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.2725494316154570.5450988632309140.727450568384543
220.471180997967070.942361995934140.52881900203293
230.4745966070270940.9491932140541880.525403392972906
240.4516105184212780.9032210368425560.548389481578722
250.5896890352905530.8206219294188930.410310964709447
260.49923970879810.99847941759620.5007602912019
270.4192931617931910.8385863235863810.580706838206809
280.5057533119208150.988493376158370.494246688079185
290.5317710303906870.9364579392186260.468228969609313
300.8531044448094170.2937911103811670.146895555190583
310.9205608257712620.1588783484574760.079439174228738
320.938080886289920.123838227420160.06191911371008
330.9270515127779790.1458969744440420.0729484872220211
340.922190853664220.1556182926715590.0778091463357793
350.8383455407821730.3233089184356540.161654459217827
360.7986237834455740.4027524331088530.201376216554426







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

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

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

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

As an alternative you can also use a QR Code:  

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

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



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