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, 19 Nov 2009 14:13:22 -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/19/t1258665286qo5vqbk2vx2sosy.htm/, Retrieved Fri, 26 Apr 2024 15:36:44 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=57959, Retrieved Fri, 26 Apr 2024 15:36:44 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact173
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [Model 2] [2009-11-19 21:13:22] [e458b4e05bf28a297f8af8d9f96e59d6] [Current]
Feedback Forum

Post a new message
Dataseries X:
4.3	96.2
4.1	96.8
3.9	109.9
3.8	88
3.7	91.1
3.7	106.4
4.1	68.6
4.1	100.1
3.8	108
3.7	106
3.5	108.6
3.6	91.5
4.1	99.2
3.8	98
3.7	96.6
3.6	102.8
3.3	96.9
3.4	110
3.7	70.5
3.7	101.9
3.4	109.6
3.3	107.8
3	113
3	93.8
3.3	108
3	102.8
2.9	116.3
2.8	89.2
2.5	106.7
2.6	112.1
2.8	74.2
2.7	108.8
2.4	111.5
2.2	118.8
2.1	118.9
2.1	97.6
2.3	116.4
2.1	107.9
2	121.2
1.9	97.9
1.7	113.4
1.8	117.6
2.1	79.6
2	115.9
1.8	115.7
1.7	129.1
1.6	123.3
1.6	96.7
1.8	121.2
1.7	118.2
1.7	102.1
1.5	125.4
1.5	116.7
1.5	121.3
1.8	85.3
1.8	114.2
1.7	124.4
1.7	131
1.8	118.3
2	99.6




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

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

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

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

As an alternative you can also use a QR Code:  

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

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







