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 17:06:16 +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/t1293210257andkc7vdl2zstpn.htm/, Retrieved Tue, 30 Apr 2024 03:23:01 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=115213, Retrieved Tue, 30 Apr 2024 03:23:01 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact146
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] [8441f95c4a5787a301bc621ebc7904ca]
-             [Multiple Regression] [paperMR4] [2010-12-24 17:06:16] [13dfa60174f50d862e8699db2153bfc5] [Current]
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 time5 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk

\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 & 5 seconds \tabularnewline
R Server & 'RServer@AstonUniversity' @ vre.aston.ac.uk \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=115213&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]5 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'RServer@AstonUniversity' @ vre.aston.ac.uk[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=115213&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=115213&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 time5 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk







Multiple Linear Regression - Estimated Regression Equation
werkloosheid[t] = + 54.6888680863394 + 15.4672034890725X[t] + 0.867182913866398Y1[t] + 0.0182351757153969Y2[t] + 0.090157502060152Y3[t] -0.079249876268986Y4[t] -6.3263513026249M1[t] -1.98379057484726M2[t] -9.38552483421281M3[t] + 6.24483290359047M4[t] + 55.5025039171427M5[t] + 18.4493878081354M6[t] -5.37930876059063M7[t] -15.497608615282M8[t] -10.2896605094049M9[t] + 9.22862675771803M10[t] + 10.6463475101816M11[t] -0.326596864040716t + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
werkloosheid[t] =  +  54.6888680863394 +  15.4672034890725X[t] +  0.867182913866398Y1[t] +  0.0182351757153969Y2[t] +  0.090157502060152Y3[t] -0.079249876268986Y4[t] -6.3263513026249M1[t] -1.98379057484726M2[t] -9.38552483421281M3[t] +  6.24483290359047M4[t] +  55.5025039171427M5[t] +  18.4493878081354M6[t] -5.37930876059063M7[t] -15.497608615282M8[t] -10.2896605094049M9[t] +  9.22862675771803M10[t] +  10.6463475101816M11[t] -0.326596864040716t  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=115213&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]werkloosheid[t] =  +  54.6888680863394 +  15.4672034890725X[t] +  0.867182913866398Y1[t] +  0.0182351757153969Y2[t] +  0.090157502060152Y3[t] -0.079249876268986Y4[t] -6.3263513026249M1[t] -1.98379057484726M2[t] -9.38552483421281M3[t] +  6.24483290359047M4[t] +  55.5025039171427M5[t] +  18.4493878081354M6[t] -5.37930876059063M7[t] -15.497608615282M8[t] -10.2896605094049M9[t] +  9.22862675771803M10[t] +  10.6463475101816M11[t] -0.326596864040716t  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=115213&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=115213&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.6888680863394 + 15.4672034890725X[t] + 0.867182913866398Y1[t] + 0.0182351757153969Y2[t] + 0.090157502060152Y3[t] -0.079249876268986Y4[t] -6.3263513026249M1[t] -1.98379057484726M2[t] -9.38552483421281M3[t] + 6.24483290359047M4[t] + 55.5025039171427M5[t] + 18.4493878081354M6[t] -5.37930876059063M7[t] -15.497608615282M8[t] -10.2896605094049M9[t] + 9.22862675771803M10[t] + 10.6463475101816M11[t] -0.326596864040716t + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)54.688868086339419.8013892.76190.0087190.00436
X15.46720348907255.1172633.02260.0044130.002207
Y10.8671829138663980.1635595.3025e-062e-06
Y20.01823517571539690.2102140.08670.9313180.465659
Y30.0901575020601520.2093490.43070.6690890.334544
Y4-0.0792498762689860.144881-0.5470.5874960.293748
M1-6.32635130262495.172696-1.2230.2286580.114329
M2-1.983790574847265.65065-0.35110.7274230.363712
M3-9.385524834212815.221505-1.79750.0800060.040003
M46.244832903590475.4077521.15480.2552020.127601
M555.50250391714275.17683610.721300
M618.44938780813548.6243582.13920.0387340.019367
M7-5.379308760590638.72921-0.61620.5413150.270658
M8-15.49760861528210.869989-1.42570.1619030.080952
M9-10.28966050940497.227696-1.42360.1625010.081251
M109.228626757718036.5859411.40130.1690440.084522
M1110.64634751018165.2589962.02440.0498150.024908
t-0.3265968640407160.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.6888680863394 & 19.801389 & 2.7619 & 0.008719 & 0.00436 \tabularnewline
X & 15.4672034890725 & 5.117263 & 3.0226 & 0.004413 & 0.002207 \tabularnewline
Y1 & 0.867182913866398 & 0.163559 & 5.302 & 5e-06 & 2e-06 \tabularnewline
Y2 & 0.0182351757153969 & 0.210214 & 0.0867 & 0.931318 & 0.465659 \tabularnewline
Y3 & 0.090157502060152 & 0.209349 & 0.4307 & 0.669089 & 0.334544 \tabularnewline
Y4 & -0.079249876268986 & 0.144881 & -0.547 & 0.587496 & 0.293748 \tabularnewline
M1 & -6.3263513026249 & 5.172696 & -1.223 & 0.228658 & 0.114329 \tabularnewline
M2 & -1.98379057484726 & 5.65065 & -0.3511 & 0.727423 & 0.363712 \tabularnewline
M3 & -9.38552483421281 & 5.221505 & -1.7975 & 0.080006 & 0.040003 \tabularnewline
M4 & 6.24483290359047 & 5.407752 & 1.1548 & 0.255202 & 0.127601 \tabularnewline
M5 & 55.5025039171427 & 5.176836 & 10.7213 & 0 & 0 \tabularnewline
M6 & 18.4493878081354 & 8.624358 & 2.1392 & 0.038734 & 0.019367 \tabularnewline
M7 & -5.37930876059063 & 8.72921 & -0.6162 & 0.541315 & 0.270658 \tabularnewline
M8 & -15.497608615282 & 10.869989 & -1.4257 & 0.161903 & 0.080952 \tabularnewline
M9 & -10.2896605094049 & 7.227696 & -1.4236 & 0.162501 & 0.081251 \tabularnewline
M10 & 9.22862675771803 & 6.585941 & 1.4013 & 0.169044 & 0.084522 \tabularnewline
M11 & 10.6463475101816 & 5.258996 & 2.0244 & 0.049815 & 0.024908 \tabularnewline
t & -0.326596864040716 & 0.131138 & -2.4905 & 0.017124 & 0.008562 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=115213&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.6888680863394[/C][C]19.801389[/C][C]2.7619[/C][C]0.008719[/C][C]0.00436[/C][/ROW]
[ROW][C]X[/C][C]15.4672034890725[/C][C]5.117263[/C][C]3.0226[/C][C]0.004413[/C][C]0.002207[/C][/ROW]
[ROW][C]Y1[/C][C]0.867182913866398[/C][C]0.163559[/C][C]5.302[/C][C]5e-06[/C][C]2e-06[/C][/ROW]
[ROW][C]Y2[/C][C]0.0182351757153969[/C][C]0.210214[/C][C]0.0867[/C][C]0.931318[/C][C]0.465659[/C][/ROW]
[ROW][C]Y3[/C][C]0.090157502060152[/C][C]0.209349[/C][C]0.4307[/C][C]0.669089[/C][C]0.334544[/C][/ROW]
[ROW][C]Y4[/C][C]-0.079249876268986[/C][C]0.144881[/C][C]-0.547[/C][C]0.587496[/C][C]0.293748[/C][/ROW]
[ROW][C]M1[/C][C]-6.3263513026249[/C][C]5.172696[/C][C]-1.223[/C][C]0.228658[/C][C]0.114329[/C][/ROW]
[ROW][C]M2[/C][C]-1.98379057484726[/C][C]5.65065[/C][C]-0.3511[/C][C]0.727423[/C][C]0.363712[/C][/ROW]
[ROW][C]M3[/C][C]-9.38552483421281[/C][C]5.221505[/C][C]-1.7975[/C][C]0.080006[/C][C]0.040003[/C][/ROW]
[ROW][C]M4[/C][C]6.24483290359047[/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.4493878081354[/C][C]8.624358[/C][C]2.1392[/C][C]0.038734[/C][C]0.019367[/C][/ROW]
[ROW][C]M7[/C][C]-5.37930876059063[/C][C]8.72921[/C][C]-0.6162[/C][C]0.541315[/C][C]0.270658[/C][/ROW]
[ROW][C]M8[/C][C]-15.497608615282[/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.22862675771803[/C][C]6.585941[/C][C]1.4013[/C][C]0.169044[/C][C]0.084522[/C][/ROW]
[ROW][C]M11[/C][C]10.6463475101816[/C][C]5.258996[/C][C]2.0244[/C][C]0.049815[/C][C]0.024908[/C][/ROW]
[ROW][C]t[/C][C]-0.326596864040716[/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=115213&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=115213&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.688868086339419.8013892.76190.0087190.00436
X15.46720348907255.1172633.02260.0044130.002207
Y10.8671829138663980.1635595.3025e-062e-06
Y20.01823517571539690.2102140.08670.9313180.465659
Y30.0901575020601520.2093490.43070.6690890.334544
Y4-0.0792498762689860.144881-0.5470.5874960.293748
M1-6.32635130262495.172696-1.2230.2286580.114329
M2-1.983790574847265.65065-0.35110.7274230.363712
M3-9.385524834212815.221505-1.79750.0800060.040003
M46.244832903590475.4077521.15480.2552020.127601
M555.50250391714275.17683610.721300
M618.44938780813548.6243582.13920.0387340.019367
M7-5.379308760590638.72921-0.61620.5413150.270658
M8-15.49760861528210.869989-1.42570.1619030.080952
M9-10.28966050940497.227696-1.42360.1625010.081251
M109.228626757718036.5859411.40130.1690440.084522
M1110.64634751018165.2589962.02440.0498150.024908
t-0.3265968640407160.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.12271996026892
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.12271996026892 \tabularnewline
Sum Squared Residuals & 1462.02028876314 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=115213&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.12271996026892[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]1462.02028876314[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=115213&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=115213&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.12271996026892
Sum Squared Residuals1462.02028876314







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
1580577.1576506499432.84234935005698
2574571.9279500870912.07204991290904
3573558.86069672222814.1393032777722
4573572.5240382360370.475961763962967
5620621.688430960162-1.68843096016209
6626625.4516566943890.548343305611445
7620607.43576387971312.5642361202872
8588596.134583328902-8.13458332890192
9566569.97287110044-3.97287110043978
10557568.486567505594-11.4865675055937
11561558.9623304951692.03766950483072
12549551.846532190258-2.84653219025817
13532535.792409519434-3.79240951943369
14526525.9213206335190.0786793664814282
15511511.281004509954-0.281004509954398
16499512.885931601634-13.8859316016339
17555551.943586033233.05641396677051
18565562.0304308548272.96956914517335
19542547.674994520099-5.67499452009906
20527523.467061170193.53293882980982
21510511.384841612115-1.38484161211478
22514512.6947735336641.30522646633613
23517517.415015713675-0.415015713674997
24508508.772631392926-0.772631392925644
25493496.077620433422-3.07762043342201
26490486.8751970088293.1248029911711
27469475.222622360744-6.22262236074415
28478471.6217228716856.37827712831525
29528528.892780193825-0.89278019382486
30534533.3807715810790.619228418920907
31518517.8159993374710.184000662529359
32506497.4002132677558.59978673224466
33502503.629261419733-1.62926141973267
34516517.215378768188-1.21537876818815
35528530.560230743461-2.56023074346096
36533530.8391423026382.16085769736183
37536530.3201353478075.67986465219262
38537537.001215588676-0.0012155886765042
39524529.694561901356-5.69456190135574
40536533.6174031954062.38259680459394
41587592.570022900267-5.57002290026738
42597598.38416323994-1.38416323993948
43581585.94283132354-4.94283132354058
44564565.45239382994-1.45239382994006
45558552.1597040554855.84029594451544
46575563.60328019255411.3967198074457
47580579.0624230476950.937576952305232
48575573.5416941141781.45830588582199
49563564.652184049394-1.6521840493939
50552557.274316681885-5.27431668188506
51537538.941114505718-1.94111450571796
52545540.3509040952384.64909590476171
53601595.9051799125165.09482008748381
54604606.752977629766-2.75297762976621
55586588.130410939177-2.13041093917689
56564566.545748403213-2.5457484032125
57549547.8533218122281.14667818777178

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 580 & 577.157650649943 & 2.84234935005698 \tabularnewline
2 & 574 & 571.927950087091 & 2.07204991290904 \tabularnewline
3 & 573 & 558.860696722228 & 14.1393032777722 \tabularnewline
4 & 573 & 572.524038236037 & 0.475961763962967 \tabularnewline
5 & 620 & 621.688430960162 & -1.68843096016209 \tabularnewline
6 & 626 & 625.451656694389 & 0.548343305611445 \tabularnewline
7 & 620 & 607.435763879713 & 12.5642361202872 \tabularnewline
8 & 588 & 596.134583328902 & -8.13458332890192 \tabularnewline
9 & 566 & 569.97287110044 & -3.97287110043978 \tabularnewline
10 & 557 & 568.486567505594 & -11.4865675055937 \tabularnewline
11 & 561 & 558.962330495169 & 2.03766950483072 \tabularnewline
12 & 549 & 551.846532190258 & -2.84653219025817 \tabularnewline
13 & 532 & 535.792409519434 & -3.79240951943369 \tabularnewline
14 & 526 & 525.921320633519 & 0.0786793664814282 \tabularnewline
15 & 511 & 511.281004509954 & -0.281004509954398 \tabularnewline
16 & 499 & 512.885931601634 & -13.8859316016339 \tabularnewline
17 & 555 & 551.94358603323 & 3.05641396677051 \tabularnewline
18 & 565 & 562.030430854827 & 2.96956914517335 \tabularnewline
19 & 542 & 547.674994520099 & -5.67499452009906 \tabularnewline
20 & 527 & 523.46706117019 & 3.53293882980982 \tabularnewline
21 & 510 & 511.384841612115 & -1.38484161211478 \tabularnewline
22 & 514 & 512.694773533664 & 1.30522646633613 \tabularnewline
23 & 517 & 517.415015713675 & -0.415015713674997 \tabularnewline
24 & 508 & 508.772631392926 & -0.772631392925644 \tabularnewline
25 & 493 & 496.077620433422 & -3.07762043342201 \tabularnewline
26 & 490 & 486.875197008829 & 3.1248029911711 \tabularnewline
27 & 469 & 475.222622360744 & -6.22262236074415 \tabularnewline
28 & 478 & 471.621722871685 & 6.37827712831525 \tabularnewline
29 & 528 & 528.892780193825 & -0.89278019382486 \tabularnewline
30 & 534 & 533.380771581079 & 0.619228418920907 \tabularnewline
31 & 518 & 517.815999337471 & 0.184000662529359 \tabularnewline
32 & 506 & 497.400213267755 & 8.59978673224466 \tabularnewline
33 & 502 & 503.629261419733 & -1.62926141973267 \tabularnewline
34 & 516 & 517.215378768188 & -1.21537876818815 \tabularnewline
35 & 528 & 530.560230743461 & -2.56023074346096 \tabularnewline
36 & 533 & 530.839142302638 & 2.16085769736183 \tabularnewline
37 & 536 & 530.320135347807 & 5.67986465219262 \tabularnewline
38 & 537 & 537.001215588676 & -0.0012155886765042 \tabularnewline
39 & 524 & 529.694561901356 & -5.69456190135574 \tabularnewline
40 & 536 & 533.617403195406 & 2.38259680459394 \tabularnewline
41 & 587 & 592.570022900267 & -5.57002290026738 \tabularnewline
42 & 597 & 598.38416323994 & -1.38416323993948 \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.937576952305232 \tabularnewline
48 & 575 & 573.541694114178 & 1.45830588582199 \tabularnewline
49 & 563 & 564.652184049394 & -1.6521840493939 \tabularnewline
50 & 552 & 557.274316681885 & -5.27431668188506 \tabularnewline
51 & 537 & 538.941114505718 & -1.94111450571796 \tabularnewline
52 & 545 & 540.350904095238 & 4.64909590476171 \tabularnewline
53 & 601 & 595.905179912516 & 5.09482008748381 \tabularnewline
54 & 604 & 606.752977629766 & -2.75297762976621 \tabularnewline
55 & 586 & 588.130410939177 & -2.13041093917689 \tabularnewline
56 & 564 & 566.545748403213 & -2.5457484032125 \tabularnewline
57 & 549 & 547.853321812228 & 1.14667818777178 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=115213&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.157650649943[/C][C]2.84234935005698[/C][/ROW]
[ROW][C]2[/C][C]574[/C][C]571.927950087091[/C][C]2.07204991290904[/C][/ROW]
[ROW][C]3[/C][C]573[/C][C]558.860696722228[/C][C]14.1393032777722[/C][/ROW]
[ROW][C]4[/C][C]573[/C][C]572.524038236037[/C][C]0.475961763962967[/C][/ROW]
[ROW][C]5[/C][C]620[/C][C]621.688430960162[/C][C]-1.68843096016209[/C][/ROW]
[ROW][C]6[/C][C]626[/C][C]625.451656694389[/C][C]0.548343305611445[/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.13458332890192[/C][/ROW]
[ROW][C]9[/C][C]566[/C][C]569.97287110044[/C][C]-3.97287110043978[/C][/ROW]
[ROW][C]10[/C][C]557[/C][C]568.486567505594[/C][C]-11.4865675055937[/C][/ROW]
[ROW][C]11[/C][C]561[/C][C]558.962330495169[/C][C]2.03766950483072[/C][/ROW]
[ROW][C]12[/C][C]549[/C][C]551.846532190258[/C][C]-2.84653219025817[/C][/ROW]
[ROW][C]13[/C][C]532[/C][C]535.792409519434[/C][C]-3.79240951943369[/C][/ROW]
[ROW][C]14[/C][C]526[/C][C]525.921320633519[/C][C]0.0786793664814282[/C][/ROW]
[ROW][C]15[/C][C]511[/C][C]511.281004509954[/C][C]-0.281004509954398[/C][/ROW]
[ROW][C]16[/C][C]499[/C][C]512.885931601634[/C][C]-13.8859316016339[/C][/ROW]
[ROW][C]17[/C][C]555[/C][C]551.94358603323[/C][C]3.05641396677051[/C][/ROW]
[ROW][C]18[/C][C]565[/C][C]562.030430854827[/C][C]2.96956914517335[/C][/ROW]
[ROW][C]19[/C][C]542[/C][C]547.674994520099[/C][C]-5.67499452009906[/C][/ROW]
[ROW][C]20[/C][C]527[/C][C]523.46706117019[/C][C]3.53293882980982[/C][/ROW]
[ROW][C]21[/C][C]510[/C][C]511.384841612115[/C][C]-1.38484161211478[/C][/ROW]
[ROW][C]22[/C][C]514[/C][C]512.694773533664[/C][C]1.30522646633613[/C][/ROW]
[ROW][C]23[/C][C]517[/C][C]517.415015713675[/C][C]-0.415015713674997[/C][/ROW]
[ROW][C]24[/C][C]508[/C][C]508.772631392926[/C][C]-0.772631392925644[/C][/ROW]
[ROW][C]25[/C][C]493[/C][C]496.077620433422[/C][C]-3.07762043342201[/C][/ROW]
[ROW][C]26[/C][C]490[/C][C]486.875197008829[/C][C]3.1248029911711[/C][/ROW]
[ROW][C]27[/C][C]469[/C][C]475.222622360744[/C][C]-6.22262236074415[/C][/ROW]
[ROW][C]28[/C][C]478[/C][C]471.621722871685[/C][C]6.37827712831525[/C][/ROW]
[ROW][C]29[/C][C]528[/C][C]528.892780193825[/C][C]-0.89278019382486[/C][/ROW]
[ROW][C]30[/C][C]534[/C][C]533.380771581079[/C][C]0.619228418920907[/C][/ROW]
[ROW][C]31[/C][C]518[/C][C]517.815999337471[/C][C]0.184000662529359[/C][/ROW]
[ROW][C]32[/C][C]506[/C][C]497.400213267755[/C][C]8.59978673224466[/C][/ROW]
[ROW][C]33[/C][C]502[/C][C]503.629261419733[/C][C]-1.62926141973267[/C][/ROW]
[ROW][C]34[/C][C]516[/C][C]517.215378768188[/C][C]-1.21537876818815[/C][/ROW]
[ROW][C]35[/C][C]528[/C][C]530.560230743461[/C][C]-2.56023074346096[/C][/ROW]
[ROW][C]36[/C][C]533[/C][C]530.839142302638[/C][C]2.16085769736183[/C][/ROW]
[ROW][C]37[/C][C]536[/C][C]530.320135347807[/C][C]5.67986465219262[/C][/ROW]
[ROW][C]38[/C][C]537[/C][C]537.001215588676[/C][C]-0.0012155886765042[/C][/ROW]
[ROW][C]39[/C][C]524[/C][C]529.694561901356[/C][C]-5.69456190135574[/C][/ROW]
[ROW][C]40[/C][C]536[/C][C]533.617403195406[/C][C]2.38259680459394[/C][/ROW]
[ROW][C]41[/C][C]587[/C][C]592.570022900267[/C][C]-5.57002290026738[/C][/ROW]
[ROW][C]42[/C][C]597[/C][C]598.38416323994[/C][C]-1.38416323993948[/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.937576952305232[/C][/ROW]
[ROW][C]48[/C][C]575[/C][C]573.541694114178[/C][C]1.45830588582199[/C][/ROW]
[ROW][C]49[/C][C]563[/C][C]564.652184049394[/C][C]-1.6521840493939[/C][/ROW]
[ROW][C]50[/C][C]552[/C][C]557.274316681885[/C][C]-5.27431668188506[/C][/ROW]
[ROW][C]51[/C][C]537[/C][C]538.941114505718[/C][C]-1.94111450571796[/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.09482008748381[/C][/ROW]
[ROW][C]54[/C][C]604[/C][C]606.752977629766[/C][C]-2.75297762976621[/C][/ROW]
[ROW][C]55[/C][C]586[/C][C]588.130410939177[/C][C]-2.13041093917689[/C][/ROW]
[ROW][C]56[/C][C]564[/C][C]566.545748403213[/C][C]-2.5457484032125[/C][/ROW]
[ROW][C]57[/C][C]549[/C][C]547.853321812228[/C][C]1.14667818777178[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=115213&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=115213&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.1576506499432.84234935005698
2574571.9279500870912.07204991290904
3573558.86069672222814.1393032777722
4573572.5240382360370.475961763962967
5620621.688430960162-1.68843096016209
6626625.4516566943890.548343305611445
7620607.43576387971312.5642361202872
8588596.134583328902-8.13458332890192
9566569.97287110044-3.97287110043978
10557568.486567505594-11.4865675055937
11561558.9623304951692.03766950483072
12549551.846532190258-2.84653219025817
13532535.792409519434-3.79240951943369
14526525.9213206335190.0786793664814282
15511511.281004509954-0.281004509954398
16499512.885931601634-13.8859316016339
17555551.943586033233.05641396677051
18565562.0304308548272.96956914517335
19542547.674994520099-5.67499452009906
20527523.467061170193.53293882980982
21510511.384841612115-1.38484161211478
22514512.6947735336641.30522646633613
23517517.415015713675-0.415015713674997
24508508.772631392926-0.772631392925644
25493496.077620433422-3.07762043342201
26490486.8751970088293.1248029911711
27469475.222622360744-6.22262236074415
28478471.6217228716856.37827712831525
29528528.892780193825-0.89278019382486
30534533.3807715810790.619228418920907
31518517.8159993374710.184000662529359
32506497.4002132677558.59978673224466
33502503.629261419733-1.62926141973267
34516517.215378768188-1.21537876818815
35528530.560230743461-2.56023074346096
36533530.8391423026382.16085769736183
37536530.3201353478075.67986465219262
38537537.001215588676-0.0012155886765042
39524529.694561901356-5.69456190135574
40536533.6174031954062.38259680459394
41587592.570022900267-5.57002290026738
42597598.38416323994-1.38416323993948
43581585.94283132354-4.94283132354058
44564565.45239382994-1.45239382994006
45558552.1597040554855.84029594451544
46575563.60328019255411.3967198074457
47580579.0624230476950.937576952305232
48575573.5416941141781.45830588582199
49563564.652184049394-1.6521840493939
50552557.274316681885-5.27431668188506
51537538.941114505718-1.94111450571796
52545540.3509040952384.64909590476171
53601595.9051799125165.09482008748381
54604606.752977629766-2.75297762976621
55586588.130410939177-2.13041093917689
56564566.545748403213-2.5457484032125
57549547.8533218122281.14667818777178







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
210.958437404485570.08312519102885980.0415625955144299
220.9951336015117740.009732796976452960.00486639848822648
230.98943908891780.02112182216440170.0105609110822009
240.9793879988070270.04122400238594550.0206120011929727
250.9776003450980610.04479930980387740.0223996549019387
260.9761108775158420.0477782449683150.0238891224841575
270.9763636485948330.04727270281033340.0236363514051667
280.9840582139612160.03188357207756820.0159417860387841
290.9716750865853950.05664982682921010.0283249134146051
300.9543196861134660.09136062777306840.0456803138865342
310.9231514453578780.1536971092842440.0768485546421218
320.9018115305736390.1963769388527220.0981884694263612
330.8387500337978850.322499932404230.161249966202115
340.9207956002113720.1584087995772560.0792043997886281
350.8432594453941370.3134811092117260.156740554605863
360.7061216546529620.5877566906940760.293878345347038

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
21 & 0.95843740448557 & 0.0831251910288598 & 0.0415625955144299 \tabularnewline
22 & 0.995133601511774 & 0.00973279697645296 & 0.00486639848822648 \tabularnewline
23 & 0.9894390889178 & 0.0211218221644017 & 0.0105609110822009 \tabularnewline
24 & 0.979387998807027 & 0.0412240023859455 & 0.0206120011929727 \tabularnewline
25 & 0.977600345098061 & 0.0447993098038774 & 0.0223996549019387 \tabularnewline
26 & 0.976110877515842 & 0.047778244968315 & 0.0238891224841575 \tabularnewline
27 & 0.976363648594833 & 0.0472727028103334 & 0.0236363514051667 \tabularnewline
28 & 0.984058213961216 & 0.0318835720775682 & 0.0159417860387841 \tabularnewline
29 & 0.971675086585395 & 0.0566498268292101 & 0.0283249134146051 \tabularnewline
30 & 0.954319686113466 & 0.0913606277730684 & 0.0456803138865342 \tabularnewline
31 & 0.923151445357878 & 0.153697109284244 & 0.0768485546421218 \tabularnewline
32 & 0.901811530573639 & 0.196376938852722 & 0.0981884694263612 \tabularnewline
33 & 0.838750033797885 & 0.32249993240423 & 0.161249966202115 \tabularnewline
34 & 0.920795600211372 & 0.158408799577256 & 0.0792043997886281 \tabularnewline
35 & 0.843259445394137 & 0.313481109211726 & 0.156740554605863 \tabularnewline
36 & 0.706121654652962 & 0.587756690694076 & 0.293878345347038 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=115213&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.95843740448557[/C][C]0.0831251910288598[/C][C]0.0415625955144299[/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.0211218221644017[/C][C]0.0105609110822009[/C][/ROW]
[ROW][C]24[/C][C]0.979387998807027[/C][C]0.0412240023859455[/C][C]0.0206120011929727[/C][/ROW]
[ROW][C]25[/C][C]0.977600345098061[/C][C]0.0447993098038774[/C][C]0.0223996549019387[/C][/ROW]
[ROW][C]26[/C][C]0.976110877515842[/C][C]0.047778244968315[/C][C]0.0238891224841575[/C][/ROW]
[ROW][C]27[/C][C]0.976363648594833[/C][C]0.0472727028103334[/C][C]0.0236363514051667[/C][/ROW]
[ROW][C]28[/C][C]0.984058213961216[/C][C]0.0318835720775682[/C][C]0.0159417860387841[/C][/ROW]
[ROW][C]29[/C][C]0.971675086585395[/C][C]0.0566498268292101[/C][C]0.0283249134146051[/C][/ROW]
[ROW][C]30[/C][C]0.954319686113466[/C][C]0.0913606277730684[/C][C]0.0456803138865342[/C][/ROW]
[ROW][C]31[/C][C]0.923151445357878[/C][C]0.153697109284244[/C][C]0.0768485546421218[/C][/ROW]
[ROW][C]32[/C][C]0.901811530573639[/C][C]0.196376938852722[/C][C]0.0981884694263612[/C][/ROW]
[ROW][C]33[/C][C]0.838750033797885[/C][C]0.32249993240423[/C][C]0.161249966202115[/C][/ROW]
[ROW][C]34[/C][C]0.920795600211372[/C][C]0.158408799577256[/C][C]0.0792043997886281[/C][/ROW]
[ROW][C]35[/C][C]0.843259445394137[/C][C]0.313481109211726[/C][C]0.156740554605863[/C][/ROW]
[ROW][C]36[/C][C]0.706121654652962[/C][C]0.587756690694076[/C][C]0.293878345347038[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=115213&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=115213&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.958437404485570.08312519102885980.0415625955144299
220.9951336015117740.009732796976452960.00486639848822648
230.98943908891780.02112182216440170.0105609110822009
240.9793879988070270.04122400238594550.0206120011929727
250.9776003450980610.04479930980387740.0223996549019387
260.9761108775158420.0477782449683150.0238891224841575
270.9763636485948330.04727270281033340.0236363514051667
280.9840582139612160.03188357207756820.0159417860387841
290.9716750865853950.05664982682921010.0283249134146051
300.9543196861134660.09136062777306840.0456803138865342
310.9231514453578780.1536971092842440.0768485546421218
320.9018115305736390.1963769388527220.0981884694263612
330.8387500337978850.322499932404230.161249966202115
340.9207956002113720.1584087995772560.0792043997886281
350.8432594453941370.3134811092117260.156740554605863
360.7061216546529620.5877566906940760.293878345347038







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=115213&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=115213&T=6

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=115213&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')
}