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, 24 Dec 2010 10:57:59 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Dec/24/t12931897185jdu1zu3ckb7sju.htm/, Retrieved Tue, 30 Apr 2024 01:55:28 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=114771, Retrieved Tue, 30 Apr 2024 01:55:28 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact144
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Multiple Regression] [paperMR] [2010-12-19 15:04:21] [7e261c986c934df955dd3ac53e9d45c6]
-   PD  [Multiple Regression] [paperMR4(werk)] [2010-12-21 13:34:51] [7e261c986c934df955dd3ac53e9d45c6]
-           [Multiple Regression] [MR4_werkloos] [2010-12-24 10:57:59] [fff0a1ca5ad3b1801f382406d5a383a7] [Current]
-             [Multiple Regression] [paperMR4] [2010-12-24 17:06:16] [7e261c986c934df955dd3ac53e9d45c6]
Feedback Forum

Post a new message
Dataseries X:
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	0	534	528	478	469
506	0	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
564	1	581	597	587	536
558	1	564	581	597	587
575	1	558	564	581	597
580	1	575	558	564	581
575	1	580	575	558	564
563	1	575	580	575	558
552	1	563	575	580	575
537	1	552	563	575	580
545	1	537	552	563	575
601	1	545	537	552	563
604	1	601	545	537	552
586	1	604	601	545	537
564	1	586	604	601	545
549	1	564	586	604	601




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

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







Multiple Linear Regression - Estimated Regression Equation
werkloosheid[t] = + 54.688868086339 + 15.4672034890724X[t] + 0.867182913866395Y1[t] + 0.0182351757154025Y2[t] + 0.0901575020601514Y3[t] -0.0792498762689881Y4[t] -6.32635130262516M1[t] -1.98379057484731M2[t] -9.38552483421278M3[t] + 6.24483290359042M4[t] + 55.5025039171427M5[t] + 18.4493878081356M6[t] -5.3793087605908M7[t] -15.4976086152822M8[t] -10.2896605094049M9[t] + 9.22862675771806M10[t] + 10.6463475101817M11[t] -0.326596864040714t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
werkloosheid[t] =  +  54.688868086339 +  15.4672034890724X[t] +  0.867182913866395Y1[t] +  0.0182351757154025Y2[t] +  0.0901575020601514Y3[t] -0.0792498762689881Y4[t] -6.32635130262516M1[t] -1.98379057484731M2[t] -9.38552483421278M3[t] +  6.24483290359042M4[t] +  55.5025039171427M5[t] +  18.4493878081356M6[t] -5.3793087605908M7[t] -15.4976086152822M8[t] -10.2896605094049M9[t] +  9.22862675771806M10[t] +  10.6463475101817M11[t] -0.326596864040714t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=114771&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]werkloosheid[t] =  +  54.688868086339 +  15.4672034890724X[t] +  0.867182913866395Y1[t] +  0.0182351757154025Y2[t] +  0.0901575020601514Y3[t] -0.0792498762689881Y4[t] -6.32635130262516M1[t] -1.98379057484731M2[t] -9.38552483421278M3[t] +  6.24483290359042M4[t] +  55.5025039171427M5[t] +  18.4493878081356M6[t] -5.3793087605908M7[t] -15.4976086152822M8[t] -10.2896605094049M9[t] +  9.22862675771806M10[t] +  10.6463475101817M11[t] -0.326596864040714t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=114771&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=114771&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
werkloosheid[t] = + 54.688868086339 + 15.4672034890724X[t] + 0.867182913866395Y1[t] + 0.0182351757154025Y2[t] + 0.0901575020601514Y3[t] -0.0792498762689881Y4[t] -6.32635130262516M1[t] -1.98379057484731M2[t] -9.38552483421278M3[t] + 6.24483290359042M4[t] + 55.5025039171427M5[t] + 18.4493878081356M6[t] -5.3793087605908M7[t] -15.4976086152822M8[t] -10.2896605094049M9[t] + 9.22862675771806M10[t] + 10.6463475101817M11[t] -0.326596864040714t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)54.68886808633919.8013892.76190.0087190.00436
X15.46720348907245.1172633.02260.0044130.002207
Y10.8671829138663950.1635595.3025e-062e-06
Y20.01823517571540250.2102140.08670.9313180.465659
Y30.09015750206015140.2093490.43070.6690890.334544
Y4-0.07924987626898810.144881-0.5470.5874960.293748
M1-6.326351302625165.172696-1.2230.2286580.114329
M2-1.983790574847315.65065-0.35110.7274230.363712
M3-9.385524834212785.221505-1.79750.0800060.040003
M46.244832903590425.4077521.15480.2552020.127601
M555.50250391714275.17683610.721300
M618.44938780813568.6243582.13920.0387340.019367
M7-5.37930876059088.72921-0.61620.5413150.270658
M8-15.497608615282210.869989-1.42570.1619030.080952
M9-10.28966050940497.227696-1.42360.1625010.081251
M109.228626757718066.5859411.40130.1690440.084522
M1110.64634751018175.2589962.02440.0498150.024908
t-0.3265968640407140.131138-2.49050.0171240.008562