Multiple Linear Regression - Estimated Regression Equation
unempl[t] = + 10.7362119129704 -0.0863544648682223proman[t] + 1.76734118577122M1[t] + 1.24855473732718M2[t] + 1.53542273993681M3[t] + 0.676228520664832M4[t] + 0.867552719598188M5[t] + 1.66329276027544M6[t] -1.30436019033809M7[t] + 1.46561409647386M8[t] + 1.71438036762800M9[t] + 2.02024635250865M10[t] + 1.71717488698802M11[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
unempl[t] =  +  10.7362119129704 -0.0863544648682223proman[t] +  1.76734118577122M1[t] +  1.24855473732718M2[t] +  1.53542273993681M3[t] +  0.676228520664832M4[t] +  0.867552719598188M5[t] +  1.66329276027544M6[t] -1.30436019033809M7[t] +  1.46561409647386M8[t] +  1.71438036762800M9[t] +  2.02024635250865M10[t] +  1.71717488698802M11[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57959&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]unempl[t] =  +  10.7362119129704 -0.0863544648682223proman[t] +  1.76734118577122M1[t] +  1.24855473732718M2[t] +  1.53542273993681M3[t] +  0.676228520664832M4[t] +  0.867552719598188M5[t] +  1.66329276027544M6[t] -1.30436019033809M7[t] +  1.46561409647386M8[t] +  1.71438036762800M9[t] +  2.02024635250865M10[t] +  1.71717488698802M11[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57959&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57959&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
unempl[t] = + 10.7362119129704 -0.0863544648682223proman[t] + 1.76734118577122M1[t] + 1.24855473732718M2[t] + 1.53542273993681M3[t] + 0.676228520664832M4[t] + 0.867552719598188M5[t] + 1.66329276027544M6[t] -1.30436019033809M7[t] + 1.46561409647386M8[t] + 1.71438036762800M9[t] + 2.02024635250865M10[t] + 1.71717488698802M11[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)10.73621191297040.90654511.84300
proman-0.08635446486822230.009075-9.515500
M11.767341185771220.37854.66932.5e-051.3e-05
M21.248554737327180.370413.37070.0015070.000753
M31.535422739936810.3813454.02630.0002050.000103
M40.6762285206648320.3641341.85710.0695720.034786
M50.8675527195981880.3708512.33940.0236180.011809
M61.663292760275440.3953584.20710.0001155.8e-05
M7-1.304360190338090.405322-3.21810.002340.00117
M81.465614096473860.3784463.87270.0003320.000166
M91.714380367628000.3966924.32178e-054e-05
M102.020246352508650.4160754.85551.4e-057e-06
M111.717174886988020.4068934.22020.0001115.5e-05

\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) & 10.7362119129704 & 0.906545 & 11.843 & 0 & 0 \tabularnewline
proman & -0.0863544648682223 & 0.009075 & -9.5155 & 0 & 0 \tabularnewline
M1 & 1.76734118577122 & 0.3785 & 4.6693 & 2.5e-05 & 1.3e-05 \tabularnewline
M2 & 1.24855473732718 & 0.37041 & 3.3707 & 0.001507 & 0.000753 \tabularnewline
M3 & 1.53542273993681 & 0.381345 & 4.0263 & 0.000205 & 0.000103 \tabularnewline
M4 & 0.676228520664832 & 0.364134 & 1.8571 & 0.069572 & 0.034786 \tabularnewline
M5 & 0.867552719598188 & 0.370851 & 2.3394 & 0.023618 & 0.011809 \tabularnewline
M6 & 1.66329276027544 & 0.395358 & 4.2071 & 0.000115 & 5.8e-05 \tabularnewline
M7 & -1.30436019033809 & 0.405322 & -3.2181 & 0.00234 & 0.00117 \tabularnewline
M8 & 1.46561409647386 & 0.378446 & 3.8727 & 0.000332 & 0.000166 \tabularnewline
M9 & 1.71438036762800 & 0.396692 & 4.3217 & 8e-05 & 4e-05 \tabularnewline
M10 & 2.02024635250865 & 0.416075 & 4.8555 & 1.4e-05 & 7e-06 \tabularnewline
M11 & 1.71717488698802 & 0.406893 & 4.2202 & 0.000111 & 5.5e-05 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57959&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]10.7362119129704[/C][C]0.906545[/C][C]11.843[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]proman[/C][C]-0.0863544648682223[/C][C]0.009075[/C][C]-9.5155[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]M1[/C][C]1.76734118577122[/C][C]0.3785[/C][C]4.6693[/C][C]2.5e-05[/C][C]1.3e-05[/C][/ROW]
[ROW][C]M2[/C][C]1.24855473732718[/C][C]0.37041[/C][C]3.3707[/C][C]0.001507[/C][C]0.000753[/C][/ROW]
[ROW][C]M3[/C][C]1.53542273993681[/C][C]0.381345[/C][C]4.0263[/C][C]0.000205[/C][C]0.000103[/C][/ROW]
[ROW][C]M4[/C][C]0.676228520664832[/C][C]0.364134[/C][C]1.8571[/C][C]0.069572[/C][C]0.034786[/C][/ROW]
[ROW][C]M5[/C][C]0.867552719598188[/C][C]0.370851[/C][C]2.3394[/C][C]0.023618[/C][C]0.011809[/C][/ROW]
[ROW][C]M6[/C][C]1.66329276027544[/C][C]0.395358[/C][C]4.2071[/C][C]0.000115[/C][C]5.8e-05[/C][/ROW]
[ROW][C]M7[/C][C]-1.30436019033809[/C][C]0.405322[/C][C]-3.2181[/C][C]0.00234[/C][C]0.00117[/C][/ROW]
[ROW][C]M8[/C][C]1.46561409647386[/C][C]0.378446[/C][C]3.8727[/C][C]0.000332[/C][C]0.000166[/C][/ROW]
[ROW][C]M9[/C][C]1.71438036762800[/C][C]0.396692[/C][C]4.3217[/C][C]8e-05[/C][C]4e-05[/C][/ROW]
[ROW][C]M10[/C][C]2.02024635250865[/C][C]0.416075[/C][C]4.8555[/C][C]1.4e-05[/C][C]7e-06[/C][/ROW]
[ROW][C]M11[/C][C]1.71717488698802[/C][C]0.406893[/C][C]4.2202[/C][C]0.000111[/C][C]5.5e-05[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57959&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57959&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)10.73621191297040.90654511.84300
proman-0.08635446486822230.009075-9.515500
M11.767341185771220.37854.66932.5e-051.3e-05
M21.248554737327180.370413.37070.0015070.000753
M31.535422739936810.3813454.02630.0002050.000103
M40.6762285206648320.3641341.85710.0695720.034786
M50.8675527195981880.3708512.33940.0236180.011809
M61.663292760275440.3953584.20710.0001155.8e-05
M7-1.304360190338090.405322-3.21810.002340.00117
M81.465614096473860.3784463.87270.0003320.000166
M91.714380367628000.3966924.32178e-054e-05
M102.020246352508650.4160754.85551.4e-057e-06
M111.717174886988020.4068934.22020.0001115.5e-05







Multiple Linear Regression - Regression Statistics
Multiple R0.823911288067274
R-squared0.678829810604674
Adjusted R-squared0.596828911184591
F-TEST (value)8.27832152336635
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value4.40602229145881e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.571577374027925
Sum Squared Residuals15.3549326415309

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.823911288067274 \tabularnewline
R-squared & 0.678829810604674 \tabularnewline
Adjusted R-squared & 0.596828911184591 \tabularnewline
F-TEST (value) & 8.27832152336635 \tabularnewline
F-TEST (DF numerator) & 12 \tabularnewline
F-TEST (DF denominator) & 47 \tabularnewline
p-value & 4.40602229145881e-08 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.571577374027925 \tabularnewline
Sum Squared Residuals & 15.3549326415309 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57959&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.823911288067274[/C][/ROW]
[ROW][C]R-squared[/C][C]0.678829810604674[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.596828911184591[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]8.27832152336635[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]12[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]47[/C][/ROW]
[ROW][C]p-value[/C][C]4.40602229145881e-08[/C][/ROW]
[ROW][C]Multiple Linear Regression - Residual Statistics[/C][/ROW]
[ROW][C]Residual Standard Deviation[/C][C]0.571577374027925[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]15.3549326415309[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57959&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57959&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.823911288067274
R-squared0.678829810604674
Adjusted R-squared0.596828911184591
F-TEST (value)8.27832152336635
F-TEST (DF numerator)12
F-TEST (DF denominator)47
p-value4.40602229145881e-08
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.571577374027925
Sum Squared Residuals15.3549326415309







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
14.34.19625357841870.103746421581302
24.13.625654451053680.474345548946316
33.92.781278963889611.11872103611039
43.83.81324752523170-0.0132475252316958
53.73.73687288307356-0.0368728830735613
63.73.211389611267010.488610388732986
74.13.507935432672290.592064567327714
84.13.557744076135240.542255923864763
93.83.124310074830420.675689925169582
103.73.602884989447510.0971150105524916
113.53.07529191526950.424708084730501
123.62.834778377528080.765221622471915
134.13.937190183813990.162809816186008
143.83.522029093211820.277970906788181
153.73.92979334663697-0.229793346636966
163.62.535201445182001.06479855481800
173.33.236016986837870.0639830131621285
183.42.900513537741410.499486462258587
193.73.343861949422660.356138050577338
203.73.402306039372440.297693960627565
213.42.986142931041260.413857068958737
223.33.44744695268471-0.147446952684708
2332.695332269849320.30466773015068
2432.636163108331170.363836891668826
253.33.177270892973640.122729107026363
2633.10752766184435-0.107527661844352
272.92.228610388732990.671389611267013
282.83.70962216738983-0.909622167389827
292.52.389743231129290.110256768870707
302.62.71916916151815-0.119169161518147
312.83.02435042941024-0.224350429410240
322.72.8064602317817-0.106460231781703
332.42.82206944779164-0.42206944779164
342.22.49754783913426-0.297547839134261
352.12.18584092712681-0.0858409271268084
362.12.30801614183193-0.208016141831930
372.32.45189338808057-0.151893388080570
382.12.66711989101642-0.567119891016417
3921.805473510878700.194526489121303
401.92.95833832303629-1.05833832303629
411.71.81116831651220-0.111168316512204
421.82.24421960474292-0.444219604742924
432.12.55803631912184-0.45803631912184
4422.19334353121732-0.193343531217323
451.82.45938069534511-0.659380695345107
461.71.608096850991570.091903149008428
471.61.80588128170663-0.20588128170663
481.62.38573516021333-0.785735160213329
491.82.03739195671310-0.237391956713103
501.71.77766890287373-0.077668902873728
511.73.45484378986174-1.75484378986174
521.50.583590539160180.91640946083982
531.51.52619858244707-0.0261985824470702
541.51.9247080847305-0.424708084730502
551.82.06581586937297-0.265815869372972
561.82.3401461214933-0.540146121493301
571.71.70809685099157-0.0080968509915719
581.71.444023367741950.255976632258050
591.82.23765360604774-0.437653606047742
6022.13530721209548-0.135307212095485

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 4.3 & 4.1962535784187 & 0.103746421581302 \tabularnewline
2 & 4.1 & 3.62565445105368 & 0.474345548946316 \tabularnewline
3 & 3.9 & 2.78127896388961 & 1.11872103611039 \tabularnewline
4 & 3.8 & 3.81324752523170 & -0.0132475252316958 \tabularnewline
5 & 3.7 & 3.73687288307356 & -0.0368728830735613 \tabularnewline
6 & 3.7 & 3.21138961126701 & 0.488610388732986 \tabularnewline
7 & 4.1 & 3.50793543267229 & 0.592064567327714 \tabularnewline
8 & 4.1 & 3.55774407613524 & 0.542255923864763 \tabularnewline
9 & 3.8 & 3.12431007483042 & 0.675689925169582 \tabularnewline
10 & 3.7 & 3.60288498944751 & 0.0971150105524916 \tabularnewline
11 & 3.5 & 3.0752919152695 & 0.424708084730501 \tabularnewline
12 & 3.6 & 2.83477837752808 & 0.765221622471915 \tabularnewline
13 & 4.1 & 3.93719018381399 & 0.162809816186008 \tabularnewline
14 & 3.8 & 3.52202909321182 & 0.277970906788181 \tabularnewline
15 & 3.7 & 3.92979334663697 & -0.229793346636966 \tabularnewline
16 & 3.6 & 2.53520144518200 & 1.06479855481800 \tabularnewline
17 & 3.3 & 3.23601698683787 & 0.0639830131621285 \tabularnewline
18 & 3.4 & 2.90051353774141 & 0.499486462258587 \tabularnewline
19 & 3.7 & 3.34386194942266 & 0.356138050577338 \tabularnewline
20 & 3.7 & 3.40230603937244 & 0.297693960627565 \tabularnewline
21 & 3.4 & 2.98614293104126 & 0.413857068958737 \tabularnewline
22 & 3.3 & 3.44744695268471 & -0.147446952684708 \tabularnewline
23 & 3 & 2.69533226984932 & 0.30466773015068 \tabularnewline
24 & 3 & 2.63616310833117 & 0.363836891668826 \tabularnewline
25 & 3.3 & 3.17727089297364 & 0.122729107026363 \tabularnewline
26 & 3 & 3.10752766184435 & -0.107527661844352 \tabularnewline
27 & 2.9 & 2.22861038873299 & 0.671389611267013 \tabularnewline
28 & 2.8 & 3.70962216738983 & -0.909622167389827 \tabularnewline
29 & 2.5 & 2.38974323112929 & 0.110256768870707 \tabularnewline
30 & 2.6 & 2.71916916151815 & -0.119169161518147 \tabularnewline
31 & 2.8 & 3.02435042941024 & -0.224350429410240 \tabularnewline
32 & 2.7 & 2.8064602317817 & -0.106460231781703 \tabularnewline
33 & 2.4 & 2.82206944779164 & -0.42206944779164 \tabularnewline
34 & 2.2 & 2.49754783913426 & -0.297547839134261 \tabularnewline
35 & 2.1 & 2.18584092712681 & -0.0858409271268084 \tabularnewline
36 & 2.1 & 2.30801614183193 & -0.208016141831930 \tabularnewline
37 & 2.3 & 2.45189338808057 & -0.151893388080570 \tabularnewline
38 & 2.1 & 2.66711989101642 & -0.567119891016417 \tabularnewline
39 & 2 & 1.80547351087870 & 0.194526489121303 \tabularnewline
40 & 1.9 & 2.95833832303629 & -1.05833832303629 \tabularnewline
41 & 1.7 & 1.81116831651220 & -0.111168316512204 \tabularnewline
42 & 1.8 & 2.24421960474292 & -0.444219604742924 \tabularnewline
43 & 2.1 & 2.55803631912184 & -0.45803631912184 \tabularnewline
44 & 2 & 2.19334353121732 & -0.193343531217323 \tabularnewline
45 & 1.8 & 2.45938069534511 & -0.659380695345107 \tabularnewline
46 & 1.7 & 1.60809685099157 & 0.091903149008428 \tabularnewline
47 & 1.6 & 1.80588128170663 & -0.20588128170663 \tabularnewline
48 & 1.6 & 2.38573516021333 & -0.785735160213329 \tabularnewline
49 & 1.8 & 2.03739195671310 & -0.237391956713103 \tabularnewline
50 & 1.7 & 1.77766890287373 & -0.077668902873728 \tabularnewline
51 & 1.7 & 3.45484378986174 & -1.75484378986174 \tabularnewline
52 & 1.5 & 0.58359053916018 & 0.91640946083982 \tabularnewline
53 & 1.5 & 1.52619858244707 & -0.0261985824470702 \tabularnewline
54 & 1.5 & 1.9247080847305 & -0.424708084730502 \tabularnewline
55 & 1.8 & 2.06581586937297 & -0.265815869372972 \tabularnewline
56 & 1.8 & 2.3401461214933 & -0.540146121493301 \tabularnewline
57 & 1.7 & 1.70809685099157 & -0.0080968509915719 \tabularnewline
58 & 1.7 & 1.44402336774195 & 0.255976632258050 \tabularnewline
59 & 1.8 & 2.23765360604774 & -0.437653606047742 \tabularnewline
60 & 2 & 2.13530721209548 & -0.135307212095485 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57959&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]4.3[/C][C]4.1962535784187[/C][C]0.103746421581302[/C][/ROW]
[ROW][C]2[/C][C]4.1[/C][C]3.62565445105368[/C][C]0.474345548946316[/C][/ROW]
[ROW][C]3[/C][C]3.9[/C][C]2.78127896388961[/C][C]1.11872103611039[/C][/ROW]
[ROW][C]4[/C][C]3.8[/C][C]3.81324752523170[/C][C]-0.0132475252316958[/C][/ROW]
[ROW][C]5[/C][C]3.7[/C][C]3.73687288307356[/C][C]-0.0368728830735613[/C][/ROW]
[ROW][C]6[/C][C]3.7[/C][C]3.21138961126701[/C][C]0.488610388732986[/C][/ROW]
[ROW][C]7[/C][C]4.1[/C][C]3.50793543267229[/C][C]0.592064567327714[/C][/ROW]
[ROW][C]8[/C][C]4.1[/C][C]3.55774407613524[/C][C]0.542255923864763[/C][/ROW]
[ROW][C]9[/C][C]3.8[/C][C]3.12431007483042[/C][C]0.675689925169582[/C][/ROW]
[ROW][C]10[/C][C]3.7[/C][C]3.60288498944751[/C][C]0.0971150105524916[/C][/ROW]
[ROW][C]11[/C][C]3.5[/C][C]3.0752919152695[/C][C]0.424708084730501[/C][/ROW]
[ROW][C]12[/C][C]3.6[/C][C]2.83477837752808[/C][C]0.765221622471915[/C][/ROW]
[ROW][C]13[/C][C]4.1[/C][C]3.93719018381399[/C][C]0.162809816186008[/C][/ROW]
[ROW][C]14[/C][C]3.8[/C][C]3.52202909321182[/C][C]0.277970906788181[/C][/ROW]
[ROW][C]15[/C][C]3.7[/C][C]3.92979334663697[/C][C]-0.229793346636966[/C][/ROW]
[ROW][C]16[/C][C]3.6[/C][C]2.53520144518200[/C][C]1.06479855481800[/C][/ROW]
[ROW][C]17[/C][C]3.3[/C][C]3.23601698683787[/C][C]0.0639830131621285[/C][/ROW]
[ROW][C]18[/C][C]3.4[/C][C]2.90051353774141[/C][C]0.499486462258587[/C][/ROW]
[ROW][C]19[/C][C]3.7[/C][C]3.34386194942266[/C][C]0.356138050577338[/C][/ROW]
[ROW][C]20[/C][C]3.7[/C][C]3.40230603937244[/C][C]0.297693960627565[/C][/ROW]
[ROW][C]21[/C][C]3.4[/C][C]2.98614293104126[/C][C]0.413857068958737[/C][/ROW]
[ROW][C]22[/C][C]3.3[/C][C]3.44744695268471[/C][C]-0.147446952684708[/C][/ROW]
[ROW][C]23[/C][C]3[/C][C]2.69533226984932[/C][C]0.30466773015068[/C][/ROW]
[ROW][C]24[/C][C]3[/C][C]2.63616310833117[/C][C]0.363836891668826[/C][/ROW]
[ROW][C]25[/C][C]3.3[/C][C]3.17727089297364[/C][C]0.122729107026363[/C][/ROW]
[ROW][C]26[/C][C]3[/C][C]3.10752766184435[/C][C]-0.107527661844352[/C][/ROW]
[ROW][C]27[/C][C]2.9[/C][C]2.22861038873299[/C][C]0.671389611267013[/C][/ROW]
[ROW][C]28[/C][C]2.8[/C][C]3.70962216738983[/C][C]-0.909622167389827[/C][/ROW]
[ROW][C]29[/C][C]2.5[/C][C]2.38974323112929[/C][C]0.110256768870707[/C][/ROW]
[ROW][C]30[/C][C]2.6[/C][C]2.71916916151815[/C][C]-0.119169161518147[/C][/ROW]
[ROW][C]31[/C][C]2.8[/C][C]3.02435042941024[/C][C]-0.224350429410240[/C][/ROW]
[ROW][C]32[/C][C]2.7[/C][C]2.8064602317817[/C][C]-0.106460231781703[/C][/ROW]
[ROW][C]33[/C][C]2.4[/C][C]2.82206944779164[/C][C]-0.42206944779164[/C][/ROW]
[ROW][C]34[/C][C]2.2[/C][C]2.49754783913426[/C][C]-0.297547839134261[/C][/ROW]
[ROW][C]35[/C][C]2.1[/C][C]2.18584092712681[/C][C]-0.0858409271268084[/C][/ROW]
[ROW][C]36[/C][C]2.1[/C][C]2.30801614183193[/C][C]-0.208016141831930[/C][/ROW]
[ROW][C]37[/C][C]2.3[/C][C]2.45189338808057[/C][C]-0.151893388080570[/C][/ROW]
[ROW][C]38[/C][C]2.1[/C][C]2.66711989101642[/C][C]-0.567119891016417[/C][/ROW]
[ROW][C]39[/C][C]2[/C][C]1.80547351087870[/C][C]0.194526489121303[/C][/ROW]
[ROW][C]40[/C][C]1.9[/C][C]2.95833832303629[/C][C]-1.05833832303629[/C][/ROW]
[ROW][C]41[/C][C]1.7[/C][C]1.81116831651220[/C][C]-0.111168316512204[/C][/ROW]
[ROW][C]42[/C][C]1.8[/C][C]2.24421960474292[/C][C]-0.444219604742924[/C][/ROW]
[ROW][C]43[/C][C]2.1[/C][C]2.55803631912184[/C][C]-0.45803631912184[/C][/ROW]
[ROW][C]44[/C][C]2[/C][C]2.19334353121732[/C][C]-0.193343531217323[/C][/ROW]
[ROW][C]45[/C][C]1.8[/C][C]2.45938069534511[/C][C]-0.659380695345107[/C][/ROW]
[ROW][C]46[/C][C]1.7[/C][C]1.60809685099157[/C][C]0.091903149008428[/C][/ROW]
[ROW][C]47[/C][C]1.6[/C][C]1.80588128170663[/C][C]-0.20588128170663[/C][/ROW]
[ROW][C]48[/C][C]1.6[/C][C]2.38573516021333[/C][C]-0.785735160213329[/C][/ROW]
[ROW][C]49[/C][C]1.8[/C][C]2.03739195671310[/C][C]-0.237391956713103[/C][/ROW]
[ROW][C]50[/C][C]1.7[/C][C]1.77766890287373[/C][C]-0.077668902873728[/C][/ROW]
[ROW][C]51[/C][C]1.7[/C][C]3.45484378986174[/C][C]-1.75484378986174[/C][/ROW]
[ROW][C]52[/C][C]1.5[/C][C]0.58359053916018[/C][C]0.91640946083982[/C][/ROW]
[ROW][C]53[/C][C]1.5[/C][C]1.52619858244707[/C][C]-0.0261985824470702[/C][/ROW]
[ROW][C]54[/C][C]1.5[/C][C]1.9247080847305[/C][C]-0.424708084730502[/C][/ROW]
[ROW][C]55[/C][C]1.8[/C][C]2.06581586937297[/C][C]-0.265815869372972[/C][/ROW]
[ROW][C]56[/C][C]1.8[/C][C]2.3401461214933[/C][C]-0.540146121493301[/C][/ROW]
[ROW][C]57[/C][C]1.7[/C][C]1.70809685099157[/C][C]-0.0080968509915719[/C][/ROW]
[ROW][C]58[/C][C]1.7[/C][C]1.44402336774195[/C][C]0.255976632258050[/C][/ROW]
[ROW][C]59[/C][C]1.8[/C][C]2.23765360604774[/C][C]-0.437653606047742[/C][/ROW]
[ROW][C]60[/C][C]2[/C][C]2.13530721209548[/C][C]-0.135307212095485[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57959&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57959&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
14.34.19625357841870.103746421581302
24.13.625654451053680.474345548946316
33.92.781278963889611.11872103611039
43.83.81324752523170-0.0132475252316958
53.73.73687288307356-0.0368728830735613
63.73.211389611267010.488610388732986
74.13.507935432672290.592064567327714
84.13.557744076135240.542255923864763
93.83.124310074830420.675689925169582
103.73.602884989447510.0971150105524916
113.53.07529191526950.424708084730501
123.62.834778377528080.765221622471915
134.13.937190183813990.162809816186008
143.83.522029093211820.277970906788181
153.73.92979334663697-0.229793346636966
163.62.535201445182001.06479855481800
173.33.236016986837870.0639830131621285
183.42.900513537741410.499486462258587
193.73.343861949422660.356138050577338
203.73.402306039372440.297693960627565
213.42.986142931041260.413857068958737
223.33.44744695268471-0.147446952684708
2332.695332269849320.30466773015068
2432.636163108331170.363836891668826
253.33.177270892973640.122729107026363
2633.10752766184435-0.107527661844352
272.92.228610388732990.671389611267013
282.83.70962216738983-0.909622167389827
292.52.389743231129290.110256768870707
302.62.71916916151815-0.119169161518147
312.83.02435042941024-0.224350429410240
322.72.8064602317817-0.106460231781703
332.42.82206944779164-0.42206944779164
342.22.49754783913426-0.297547839134261
352.12.18584092712681-0.0858409271268084
362.12.30801614183193-0.208016141831930
372.32.45189338808057-0.151893388080570
382.12.66711989101642-0.567119891016417
3921.805473510878700.194526489121303
401.92.95833832303629-1.05833832303629
411.71.81116831651220-0.111168316512204
421.82.24421960474292-0.444219604742924
432.12.55803631912184-0.45803631912184
4422.19334353121732-0.193343531217323
451.82.45938069534511-0.659380695345107
461.71.608096850991570.091903149008428
471.61.80588128170663-0.20588128170663
481.62.38573516021333-0.785735160213329
491.82.03739195671310-0.237391956713103
501.71.77766890287373-0.077668902873728
511.73.45484378986174-1.75484378986174
521.50.583590539160180.91640946083982
531.51.52619858244707-0.0261985824470702
541.51.9247080847305-0.424708084730502
551.82.06581586937297-0.265815869372972
561.82.3401461214933-0.540146121493301
571.71.70809685099157-0.0080968509915719
581.71.444023367741950.255976632258050
591.82.23765360604774-0.437653606047742
6022.13530721209548-0.135307212095485







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
160.05828631367752960.1165726273550590.94171368632247
170.04215368010675820.08430736021351650.957846319893242
180.02570983291309180.05141966582618360.974290167086908
190.02369567412493140.04739134824986280.976304325875069
200.02269115323184480.04538230646368950.977308846768155
210.02569325938737580.05138651877475170.974306740612624
220.02174450715470570.04348901430941130.978255492845294
230.02665463714200140.05330927428400270.973345362857999
240.05196065467634280.1039213093526860.948039345323657
250.1088444981289870.2176889962579750.891155501871012
260.2330680050957950.4661360101915890.766931994904205
270.4267675985451040.8535351970902080.573232401454896
280.7498994792440730.5002010415118540.250100520755927
290.791621602997970.4167567940040590.208378397002030
300.904418470768560.1911630584628790.0955815292314396
310.9625493764064150.07490124718716930.0374506235935846
320.9881498667495360.02370026650092750.0118501332504638
330.9961962417187420.007607516562515720.00380375828125786
340.9959600424156280.008079915168743960.00403995758437198
350.9964284616540790.007143076691842530.00357153834592126
360.9964907169517880.0070185660964230.0035092830482115
370.9969699356245650.006060128750869240.00303006437543462
380.9966324705271940.006735058945612560.00336752947280628
390.998516619403340.002966761193321090.00148338059666055
400.9971320522794320.005735895441136110.00286794772056805
410.9918874313589860.01622513728202720.0081125686410136
420.9848751207814730.03024975843705330.0151248792185266
430.9713195987021530.05736080259569310.0286804012978466
440.9327590780234760.1344818439530480.067240921976524

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
16 & 0.0582863136775296 & 0.116572627355059 & 0.94171368632247 \tabularnewline
17 & 0.0421536801067582 & 0.0843073602135165 & 0.957846319893242 \tabularnewline
18 & 0.0257098329130918 & 0.0514196658261836 & 0.974290167086908 \tabularnewline
19 & 0.0236956741249314 & 0.0473913482498628 & 0.976304325875069 \tabularnewline
20 & 0.0226911532318448 & 0.0453823064636895 & 0.977308846768155 \tabularnewline
21 & 0.0256932593873758 & 0.0513865187747517 & 0.974306740612624 \tabularnewline
22 & 0.0217445071547057 & 0.0434890143094113 & 0.978255492845294 \tabularnewline
23 & 0.0266546371420014 & 0.0533092742840027 & 0.973345362857999 \tabularnewline
24 & 0.0519606546763428 & 0.103921309352686 & 0.948039345323657 \tabularnewline
25 & 0.108844498128987 & 0.217688996257975 & 0.891155501871012 \tabularnewline
26 & 0.233068005095795 & 0.466136010191589 & 0.766931994904205 \tabularnewline
27 & 0.426767598545104 & 0.853535197090208 & 0.573232401454896 \tabularnewline
28 & 0.749899479244073 & 0.500201041511854 & 0.250100520755927 \tabularnewline
29 & 0.79162160299797 & 0.416756794004059 & 0.208378397002030 \tabularnewline
30 & 0.90441847076856 & 0.191163058462879 & 0.0955815292314396 \tabularnewline
31 & 0.962549376406415 & 0.0749012471871693 & 0.0374506235935846 \tabularnewline
32 & 0.988149866749536 & 0.0237002665009275 & 0.0118501332504638 \tabularnewline
33 & 0.996196241718742 & 0.00760751656251572 & 0.00380375828125786 \tabularnewline
34 & 0.995960042415628 & 0.00807991516874396 & 0.00403995758437198 \tabularnewline
35 & 0.996428461654079 & 0.00714307669184253 & 0.00357153834592126 \tabularnewline
36 & 0.996490716951788 & 0.007018566096423 & 0.0035092830482115 \tabularnewline
37 & 0.996969935624565 & 0.00606012875086924 & 0.00303006437543462 \tabularnewline
38 & 0.996632470527194 & 0.00673505894561256 & 0.00336752947280628 \tabularnewline
39 & 0.99851661940334 & 0.00296676119332109 & 0.00148338059666055 \tabularnewline
40 & 0.997132052279432 & 0.00573589544113611 & 0.00286794772056805 \tabularnewline
41 & 0.991887431358986 & 0.0162251372820272 & 0.0081125686410136 \tabularnewline
42 & 0.984875120781473 & 0.0302497584370533 & 0.0151248792185266 \tabularnewline
43 & 0.971319598702153 & 0.0573608025956931 & 0.0286804012978466 \tabularnewline
44 & 0.932759078023476 & 0.134481843953048 & 0.067240921976524 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=57959&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]16[/C][C]0.0582863136775296[/C][C]0.116572627355059[/C][C]0.94171368632247[/C][/ROW]
[ROW][C]17[/C][C]0.0421536801067582[/C][C]0.0843073602135165[/C][C]0.957846319893242[/C][/ROW]
[ROW][C]18[/C][C]0.0257098329130918[/C][C]0.0514196658261836[/C][C]0.974290167086908[/C][/ROW]
[ROW][C]19[/C][C]0.0236956741249314[/C][C]0.0473913482498628[/C][C]0.976304325875069[/C][/ROW]
[ROW][C]20[/C][C]0.0226911532318448[/C][C]0.0453823064636895[/C][C]0.977308846768155[/C][/ROW]
[ROW][C]21[/C][C]0.0256932593873758[/C][C]0.0513865187747517[/C][C]0.974306740612624[/C][/ROW]
[ROW][C]22[/C][C]0.0217445071547057[/C][C]0.0434890143094113[/C][C]0.978255492845294[/C][/ROW]
[ROW][C]23[/C][C]0.0266546371420014[/C][C]0.0533092742840027[/C][C]0.973345362857999[/C][/ROW]
[ROW][C]24[/C][C]0.0519606546763428[/C][C]0.103921309352686[/C][C]0.948039345323657[/C][/ROW]
[ROW][C]25[/C][C]0.108844498128987[/C][C]0.217688996257975[/C][C]0.891155501871012[/C][/ROW]
[ROW][C]26[/C][C]0.233068005095795[/C][C]0.466136010191589[/C][C]0.766931994904205[/C][/ROW]
[ROW][C]27[/C][C]0.426767598545104[/C][C]0.853535197090208[/C][C]0.573232401454896[/C][/ROW]
[ROW][C]28[/C][C]0.749899479244073[/C][C]0.500201041511854[/C][C]0.250100520755927[/C][/ROW]
[ROW][C]29[/C][C]0.79162160299797[/C][C]0.416756794004059[/C][C]0.208378397002030[/C][/ROW]
[ROW][C]30[/C][C]0.90441847076856[/C][C]0.191163058462879[/C][C]0.0955815292314396[/C][/ROW]
[ROW][C]31[/C][C]0.962549376406415[/C][C]0.0749012471871693[/C][C]0.0374506235935846[/C][/ROW]
[ROW][C]32[/C][C]0.988149866749536[/C][C]0.0237002665009275[/C][C]0.0118501332504638[/C][/ROW]
[ROW][C]33[/C][C]0.996196241718742[/C][C]0.00760751656251572[/C][C]0.00380375828125786[/C][/ROW]
[ROW][C]34[/C][C]0.995960042415628[/C][C]0.00807991516874396[/C][C]0.00403995758437198[/C][/ROW]
[ROW][C]35[/C][C]0.996428461654079[/C][C]0.00714307669184253[/C][C]0.00357153834592126[/C][/ROW]
[ROW][C]36[/C][C]0.996490716951788[/C][C]0.007018566096423[/C][C]0.0035092830482115[/C][/ROW]
[ROW][C]37[/C][C]0.996969935624565[/C][C]0.00606012875086924[/C][C]0.00303006437543462[/C][/ROW]
[ROW][C]38[/C][C]0.996632470527194[/C][C]0.00673505894561256[/C][C]0.00336752947280628[/C][/ROW]
[ROW][C]39[/C][C]0.99851661940334[/C][C]0.00296676119332109[/C][C]0.00148338059666055[/C][/ROW]
[ROW][C]40[/C][C]0.997132052279432[/C][C]0.00573589544113611[/C][C]0.00286794772056805[/C][/ROW]
[ROW][C]41[/C][C]0.991887431358986[/C][C]0.0162251372820272[/C][C]0.0081125686410136[/C][/ROW]
[ROW][C]42[/C][C]0.984875120781473[/C][C]0.0302497584370533[/C][C]0.0151248792185266[/C][/ROW]
[ROW][C]43[/C][C]0.971319598702153[/C][C]0.0573608025956931[/C][C]0.0286804012978466[/C][/ROW]
[ROW][C]44[/C][C]0.932759078023476[/C][C]0.134481843953048[/C][C]0.067240921976524[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=57959&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57959&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
160.05828631367752960.1165726273550590.94171368632247
170.04215368010675820.08430736021351650.957846319893242
180.02570983291309180.05141966582618360.974290167086908
190.02369567412493140.04739134824986280.976304325875069
200.02269115323184480.04538230646368950.977308846768155
210.02569325938737580.05138651877475170.974306740612624
220.02174450715470570.04348901430941130.978255492845294
230.02665463714200140.05330927428400270.973345362857999
240.05196065467634280.1039213093526860.948039345323657
250.1088444981289870.2176889962579750.891155501871012
260.2330680050957950.4661360101915890.766931994904205
270.4267675985451040.8535351970902080.573232401454896
280.7498994792440730.5002010415118540.250100520755927
290.791621602997970.4167567940040590.208378397002030
300.904418470768560.1911630584628790.0955815292314396
310.9625493764064150.07490124718716930.0374506235935846
320.9881498667495360.02370026650092750.0118501332504638
330.9961962417187420.007607516562515720.00380375828125786
340.9959600424156280.008079915168743960.00403995758437198
350.9964284616540790.007143076691842530.00357153834592126
360.9964907169517880.0070185660964230.0035092830482115
370.9969699356245650.006060128750869240.00303006437543462
380.9966324705271940.006735058945612560.00336752947280628
390.998516619403340.002966761193321090.00148338059666055
400.9971320522794320.005735895441136110.00286794772056805
410.9918874313589860.01622513728202720.0081125686410136
420.9848751207814730.03024975843705330.0151248792185266
430.9713195987021530.05736080259569310.0286804012978466
440.9327590780234760.1344818439530480.067240921976524







Meta Analysis of Goldfeld-Quandt test for Heteroskedasticity
Description# significant tests% significant testsOK/NOK
1% type I error level80.275862068965517NOK
5% type I error level140.482758620689655NOK
10% type I error level200.689655172413793NOK

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

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=57959&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 level80.275862068965517NOK
5% type I error level140.482758620689655NOK
10% type I error level200.689655172413793NOK



Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No Linear Trend ;
Parameters (R input):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = No 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')
}