\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) & 54.688868086339 & 19.801389 & 2.7619 & 0.008719 & 0.00436 \tabularnewline
X & 15.4672034890724 & 5.117263 & 3.0226 & 0.004413 & 0.002207 \tabularnewline
Y1 & 0.867182913866395 & 0.163559 & 5.302 & 5e-06 & 2e-06 \tabularnewline
Y2 & 0.0182351757154025 & 0.210214 & 0.0867 & 0.931318 & 0.465659 \tabularnewline
Y3 & 0.0901575020601514 & 0.209349 & 0.4307 & 0.669089 & 0.334544 \tabularnewline
Y4 & -0.0792498762689881 & 0.144881 & -0.547 & 0.587496 & 0.293748 \tabularnewline
M1 & -6.32635130262516 & 5.172696 & -1.223 & 0.228658 & 0.114329 \tabularnewline
M2 & -1.98379057484731 & 5.65065 & -0.3511 & 0.727423 & 0.363712 \tabularnewline
M3 & -9.38552483421278 & 5.221505 & -1.7975 & 0.080006 & 0.040003 \tabularnewline
M4 & 6.24483290359042 & 5.407752 & 1.1548 & 0.255202 & 0.127601 \tabularnewline
M5 & 55.5025039171427 & 5.176836 & 10.7213 & 0 & 0 \tabularnewline
M6 & 18.4493878081356 & 8.624358 & 2.1392 & 0.038734 & 0.019367 \tabularnewline
M7 & -5.3793087605908 & 8.72921 & -0.6162 & 0.541315 & 0.270658 \tabularnewline
M8 & -15.4976086152822 & 10.869989 & -1.4257 & 0.161903 & 0.080952 \tabularnewline
M9 & -10.2896605094049 & 7.227696 & -1.4236 & 0.162501 & 0.081251 \tabularnewline
M10 & 9.22862675771806 & 6.585941 & 1.4013 & 0.169044 & 0.084522 \tabularnewline
M11 & 10.6463475101817 & 5.258996 & 2.0244 & 0.049815 & 0.024908 \tabularnewline
t & -0.326596864040714 & 0.131138 & -2.4905 & 0.017124 & 0.008562 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=114771&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]54.688868086339[/C][C]19.801389[/C][C]2.7619[/C][C]0.008719[/C][C]0.00436[/C][/ROW]
[ROW][C]X[/C][C]15.4672034890724[/C][C]5.117263[/C][C]3.0226[/C][C]0.004413[/C][C]0.002207[/C][/ROW]
[ROW][C]Y1[/C][C]0.867182913866395[/C][C]0.163559[/C][C]5.302[/C][C]5e-06[/C][C]2e-06[/C][/ROW]
[ROW][C]Y2[/C][C]0.0182351757154025[/C][C]0.210214[/C][C]0.0867[/C][C]0.931318[/C][C]0.465659[/C][/ROW]
[ROW][C]Y3[/C][C]0.0901575020601514[/C][C]0.209349[/C][C]0.4307[/C][C]0.669089[/C][C]0.334544[/C][/ROW]
[ROW][C]Y4[/C][C]-0.0792498762689881[/C][C]0.144881[/C][C]-0.547[/C][C]0.587496[/C][C]0.293748[/C][/ROW]
[ROW][C]M1[/C][C]-6.32635130262516[/C][C]5.172696[/C][C]-1.223[/C][C]0.228658[/C][C]0.114329[/C][/ROW]
[ROW][C]M2[/C][C]-1.98379057484731[/C][C]5.65065[/C][C]-0.3511[/C][C]0.727423[/C][C]0.363712[/C][/ROW]
[ROW][C]M3[/C][C]-9.38552483421278[/C][C]5.221505[/C][C]-1.7975[/C][C]0.080006[/C][C]0.040003[/C][/ROW]
[ROW][C]M4[/C][C]6.24483290359042[/C][C]5.407752[/C][C]1.1548[/C][C]0.255202[/C][C]0.127601[/C][/ROW]
[ROW][C]M5[/C][C]55.5025039171427[/C][C]5.176836[/C][C]10.7213[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M6[/C][C]18.4493878081356[/C][C]8.624358[/C][C]2.1392[/C][C]0.038734[/C][C]0.019367[/C][/ROW]
[ROW][C]M7[/C][C]-5.3793087605908[/C][C]8.72921[/C][C]-0.6162[/C][C]0.541315[/C][C]0.270658[/C][/ROW]
[ROW][C]M8[/C][C]-15.4976086152822[/C][C]10.869989[/C][C]-1.4257[/C][C]0.161903[/C][C]0.080952[/C][/ROW]
[ROW][C]M9[/C][C]-10.2896605094049[/C][C]7.227696[/C][C]-1.4236[/C][C]0.162501[/C][C]0.081251[/C][/ROW]
[ROW][C]M10[/C][C]9.22862675771806[/C][C]6.585941[/C][C]1.4013[/C][C]0.169044[/C][C]0.084522[/C][/ROW]
[ROW][C]M11[/C][C]10.6463475101817[/C][C]5.258996[/C][C]2.0244[/C][C]0.049815[/C][C]0.024908[/C][/ROW]
[ROW][C]t[/C][C]-0.326596864040714[/C][C]0.131138[/C][C]-2.4905[/C][C]0.017124[/C][C]0.008562[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=114771&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=114771&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)54.68886808633919.8013892.76190.0087190.00436
X15.46720348907245.1172633.02260.0044130.002207
Y10.8671829138663950.1635595.3025e-062e-06
Y20.01823517571540250.2102140.08670.9313180.465659
Y30.09015750206015140.2093490.43070.6690890.334544
Y4-0.07924987626898810.144881-0.5470.5874960.293748
M1-6.326351302625165.172696-1.2230.2286580.114329
M2-1.983790574847315.65065-0.35110.7274230.363712
M3-9.385524834212785.221505-1.79750.0800060.040003
M46.244832903590425.4077521.15480.2552020.127601
M555.50250391714275.17683610.721300
M618.44938780813568.6243582.13920.0387340.019367
M7-5.37930876059088.72921-0.61620.5413150.270658
M8-15.497608615282210.869989-1.42570.1619030.080952
M9-10.28966050940497.227696-1.42360.1625010.081251
M109.228626757718066.5859411.40130.1690440.084522
M1110.64634751018175.2589962.02440.0498150.024908
t-0.3265968640407140.131138-2.49050.0171240.008562







Multiple Linear Regression - Regression Statistics
Multiple R0.990000066468989
R-squared0.980100131608602
Adjusted R-squared0.971425830002095
F-TEST (value)112.988938599207
F-TEST (DF numerator)17
F-TEST (DF denominator)39
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.12271996026891
Sum Squared Residuals1462.02028876314

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.990000066468989 \tabularnewline
R-squared & 0.980100131608602 \tabularnewline
Adjusted R-squared & 0.971425830002095 \tabularnewline
F-TEST (value) & 112.988938599207 \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.12271996026891 \tabularnewline
Sum Squared Residuals & 1462.02028876314 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=114771&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.990000066468989[/C][/ROW]
[ROW][C]R-squared[/C][C]0.980100131608602[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.971425830002095[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]112.988938599207[/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.12271996026891[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1462.02028876314[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=114771&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=114771&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.990000066468989
R-squared0.980100131608602
Adjusted R-squared0.971425830002095
F-TEST (value)112.988938599207
F-TEST (DF numerator)17
F-TEST (DF denominator)39
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation6.12271996026891
Sum Squared Residuals1462.02028876314







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1580577.1576506499442.84234935005625
2574571.9279500870912.07204991290907
3573558.86069672222814.1393032777724
4573572.5240382360370.475961763963054
5620621.688430960162-1.68843096016204
6626625.4516566943880.548343305611468
7620607.43576387971312.5642361202872
8588596.134583328902-8.13458332890183
9566569.97287110044-3.9728711004398
10557568.486567505594-11.4865675055936
11561558.9623304951692.03766950483076
12549551.846532190258-2.84653219025809
13532535.792409519433-3.79240951943347
14526525.9213206335190.0786793664814366
15511511.281004509954-0.281004509954394
16499512.885931601634-13.8859316016338
17555551.943586033233.05641396677045
18565562.0304308548272.96956914517342
19542547.674994520099-5.67499452009903
20527523.467061170193.53293882980978
21510511.384841612115-1.38484161211476
22514512.6947735336641.30522646633610
23517517.415015713675-0.415015713675013
24508508.772631392926-0.772631392925657
25493496.077620433422-3.07762043342185
26490486.8751970088293.12480299117106
27469475.222622360744-6.22262236074419
28478471.6217228716856.37827712831518
29528528.892780193825-0.892780193824865
30534533.3807715810790.619228418920864
31518517.8159993374710.184000662529309
32506497.4002132677558.59978673224463
33502503.629261419733-1.62926141973265
34516517.215378768188-1.21537876818814
35528530.560230743461-2.56023074346098
36533530.8391423026382.16085769736180
37536530.3201353478075.67986465219281
38537537.001215588676-0.00121558867650695
39524529.694561901356-5.69456190135582
40536533.6174031954062.38259680459390
41587592.570022900267-5.57002290026737
42597598.38416323994-1.38416323993952
43581585.94283132354-4.94283132354058
44564565.45239382994-1.45239382994006
45558552.1597040554855.84029594451544
46575563.60328019255411.3967198074457
47580579.0624230476950.937576952305238
48575573.5416941141781.45830588582193
49563564.652184049394-1.65218404939374
50552557.274316681885-5.27431668188508
51537538.941114505718-1.94111450571803
52545540.3509040952384.64909590476171
53601595.9051799125165.09482008748383
54604606.752977629766-2.75297762976624
55586588.130410939177-2.13041093917693
56564566.545748403213-2.54574840321251
57549547.8533218122281.14667818777177

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 580 & 577.157650649944 & 2.84234935005625 \tabularnewline
2 & 574 & 571.927950087091 & 2.07204991290907 \tabularnewline
3 & 573 & 558.860696722228 & 14.1393032777724 \tabularnewline
4 & 573 & 572.524038236037 & 0.475961763963054 \tabularnewline
5 & 620 & 621.688430960162 & -1.68843096016204 \tabularnewline
6 & 626 & 625.451656694388 & 0.548343305611468 \tabularnewline
7 & 620 & 607.435763879713 & 12.5642361202872 \tabularnewline
8 & 588 & 596.134583328902 & -8.13458332890183 \tabularnewline
9 & 566 & 569.97287110044 & -3.9728711004398 \tabularnewline
10 & 557 & 568.486567505594 & -11.4865675055936 \tabularnewline
11 & 561 & 558.962330495169 & 2.03766950483076 \tabularnewline
12 & 549 & 551.846532190258 & -2.84653219025809 \tabularnewline
13 & 532 & 535.792409519433 & -3.79240951943347 \tabularnewline
14 & 526 & 525.921320633519 & 0.0786793664814366 \tabularnewline
15 & 511 & 511.281004509954 & -0.281004509954394 \tabularnewline
16 & 499 & 512.885931601634 & -13.8859316016338 \tabularnewline
17 & 555 & 551.94358603323 & 3.05641396677045 \tabularnewline
18 & 565 & 562.030430854827 & 2.96956914517342 \tabularnewline
19 & 542 & 547.674994520099 & -5.67499452009903 \tabularnewline
20 & 527 & 523.46706117019 & 3.53293882980978 \tabularnewline
21 & 510 & 511.384841612115 & -1.38484161211476 \tabularnewline
22 & 514 & 512.694773533664 & 1.30522646633610 \tabularnewline
23 & 517 & 517.415015713675 & -0.415015713675013 \tabularnewline
24 & 508 & 508.772631392926 & -0.772631392925657 \tabularnewline
25 & 493 & 496.077620433422 & -3.07762043342185 \tabularnewline
26 & 490 & 486.875197008829 & 3.12480299117106 \tabularnewline
27 & 469 & 475.222622360744 & -6.22262236074419 \tabularnewline
28 & 478 & 471.621722871685 & 6.37827712831518 \tabularnewline
29 & 528 & 528.892780193825 & -0.892780193824865 \tabularnewline
30 & 534 & 533.380771581079 & 0.619228418920864 \tabularnewline
31 & 518 & 517.815999337471 & 0.184000662529309 \tabularnewline
32 & 506 & 497.400213267755 & 8.59978673224463 \tabularnewline
33 & 502 & 503.629261419733 & -1.62926141973265 \tabularnewline
34 & 516 & 517.215378768188 & -1.21537876818814 \tabularnewline
35 & 528 & 530.560230743461 & -2.56023074346098 \tabularnewline
36 & 533 & 530.839142302638 & 2.16085769736180 \tabularnewline
37 & 536 & 530.320135347807 & 5.67986465219281 \tabularnewline
38 & 537 & 537.001215588676 & -0.00121558867650695 \tabularnewline
39 & 524 & 529.694561901356 & -5.69456190135582 \tabularnewline
40 & 536 & 533.617403195406 & 2.38259680459390 \tabularnewline
41 & 587 & 592.570022900267 & -5.57002290026737 \tabularnewline
42 & 597 & 598.38416323994 & -1.38416323993952 \tabularnewline
43 & 581 & 585.94283132354 & -4.94283132354058 \tabularnewline
44 & 564 & 565.45239382994 & -1.45239382994006 \tabularnewline
45 & 558 & 552.159704055485 & 5.84029594451544 \tabularnewline
46 & 575 & 563.603280192554 & 11.3967198074457 \tabularnewline
47 & 580 & 579.062423047695 & 0.937576952305238 \tabularnewline
48 & 575 & 573.541694114178 & 1.45830588582193 \tabularnewline
49 & 563 & 564.652184049394 & -1.65218404939374 \tabularnewline
50 & 552 & 557.274316681885 & -5.27431668188508 \tabularnewline
51 & 537 & 538.941114505718 & -1.94111450571803 \tabularnewline
52 & 545 & 540.350904095238 & 4.64909590476171 \tabularnewline
53 & 601 & 595.905179912516 & 5.09482008748383 \tabularnewline
54 & 604 & 606.752977629766 & -2.75297762976624 \tabularnewline
55 & 586 & 588.130410939177 & -2.13041093917693 \tabularnewline
56 & 564 & 566.545748403213 & -2.54574840321251 \tabularnewline
57 & 549 & 547.853321812228 & 1.14667818777177 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=114771&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]580[/C][C]577.157650649944[/C][C]2.84234935005625[/C][/ROW]
[ROW][C]2[/C][C]574[/C][C]571.927950087091[/C][C]2.07204991290907[/C][/ROW]
[ROW][C]3[/C][C]573[/C][C]558.860696722228[/C][C]14.1393032777724[/C][/ROW]
[ROW][C]4[/C][C]573[/C][C]572.524038236037[/C][C]0.475961763963054[/C][/ROW]
[ROW][C]5[/C][C]620[/C][C]621.688430960162[/C][C]-1.68843096016204[/C][/ROW]
[ROW][C]6[/C][C]626[/C][C]625.451656694388[/C][C]0.548343305611468[/C][/ROW]
[ROW][C]7[/C][C]620[/C][C]607.435763879713[/C][C]12.5642361202872[/C][/ROW]
[ROW][C]8[/C][C]588[/C][C]596.134583328902[/C][C]-8.13458332890183[/C][/ROW]
[ROW][C]9[/C][C]566[/C][C]569.97287110044[/C][C]-3.9728711004398[/C][/ROW]
[ROW][C]10[/C][C]557[/C][C]568.486567505594[/C][C]-11.4865675055936[/C][/ROW]
[ROW][C]11[/C][C]561[/C][C]558.962330495169[/C][C]2.03766950483076[/C][/ROW]
[ROW][C]12[/C][C]549[/C][C]551.846532190258[/C][C]-2.84653219025809[/C][/ROW]
[ROW][C]13[/C][C]532[/C][C]535.792409519433[/C][C]-3.79240951943347[/C][/ROW]
[ROW][C]14[/C][C]526[/C][C]525.921320633519[/C][C]0.0786793664814366[/C][/ROW]
[ROW][C]15[/C][C]511[/C][C]511.281004509954[/C][C]-0.281004509954394[/C][/ROW]
[ROW][C]16[/C][C]499[/C][C]512.885931601634[/C][C]-13.8859316016338[/C][/ROW]
[ROW][C]17[/C][C]555[/C][C]551.94358603323[/C][C]3.05641396677045[/C][/ROW]
[ROW][C]18[/C][C]565[/C][C]562.030430854827[/C][C]2.96956914517342[/C][/ROW]
[ROW][C]19[/C][C]542[/C][C]547.674994520099[/C][C]-5.67499452009903[/C][/ROW]
[ROW][C]20[/C][C]527[/C][C]523.46706117019[/C][C]3.53293882980978[/C][/ROW]
[ROW][C]21[/C][C]510[/C][C]511.384841612115[/C][C]-1.38484161211476[/C][/ROW]
[ROW][C]22[/C][C]514[/C][C]512.694773533664[/C][C]1.30522646633610[/C][/ROW]
[ROW][C]23[/C][C]517[/C][C]517.415015713675[/C][C]-0.415015713675013[/C][/ROW]
[ROW][C]24[/C][C]508[/C][C]508.772631392926[/C][C]-0.772631392925657[/C][/ROW]
[ROW][C]25[/C][C]493[/C][C]496.077620433422[/C][C]-3.07762043342185[/C][/ROW]
[ROW][C]26[/C][C]490[/C][C]486.875197008829[/C][C]3.12480299117106[/C][/ROW]
[ROW][C]27[/C][C]469[/C][C]475.222622360744[/C][C]-6.22262236074419[/C][/ROW]
[ROW][C]28[/C][C]478[/C][C]471.621722871685[/C][C]6.37827712831518[/C][/ROW]
[ROW][C]29[/C][C]528[/C][C]528.892780193825[/C][C]-0.892780193824865[/C][/ROW]
[ROW][C]30[/C][C]534[/C][C]533.380771581079[/C][C]0.619228418920864[/C][/ROW]
[ROW][C]31[/C][C]518[/C][C]517.815999337471[/C][C]0.184000662529309[/C][/ROW]
[ROW][C]32[/C][C]506[/C][C]497.400213267755[/C][C]8.59978673224463[/C][/ROW]
[ROW][C]33[/C][C]502[/C][C]503.629261419733[/C][C]-1.62926141973265[/C][/ROW]
[ROW][C]34[/C][C]516[/C][C]517.215378768188[/C][C]-1.21537876818814[/C][/ROW]
[ROW][C]35[/C][C]528[/C][C]530.560230743461[/C][C]-2.56023074346098[/C][/ROW]
[ROW][C]36[/C][C]533[/C][C]530.839142302638[/C][C]2.16085769736180[/C][/ROW]
[ROW][C]37[/C][C]536[/C][C]530.320135347807[/C][C]5.67986465219281[/C][/ROW]
[ROW][C]38[/C][C]537[/C][C]537.001215588676[/C][C]-0.00121558867650695[/C][/ROW]
[ROW][C]39[/C][C]524[/C][C]529.694561901356[/C][C]-5.69456190135582[/C][/ROW]
[ROW][C]40[/C][C]536[/C][C]533.617403195406[/C][C]2.38259680459390[/C][/ROW]
[ROW][C]41[/C][C]587[/C][C]592.570022900267[/C][C]-5.57002290026737[/C][/ROW]
[ROW][C]42[/C][C]597[/C][C]598.38416323994[/C][C]-1.38416323993952[/C][/ROW]
[ROW][C]43[/C][C]581[/C][C]585.94283132354[/C][C]-4.94283132354058[/C][/ROW]
[ROW][C]44[/C][C]564[/C][C]565.45239382994[/C][C]-1.45239382994006[/C][/ROW]
[ROW][C]45[/C][C]558[/C][C]552.159704055485[/C][C]5.84029594451544[/C][/ROW]
[ROW][C]46[/C][C]575[/C][C]563.603280192554[/C][C]11.3967198074457[/C][/ROW]
[ROW][C]47[/C][C]580[/C][C]579.062423047695[/C][C]0.937576952305238[/C][/ROW]
[ROW][C]48[/C][C]575[/C][C]573.541694114178[/C][C]1.45830588582193[/C][/ROW]
[ROW][C]49[/C][C]563[/C][C]564.652184049394[/C][C]-1.65218404939374[/C][/ROW]
[ROW][C]50[/C][C]552[/C][C]557.274316681885[/C][C]-5.27431668188508[/C][/ROW]
[ROW][C]51[/C][C]537[/C][C]538.941114505718[/C][C]-1.94111450571803[/C][/ROW]
[ROW][C]52[/C][C]545[/C][C]540.350904095238[/C][C]4.64909590476171[/C][/ROW]
[ROW][C]53[/C][C]601[/C][C]595.905179912516[/C][C]5.09482008748383[/C][/ROW]
[ROW][C]54[/C][C]604[/C][C]606.752977629766[/C][C]-2.75297762976624[/C][/ROW]
[ROW][C]55[/C][C]586[/C][C]588.130410939177[/C][C]-2.13041093917693[/C][/ROW]
[ROW][C]56[/C][C]564[/C][C]566.545748403213[/C][C]-2.54574840321251[/C][/ROW]
[ROW][C]57[/C][C]549[/C][C]547.853321812228[/C][C]1.14667818777177[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=114771&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=114771&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
1580577.1576506499442.84234935005625
2574571.9279500870912.07204991290907
3573558.86069672222814.1393032777724
4573572.5240382360370.475961763963054
5620621.688430960162-1.68843096016204
6626625.4516566943880.548343305611468
7620607.43576387971312.5642361202872
8588596.134583328902-8.13458332890183
9566569.97287110044-3.9728711004398
10557568.486567505594-11.4865675055936
11561558.9623304951692.03766950483076
12549551.846532190258-2.84653219025809
13532535.792409519433-3.79240951943347
14526525.9213206335190.0786793664814366
15511511.281004509954-0.281004509954394
16499512.885931601634-13.8859316016338
17555551.943586033233.05641396677045
18565562.0304308548272.96956914517342
19542547.674994520099-5.67499452009903
20527523.467061170193.53293882980978
21510511.384841612115-1.38484161211476
22514512.6947735336641.30522646633610
23517517.415015713675-0.415015713675013
24508508.772631392926-0.772631392925657
25493496.077620433422-3.07762043342185
26490486.8751970088293.12480299117106
27469475.222622360744-6.22262236074419
28478471.6217228716856.37827712831518
29528528.892780193825-0.892780193824865
30534533.3807715810790.619228418920864
31518517.8159993374710.184000662529309
32506497.4002132677558.59978673224463
33502503.629261419733-1.62926141973265
34516517.215378768188-1.21537876818814
35528530.560230743461-2.56023074346098
36533530.8391423026382.16085769736180
37536530.3201353478075.67986465219281
38537537.001215588676-0.00121558867650695
39524529.694561901356-5.69456190135582
40536533.6174031954062.38259680459390
41587592.570022900267-5.57002290026737
42597598.38416323994-1.38416323993952
43581585.94283132354-4.94283132354058
44564565.45239382994-1.45239382994006
45558552.1597040554855.84029594451544
46575563.60328019255411.3967198074457
47580579.0624230476950.937576952305238
48575573.5416941141781.45830588582193
49563564.652184049394-1.65218404939374
50552557.274316681885-5.27431668188508
51537538.941114505718-1.94111450571803
52545540.3509040952384.64909590476171
53601595.9051799125165.09482008748383
54604606.752977629766-2.75297762976624
55586588.130410939177-2.13041093917693
56564566.545748403213-2.54574840321251
57549547.8533218122281.14667818777177







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.9584374044855730.08312519102885440.0415625955144272
220.9951336015117740.009732796976452960.00486639848822648
230.98943908891780.02112182216440080.0105609110822004
240.9793879988070260.04122400238594720.0206120011929736
250.977600345098060.04479930980388020.0223996549019401
260.9761108775158440.0477782449683110.0238891224841555
270.9763636485948340.04727270281033210.0236363514051661
280.9840582139612160.03188357207756770.0159417860387838
290.9716750865853970.05664982682920510.0283249134146026
300.9543196861134650.09136062777306950.0456803138865347
310.9231514453578770.1536971092842460.0768485546421231
320.9018115305736390.1963769388527220.098188469426361
330.8387500337978940.3224999324042110.161249966202106
340.9207956002113750.1584087995772500.0792043997886252
350.8432594453941390.3134811092117230.156740554605861
360.7061216546529640.5877566906940720.293878345347036

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.958437404485573 & 0.0831251910288544 & 0.0415625955144272 \tabularnewline
22 & 0.995133601511774 & 0.00973279697645296 & 0.00486639848822648 \tabularnewline
23 & 0.9894390889178 & 0.0211218221644008 & 0.0105609110822004 \tabularnewline
24 & 0.979387998807026 & 0.0412240023859472 & 0.0206120011929736 \tabularnewline
25 & 0.97760034509806 & 0.0447993098038802 & 0.0223996549019401 \tabularnewline
26 & 0.976110877515844 & 0.047778244968311 & 0.0238891224841555 \tabularnewline
27 & 0.976363648594834 & 0.0472727028103321 & 0.0236363514051661 \tabularnewline
28 & 0.984058213961216 & 0.0318835720775677 & 0.0159417860387838 \tabularnewline
29 & 0.971675086585397 & 0.0566498268292051 & 0.0283249134146026 \tabularnewline
30 & 0.954319686113465 & 0.0913606277730695 & 0.0456803138865347 \tabularnewline
31 & 0.923151445357877 & 0.153697109284246 & 0.0768485546421231 \tabularnewline
32 & 0.901811530573639 & 0.196376938852722 & 0.098188469426361 \tabularnewline
33 & 0.838750033797894 & 0.322499932404211 & 0.161249966202106 \tabularnewline
34 & 0.920795600211375 & 0.158408799577250 & 0.0792043997886252 \tabularnewline
35 & 0.843259445394139 & 0.313481109211723 & 0.156740554605861 \tabularnewline
36 & 0.706121654652964 & 0.587756690694072 & 0.293878345347036 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=114771&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.958437404485573[/C][C]0.0831251910288544[/C][C]0.0415625955144272[/C][/ROW]
[ROW][C]22[/C][C]0.995133601511774[/C][C]0.00973279697645296[/C][C]0.00486639848822648[/C][/ROW]
[ROW][C]23[/C][C]0.9894390889178[/C][C]0.0211218221644008[/C][C]0.0105609110822004[/C][/ROW]
[ROW][C]24[/C][C]0.979387998807026[/C][C]0.0412240023859472[/C][C]0.0206120011929736[/C][/ROW]
[ROW][C]25[/C][C]0.97760034509806[/C][C]0.0447993098038802[/C][C]0.0223996549019401[/C][/ROW]
[ROW][C]26[/C][C]0.976110877515844[/C][C]0.047778244968311[/C][C]0.0238891224841555[/C][/ROW]
[ROW][C]27[/C][C]0.976363648594834[/C][C]0.0472727028103321[/C][C]0.0236363514051661[/C][/ROW]
[ROW][C]28[/C][C]0.984058213961216[/C][C]0.0318835720775677[/C][C]0.0159417860387838[/C][/ROW]
[ROW][C]29[/C][C]0.971675086585397[/C][C]0.0566498268292051[/C][C]0.0283249134146026[/C][/ROW]
[ROW][C]30[/C][C]0.954319686113465[/C][C]0.0913606277730695[/C][C]0.0456803138865347[/C][/ROW]
[ROW][C]31[/C][C]0.923151445357877[/C][C]0.153697109284246[/C][C]0.0768485546421231[/C][/ROW]
[ROW][C]32[/C][C]0.901811530573639[/C][C]0.196376938852722[/C][C]0.098188469426361[/C][/ROW]
[ROW][C]33[/C][C]0.838750033797894[/C][C]0.322499932404211[/C][C]0.161249966202106[/C][/ROW]
[ROW][C]34[/C][C]0.920795600211375[/C][C]0.158408799577250[/C][C]0.0792043997886252[/C][/ROW]
[ROW][C]35[/C][C]0.843259445394139[/C][C]0.313481109211723[/C][C]0.156740554605861[/C][/ROW]
[ROW][C]36[/C][C]0.706121654652964[/C][C]0.587756690694072[/C][C]0.293878345347036[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=114771&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=114771&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.9584374044855730.08312519102885440.0415625955144272
220.9951336015117740.009732796976452960.00486639848822648
230.98943908891780.02112182216440080.0105609110822004
240.9793879988070260.04122400238594720.0206120011929736
250.977600345098060.04479930980388020.0223996549019401
260.9761108775158440.0477782449683110.0238891224841555
270.9763636485948340.04727270281033210.0236363514051661
280.9840582139612160.03188357207756770.0159417860387838
290.9716750865853970.05664982682920510.0283249134146026
300.9543196861134650.09136062777306950.0456803138865347
310.9231514453578770.1536971092842460.0768485546421231
320.9018115305736390.1963769388527220.098188469426361
330.8387500337978940.3224999324042110.161249966202106
340.9207956002113750.1584087995772500.0792043997886252
350.8432594453941390.3134811092117230.156740554605861
360.7061216546529640.5877566906940720.293878345347036







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level10.0625NOK
5% type I error level70.4375NOK
10% type I error level100.625NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=114771&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 level10.0625NOK
5% type I error level70.4375NOK
10% type I error level100.625NOK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ; par4 = ; par5 = ; par6 = ; par7 = ; par8 = ; par9 = ; par10 = ; par11 = ; par12 = ; par13 = ; par14 = ; par15 = ; par16 = ; par17 = ; par18 = ; par19 = ; par20 = ;
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')
}