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 computationMon, 21 Nov 2011 07:05:30 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2011/Nov/21/t132187719089qv4rx73fsz7j6.htm/, Retrieved Thu, 25 Apr 2024 04:54:59 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=145713, Retrieved Thu, 25 Apr 2024 04:54:59 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact140
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Multiple Regression] [] [2011-11-21 12:05:30] [3627de22d386f4cb93d383ef7c1ade7f] [Current]
- R  D    [Multiple Regression] [] [2011-11-21 14:40:09] [74be16979710d4c4e7c6647856088456]
Feedback Forum

Post a new message
Dataseries X:
22	78.1
21.8	74.5
21.5	74.6
21.3	75.5
21.1	76.9
21.2	76.3
21	73.8
20.8	73.4
20.5	75.8
20.4	76.9
20.1	73.2
19.9	72.1
19.6	74.3
19.4	73.1
19.2	72.2
19.1	69.4
19.1	70.8
18.9	71.1
18.7	71.2
18.7	70.6
18.7	71.1
18.4	70.3
18.4	68.3
18.3	68.9
18.4	71.9
18.3	73.3
18.3	70.9
18	70
17.7	65.5
17.7	70.1
17.9	66.6
17.6	67.4
17.7	67.8
17.4	69.4
17.1	69.4
16.8	66.7
16.5	65
16.2	63.1
15.8	65
15.5	63.9
15.2	63
14.9	62.2
14.6	61.4
14.4	61
14.5	58.8
14.2	61




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net

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

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Herman Ole Andreas Wold' @ wold.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=145713&T=0

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

As an alternative you can also use a QR Code:  

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

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net







Multiple Linear Regression - Estimated Regression Equation
Mortality[t] = -10.8466082959961 + 0.418536397035318Marriages[t] + e[t]

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Estimated Regression Equation \tabularnewline
Mortality[t] =  -10.8466082959961 +  0.418536397035318Marriages[t]  + e[t] \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=145713&T=1

[TABLE]
[ROW][C]Multiple Linear Regression - Estimated Regression Equation[/C][/ROW]
[ROW][C]Mortality[t] =  -10.8466082959961 +  0.418536397035318Marriages[t]  + e[t][/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=145713&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=145713&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
Mortality[t] = -10.8466082959961 + 0.418536397035318Marriages[t] + e[t]







Multiple Linear Regression - Ordinary Least Squares
VariableParameterS.D.T-STATH0: parameter = 02-tail p-value1-tail p-value
(Intercept)-10.84660829599611.424473-7.614500
Marriages0.4185363970353180.02039120.525100

\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.8466082959961 & 1.424473 & -7.6145 & 0 & 0 \tabularnewline
Marriages & 0.418536397035318 & 0.020391 & 20.5251 & 0 & 0 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=145713&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.8466082959961[/C][C]1.424473[/C][C]-7.6145[/C][C]0[/C][C]0[/C][/ROW]
[ROW][C]Marriages[/C][C]0.418536397035318[/C][C]0.020391[/C][C]20.5251[/C][C]0[/C][C]0[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=145713&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=145713&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.84660829599611.424473-7.614500
Marriages0.4185363970353180.02039120.525100







Multiple Linear Regression - Regression Statistics
Multiple R0.951542739573772
R-squared0.905433585235559
Adjusted R-squared0.903284348536367
F-TEST (value)421.281464985229
F-TEST (DF numerator)1
F-TEST (DF denominator)44
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.664157814332693
Sum Squared Residuals19.4086465029239

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Regression Statistics \tabularnewline
Multiple R & 0.951542739573772 \tabularnewline
R-squared & 0.905433585235559 \tabularnewline
Adjusted R-squared & 0.903284348536367 \tabularnewline
F-TEST (value) & 421.281464985229 \tabularnewline
F-TEST (DF numerator) & 1 \tabularnewline
F-TEST (DF denominator) & 44 \tabularnewline
p-value & 0 \tabularnewline
Multiple Linear Regression - Residual Statistics \tabularnewline
Residual Standard Deviation & 0.664157814332693 \tabularnewline
Sum Squared Residuals & 19.4086465029239 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=145713&T=3

[TABLE]
[ROW][C]Multiple Linear Regression - Regression Statistics[/C][/ROW]
[ROW][C]Multiple R[/C][C]0.951542739573772[/C][/ROW]
[ROW][C]R-squared[/C][C]0.905433585235559[/C][/ROW]
[ROW][C]Adjusted R-squared[/C][C]0.903284348536367[/C][/ROW]
[ROW][C]F-TEST (value)[/C][C]421.281464985229[/C][/ROW]
[ROW][C]F-TEST (DF numerator)[/C][C]1[/C][/ROW]
[ROW][C]F-TEST (DF denominator)[/C][C]44[/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]0.664157814332693[/C][/ROW]
[ROW][C]Sum Squared Residuals[/C][C]19.4086465029239[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=145713&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=145713&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.951542739573772
R-squared0.905433585235559
Adjusted R-squared0.903284348536367
F-TEST (value)421.281464985229
F-TEST (DF numerator)1
F-TEST (DF denominator)44
p-value0
Multiple Linear Regression - Residual Statistics
Residual Standard Deviation0.664157814332693
Sum Squared Residuals19.4086465029239







Multiple Linear Regression - Actuals, Interpolation, and Residuals
Time or IndexActualsInterpolationForecastResidualsPrediction Error
12221.84108431246220.158915687537823
221.820.3343532831351.46564671686495
321.520.37620692283861.12379307716142
421.320.75288968017040.547110319829634
521.121.3388406360198-0.238840636019812
621.221.08771879779860.11228120220138
72120.04137780521030.958622194789674
820.819.87396324639620.926036753603799
920.520.878450599281-0.378450599280961
1020.421.3388406360198-0.938840636019816
1120.119.79025596698910.309744033010864
1219.919.32986593025030.570134069749714
1319.620.250646003728-0.650646003727983
1419.419.7484023272856-0.348402327285604
1519.219.3717195699538-0.171719569953821
1619.118.19981765825490.900182341745069
1719.118.78576861410440.314231385895628
1818.918.911329533215-0.0113295332149686
1918.718.9531831729185-0.253183172918503
2018.718.7020613346973-0.00206133469730908
2118.718.911329533215-0.211329533214968
2218.418.5765004155867-0.176500415586716
2318.417.73942762151610.66057237848392
2418.317.99054945973730.309450540262728
2518.419.2461586508432-0.846158650843228
2618.319.8321096066927-1.53210960669267
2718.318.8276222538079-0.527622253807908
281818.4509394964761-0.45093949647612
2917.716.56752570981721.13247429018281
3017.718.4927931361796-0.79279313617965
3117.917.0279157465560.872084253443961
3217.617.36274486418430.237255135815705
3317.717.53015942299840.169840577001579
3417.418.1998176582549-0.799817658254934
3517.118.1998176582549-1.09981765825493
3616.817.0697693862596-0.269769386259573
3716.516.35825751129950.141742488700468
3816.215.56303835693240.636961643067571
3915.816.3582575112995-0.558257511299531
4015.515.8978674745607-0.397867474560682
4115.215.5211847172289-0.321184717228897
4214.915.1863555996006-0.286355599600644
4314.614.8515264819724-0.251526481972389
4414.414.6841119231583-0.284111923158262
4514.513.76333184968060.736668150319438
4614.214.6841119231583-0.484111923158263

\begin{tabular}{lllllllll}
\hline
Multiple Linear Regression - Actuals, Interpolation, and Residuals \tabularnewline
Time or Index & Actuals & InterpolationForecast & ResidualsPrediction Error \tabularnewline
1 & 22 & 21.8410843124622 & 0.158915687537823 \tabularnewline
2 & 21.8 & 20.334353283135 & 1.46564671686495 \tabularnewline
3 & 21.5 & 20.3762069228386 & 1.12379307716142 \tabularnewline
4 & 21.3 & 20.7528896801704 & 0.547110319829634 \tabularnewline
5 & 21.1 & 21.3388406360198 & -0.238840636019812 \tabularnewline
6 & 21.2 & 21.0877187977986 & 0.11228120220138 \tabularnewline
7 & 21 & 20.0413778052103 & 0.958622194789674 \tabularnewline
8 & 20.8 & 19.8739632463962 & 0.926036753603799 \tabularnewline
9 & 20.5 & 20.878450599281 & -0.378450599280961 \tabularnewline
10 & 20.4 & 21.3388406360198 & -0.938840636019816 \tabularnewline
11 & 20.1 & 19.7902559669891 & 0.309744033010864 \tabularnewline
12 & 19.9 & 19.3298659302503 & 0.570134069749714 \tabularnewline
13 & 19.6 & 20.250646003728 & -0.650646003727983 \tabularnewline
14 & 19.4 & 19.7484023272856 & -0.348402327285604 \tabularnewline
15 & 19.2 & 19.3717195699538 & -0.171719569953821 \tabularnewline
16 & 19.1 & 18.1998176582549 & 0.900182341745069 \tabularnewline
17 & 19.1 & 18.7857686141044 & 0.314231385895628 \tabularnewline
18 & 18.9 & 18.911329533215 & -0.0113295332149686 \tabularnewline
19 & 18.7 & 18.9531831729185 & -0.253183172918503 \tabularnewline
20 & 18.7 & 18.7020613346973 & -0.00206133469730908 \tabularnewline
21 & 18.7 & 18.911329533215 & -0.211329533214968 \tabularnewline
22 & 18.4 & 18.5765004155867 & -0.176500415586716 \tabularnewline
23 & 18.4 & 17.7394276215161 & 0.66057237848392 \tabularnewline
24 & 18.3 & 17.9905494597373 & 0.309450540262728 \tabularnewline
25 & 18.4 & 19.2461586508432 & -0.846158650843228 \tabularnewline
26 & 18.3 & 19.8321096066927 & -1.53210960669267 \tabularnewline
27 & 18.3 & 18.8276222538079 & -0.527622253807908 \tabularnewline
28 & 18 & 18.4509394964761 & -0.45093949647612 \tabularnewline
29 & 17.7 & 16.5675257098172 & 1.13247429018281 \tabularnewline
30 & 17.7 & 18.4927931361796 & -0.79279313617965 \tabularnewline
31 & 17.9 & 17.027915746556 & 0.872084253443961 \tabularnewline
32 & 17.6 & 17.3627448641843 & 0.237255135815705 \tabularnewline
33 & 17.7 & 17.5301594229984 & 0.169840577001579 \tabularnewline
34 & 17.4 & 18.1998176582549 & -0.799817658254934 \tabularnewline
35 & 17.1 & 18.1998176582549 & -1.09981765825493 \tabularnewline
36 & 16.8 & 17.0697693862596 & -0.269769386259573 \tabularnewline
37 & 16.5 & 16.3582575112995 & 0.141742488700468 \tabularnewline
38 & 16.2 & 15.5630383569324 & 0.636961643067571 \tabularnewline
39 & 15.8 & 16.3582575112995 & -0.558257511299531 \tabularnewline
40 & 15.5 & 15.8978674745607 & -0.397867474560682 \tabularnewline
41 & 15.2 & 15.5211847172289 & -0.321184717228897 \tabularnewline
42 & 14.9 & 15.1863555996006 & -0.286355599600644 \tabularnewline
43 & 14.6 & 14.8515264819724 & -0.251526481972389 \tabularnewline
44 & 14.4 & 14.6841119231583 & -0.284111923158262 \tabularnewline
45 & 14.5 & 13.7633318496806 & 0.736668150319438 \tabularnewline
46 & 14.2 & 14.6841119231583 & -0.484111923158263 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=145713&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]22[/C][C]21.8410843124622[/C][C]0.158915687537823[/C][/ROW]
[ROW][C]2[/C][C]21.8[/C][C]20.334353283135[/C][C]1.46564671686495[/C][/ROW]
[ROW][C]3[/C][C]21.5[/C][C]20.3762069228386[/C][C]1.12379307716142[/C][/ROW]
[ROW][C]4[/C][C]21.3[/C][C]20.7528896801704[/C][C]0.547110319829634[/C][/ROW]
[ROW][C]5[/C][C]21.1[/C][C]21.3388406360198[/C][C]-0.238840636019812[/C][/ROW]
[ROW][C]6[/C][C]21.2[/C][C]21.0877187977986[/C][C]0.11228120220138[/C][/ROW]
[ROW][C]7[/C][C]21[/C][C]20.0413778052103[/C][C]0.958622194789674[/C][/ROW]
[ROW][C]8[/C][C]20.8[/C][C]19.8739632463962[/C][C]0.926036753603799[/C][/ROW]
[ROW][C]9[/C][C]20.5[/C][C]20.878450599281[/C][C]-0.378450599280961[/C][/ROW]
[ROW][C]10[/C][C]20.4[/C][C]21.3388406360198[/C][C]-0.938840636019816[/C][/ROW]
[ROW][C]11[/C][C]20.1[/C][C]19.7902559669891[/C][C]0.309744033010864[/C][/ROW]
[ROW][C]12[/C][C]19.9[/C][C]19.3298659302503[/C][C]0.570134069749714[/C][/ROW]
[ROW][C]13[/C][C]19.6[/C][C]20.250646003728[/C][C]-0.650646003727983[/C][/ROW]
[ROW][C]14[/C][C]19.4[/C][C]19.7484023272856[/C][C]-0.348402327285604[/C][/ROW]
[ROW][C]15[/C][C]19.2[/C][C]19.3717195699538[/C][C]-0.171719569953821[/C][/ROW]
[ROW][C]16[/C][C]19.1[/C][C]18.1998176582549[/C][C]0.900182341745069[/C][/ROW]
[ROW][C]17[/C][C]19.1[/C][C]18.7857686141044[/C][C]0.314231385895628[/C][/ROW]
[ROW][C]18[/C][C]18.9[/C][C]18.911329533215[/C][C]-0.0113295332149686[/C][/ROW]
[ROW][C]19[/C][C]18.7[/C][C]18.9531831729185[/C][C]-0.253183172918503[/C][/ROW]
[ROW][C]20[/C][C]18.7[/C][C]18.7020613346973[/C][C]-0.00206133469730908[/C][/ROW]
[ROW][C]21[/C][C]18.7[/C][C]18.911329533215[/C][C]-0.211329533214968[/C][/ROW]
[ROW][C]22[/C][C]18.4[/C][C]18.5765004155867[/C][C]-0.176500415586716[/C][/ROW]
[ROW][C]23[/C][C]18.4[/C][C]17.7394276215161[/C][C]0.66057237848392[/C][/ROW]
[ROW][C]24[/C][C]18.3[/C][C]17.9905494597373[/C][C]0.309450540262728[/C][/ROW]
[ROW][C]25[/C][C]18.4[/C][C]19.2461586508432[/C][C]-0.846158650843228[/C][/ROW]
[ROW][C]26[/C][C]18.3[/C][C]19.8321096066927[/C][C]-1.53210960669267[/C][/ROW]
[ROW][C]27[/C][C]18.3[/C][C]18.8276222538079[/C][C]-0.527622253807908[/C][/ROW]
[ROW][C]28[/C][C]18[/C][C]18.4509394964761[/C][C]-0.45093949647612[/C][/ROW]
[ROW][C]29[/C][C]17.7[/C][C]16.5675257098172[/C][C]1.13247429018281[/C][/ROW]
[ROW][C]30[/C][C]17.7[/C][C]18.4927931361796[/C][C]-0.79279313617965[/C][/ROW]
[ROW][C]31[/C][C]17.9[/C][C]17.027915746556[/C][C]0.872084253443961[/C][/ROW]
[ROW][C]32[/C][C]17.6[/C][C]17.3627448641843[/C][C]0.237255135815705[/C][/ROW]
[ROW][C]33[/C][C]17.7[/C][C]17.5301594229984[/C][C]0.169840577001579[/C][/ROW]
[ROW][C]34[/C][C]17.4[/C][C]18.1998176582549[/C][C]-0.799817658254934[/C][/ROW]
[ROW][C]35[/C][C]17.1[/C][C]18.1998176582549[/C][C]-1.09981765825493[/C][/ROW]
[ROW][C]36[/C][C]16.8[/C][C]17.0697693862596[/C][C]-0.269769386259573[/C][/ROW]
[ROW][C]37[/C][C]16.5[/C][C]16.3582575112995[/C][C]0.141742488700468[/C][/ROW]
[ROW][C]38[/C][C]16.2[/C][C]15.5630383569324[/C][C]0.636961643067571[/C][/ROW]
[ROW][C]39[/C][C]15.8[/C][C]16.3582575112995[/C][C]-0.558257511299531[/C][/ROW]
[ROW][C]40[/C][C]15.5[/C][C]15.8978674745607[/C][C]-0.397867474560682[/C][/ROW]
[ROW][C]41[/C][C]15.2[/C][C]15.5211847172289[/C][C]-0.321184717228897[/C][/ROW]
[ROW][C]42[/C][C]14.9[/C][C]15.1863555996006[/C][C]-0.286355599600644[/C][/ROW]
[ROW][C]43[/C][C]14.6[/C][C]14.8515264819724[/C][C]-0.251526481972389[/C][/ROW]
[ROW][C]44[/C][C]14.4[/C][C]14.6841119231583[/C][C]-0.284111923158262[/C][/ROW]
[ROW][C]45[/C][C]14.5[/C][C]13.7633318496806[/C][C]0.736668150319438[/C][/ROW]
[ROW][C]46[/C][C]14.2[/C][C]14.6841119231583[/C][C]-0.484111923158263[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=145713&T=4

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=145713&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
12221.84108431246220.158915687537823
221.820.3343532831351.46564671686495
321.520.37620692283861.12379307716142
421.320.75288968017040.547110319829634
521.121.3388406360198-0.238840636019812
621.221.08771879779860.11228120220138
72120.04137780521030.958622194789674
820.819.87396324639620.926036753603799
920.520.878450599281-0.378450599280961
1020.421.3388406360198-0.938840636019816
1120.119.79025596698910.309744033010864
1219.919.32986593025030.570134069749714
1319.620.250646003728-0.650646003727983
1419.419.7484023272856-0.348402327285604
1519.219.3717195699538-0.171719569953821
1619.118.19981765825490.900182341745069
1719.118.78576861410440.314231385895628
1818.918.911329533215-0.0113295332149686
1918.718.9531831729185-0.253183172918503
2018.718.7020613346973-0.00206133469730908
2118.718.911329533215-0.211329533214968
2218.418.5765004155867-0.176500415586716
2318.417.73942762151610.66057237848392
2418.317.99054945973730.309450540262728
2518.419.2461586508432-0.846158650843228
2618.319.8321096066927-1.53210960669267
2718.318.8276222538079-0.527622253807908
281818.4509394964761-0.45093949647612
2917.716.56752570981721.13247429018281
3017.718.4927931361796-0.79279313617965
3117.917.0279157465560.872084253443961
3217.617.36274486418430.237255135815705
3317.717.53015942299840.169840577001579
3417.418.1998176582549-0.799817658254934
3517.118.1998176582549-1.09981765825493
3616.817.0697693862596-0.269769386259573
3716.516.35825751129950.141742488700468
3816.215.56303835693240.636961643067571
3915.816.3582575112995-0.558257511299531
4015.515.8978674745607-0.397867474560682
4115.215.5211847172289-0.321184717228897
4214.915.1863555996006-0.286355599600644
4314.614.8515264819724-0.251526481972389
4414.414.6841119231583-0.284111923158262
4514.513.76333184968060.736668150319438
4614.214.6841119231583-0.484111923158263







Goldfeld-Quandt test for Heteroskedasticity
p-valuesAlternative Hypothesis
breakpoint indexgreater2-sidedless
50.280781206923720.561562413847440.71921879307628
60.1905014379618490.3810028759236980.809498562038151
70.1564571220873370.3129142441746740.843542877912663
80.144308335542240.288616671084480.85569166445776
90.287378052363980.5747561047279610.71262194763602
100.444223011017260.888446022034520.55577698898274
110.5269103879790160.9461792240419670.473089612020984
120.5602163696903870.8795672606192250.439783630309613
130.7153238391158280.5693523217683430.284676160884172
140.7567234813499170.4865530373001660.243276518650083
150.7477540572184150.504491885563170.252245942781585
160.7635864798818270.4728270402363470.236413520118173
170.7367961880536390.5264076238927230.263203811946361
180.7078697448549020.5842605102901960.292130255145098
190.6863257034744480.6273485930511030.313674296525552
200.6396861957332070.7206276085335870.360313804266793
210.5945334606737790.8109330786524410.405466539326221
220.5403196994139050.919360601172190.459680300586095
230.5786233533368090.8427532933263820.421376646663191
240.56306468881910.87387062236180.4369353111809
250.5965052647995320.8069894704009370.403494735200468
260.7993795541809330.4012408916381350.200620445819067
270.7565597023592970.4868805952814060.243440297640703
280.699727418857880.600545162284240.30027258114212
290.8618312220460990.2763375559078010.138168777953901
300.8516361658803080.2967276682393850.148363834119692
310.9405778211716090.1188443576567810.0594221788283905
320.94549797731040.10900404537920.0545020226896
330.962101284162350.07579743167529930.0378987158376496
340.944792559883290.1104148802334210.0552074401167103
350.943237989785260.1135240204294810.0567620102147403
360.9035826707703720.1928346584592560.0964173292296278
370.8909325302117310.2181349395765370.109067469788269
380.9839093185603740.03218136287925230.0160906814396261
390.9668719939738160.06625601205236880.0331280060261844
400.9443568578658670.1112862842682660.0556431421341329
410.9238013242445320.1523973515109360.0761986757554678

\begin{tabular}{lllllllll}
\hline
Goldfeld-Quandt test for Heteroskedasticity \tabularnewline
p-values & Alternative Hypothesis \tabularnewline
breakpoint index & greater & 2-sided & less \tabularnewline
5 & 0.28078120692372 & 0.56156241384744 & 0.71921879307628 \tabularnewline
6 & 0.190501437961849 & 0.381002875923698 & 0.809498562038151 \tabularnewline
7 & 0.156457122087337 & 0.312914244174674 & 0.843542877912663 \tabularnewline
8 & 0.14430833554224 & 0.28861667108448 & 0.85569166445776 \tabularnewline
9 & 0.28737805236398 & 0.574756104727961 & 0.71262194763602 \tabularnewline
10 & 0.44422301101726 & 0.88844602203452 & 0.55577698898274 \tabularnewline
11 & 0.526910387979016 & 0.946179224041967 & 0.473089612020984 \tabularnewline
12 & 0.560216369690387 & 0.879567260619225 & 0.439783630309613 \tabularnewline
13 & 0.715323839115828 & 0.569352321768343 & 0.284676160884172 \tabularnewline
14 & 0.756723481349917 & 0.486553037300166 & 0.243276518650083 \tabularnewline
15 & 0.747754057218415 & 0.50449188556317 & 0.252245942781585 \tabularnewline
16 & 0.763586479881827 & 0.472827040236347 & 0.236413520118173 \tabularnewline
17 & 0.736796188053639 & 0.526407623892723 & 0.263203811946361 \tabularnewline
18 & 0.707869744854902 & 0.584260510290196 & 0.292130255145098 \tabularnewline
19 & 0.686325703474448 & 0.627348593051103 & 0.313674296525552 \tabularnewline
20 & 0.639686195733207 & 0.720627608533587 & 0.360313804266793 \tabularnewline
21 & 0.594533460673779 & 0.810933078652441 & 0.405466539326221 \tabularnewline
22 & 0.540319699413905 & 0.91936060117219 & 0.459680300586095 \tabularnewline
23 & 0.578623353336809 & 0.842753293326382 & 0.421376646663191 \tabularnewline
24 & 0.5630646888191 & 0.8738706223618 & 0.4369353111809 \tabularnewline
25 & 0.596505264799532 & 0.806989470400937 & 0.403494735200468 \tabularnewline
26 & 0.799379554180933 & 0.401240891638135 & 0.200620445819067 \tabularnewline
27 & 0.756559702359297 & 0.486880595281406 & 0.243440297640703 \tabularnewline
28 & 0.69972741885788 & 0.60054516228424 & 0.30027258114212 \tabularnewline
29 & 0.861831222046099 & 0.276337555907801 & 0.138168777953901 \tabularnewline
30 & 0.851636165880308 & 0.296727668239385 & 0.148363834119692 \tabularnewline
31 & 0.940577821171609 & 0.118844357656781 & 0.0594221788283905 \tabularnewline
32 & 0.9454979773104 & 0.1090040453792 & 0.0545020226896 \tabularnewline
33 & 0.96210128416235 & 0.0757974316752993 & 0.0378987158376496 \tabularnewline
34 & 0.94479255988329 & 0.110414880233421 & 0.0552074401167103 \tabularnewline
35 & 0.94323798978526 & 0.113524020429481 & 0.0567620102147403 \tabularnewline
36 & 0.903582670770372 & 0.192834658459256 & 0.0964173292296278 \tabularnewline
37 & 0.890932530211731 & 0.218134939576537 & 0.109067469788269 \tabularnewline
38 & 0.983909318560374 & 0.0321813628792523 & 0.0160906814396261 \tabularnewline
39 & 0.966871993973816 & 0.0662560120523688 & 0.0331280060261844 \tabularnewline
40 & 0.944356857865867 & 0.111286284268266 & 0.0556431421341329 \tabularnewline
41 & 0.923801324244532 & 0.152397351510936 & 0.0761986757554678 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=145713&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]5[/C][C]0.28078120692372[/C][C]0.56156241384744[/C][C]0.71921879307628[/C][/ROW]
[ROW][C]6[/C][C]0.190501437961849[/C][C]0.381002875923698[/C][C]0.809498562038151[/C][/ROW]
[ROW][C]7[/C][C]0.156457122087337[/C][C]0.312914244174674[/C][C]0.843542877912663[/C][/ROW]
[ROW][C]8[/C][C]0.14430833554224[/C][C]0.28861667108448[/C][C]0.85569166445776[/C][/ROW]
[ROW][C]9[/C][C]0.28737805236398[/C][C]0.574756104727961[/C][C]0.71262194763602[/C][/ROW]
[ROW][C]10[/C][C]0.44422301101726[/C][C]0.88844602203452[/C][C]0.55577698898274[/C][/ROW]
[ROW][C]11[/C][C]0.526910387979016[/C][C]0.946179224041967[/C][C]0.473089612020984[/C][/ROW]
[ROW][C]12[/C][C]0.560216369690387[/C][C]0.879567260619225[/C][C]0.439783630309613[/C][/ROW]
[ROW][C]13[/C][C]0.715323839115828[/C][C]0.569352321768343[/C][C]0.284676160884172[/C][/ROW]
[ROW][C]14[/C][C]0.756723481349917[/C][C]0.486553037300166[/C][C]0.243276518650083[/C][/ROW]
[ROW][C]15[/C][C]0.747754057218415[/C][C]0.50449188556317[/C][C]0.252245942781585[/C][/ROW]
[ROW][C]16[/C][C]0.763586479881827[/C][C]0.472827040236347[/C][C]0.236413520118173[/C][/ROW]
[ROW][C]17[/C][C]0.736796188053639[/C][C]0.526407623892723[/C][C]0.263203811946361[/C][/ROW]
[ROW][C]18[/C][C]0.707869744854902[/C][C]0.584260510290196[/C][C]0.292130255145098[/C][/ROW]
[ROW][C]19[/C][C]0.686325703474448[/C][C]0.627348593051103[/C][C]0.313674296525552[/C][/ROW]
[ROW][C]20[/C][C]0.639686195733207[/C][C]0.720627608533587[/C][C]0.360313804266793[/C][/ROW]
[ROW][C]21[/C][C]0.594533460673779[/C][C]0.810933078652441[/C][C]0.405466539326221[/C][/ROW]
[ROW][C]22[/C][C]0.540319699413905[/C][C]0.91936060117219[/C][C]0.459680300586095[/C][/ROW]
[ROW][C]23[/C][C]0.578623353336809[/C][C]0.842753293326382[/C][C]0.421376646663191[/C][/ROW]
[ROW][C]24[/C][C]0.5630646888191[/C][C]0.8738706223618[/C][C]0.4369353111809[/C][/ROW]
[ROW][C]25[/C][C]0.596505264799532[/C][C]0.806989470400937[/C][C]0.403494735200468[/C][/ROW]
[ROW][C]26[/C][C]0.799379554180933[/C][C]0.401240891638135[/C][C]0.200620445819067[/C][/ROW]
[ROW][C]27[/C][C]0.756559702359297[/C][C]0.486880595281406[/C][C]0.243440297640703[/C][/ROW]
[ROW][C]28[/C][C]0.69972741885788[/C][C]0.60054516228424[/C][C]0.30027258114212[/C][/ROW]
[ROW][C]29[/C][C]0.861831222046099[/C][C]0.276337555907801[/C][C]0.138168777953901[/C][/ROW]
[ROW][C]30[/C][C]0.851636165880308[/C][C]0.296727668239385[/C][C]0.148363834119692[/C][/ROW]
[ROW][C]31[/C][C]0.940577821171609[/C][C]0.118844357656781[/C][C]0.0594221788283905[/C][/ROW]
[ROW][C]32[/C][C]0.9454979773104[/C][C]0.1090040453792[/C][C]0.0545020226896[/C][/ROW]
[ROW][C]33[/C][C]0.96210128416235[/C][C]0.0757974316752993[/C][C]0.0378987158376496[/C][/ROW]
[ROW][C]34[/C][C]0.94479255988329[/C][C]0.110414880233421[/C][C]0.0552074401167103[/C][/ROW]
[ROW][C]35[/C][C]0.94323798978526[/C][C]0.113524020429481[/C][C]0.0567620102147403[/C][/ROW]
[ROW][C]36[/C][C]0.903582670770372[/C][C]0.192834658459256[/C][C]0.0964173292296278[/C][/ROW]
[ROW][C]37[/C][C]0.890932530211731[/C][C]0.218134939576537[/C][C]0.109067469788269[/C][/ROW]
[ROW][C]38[/C][C]0.983909318560374[/C][C]0.0321813628792523[/C][C]0.0160906814396261[/C][/ROW]
[ROW][C]39[/C][C]0.966871993973816[/C][C]0.0662560120523688[/C][C]0.0331280060261844[/C][/ROW]
[ROW][C]40[/C][C]0.944356857865867[/C][C]0.111286284268266[/C][C]0.0556431421341329[/C][/ROW]
[ROW][C]41[/C][C]0.923801324244532[/C][C]0.152397351510936[/C][C]0.0761986757554678[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=145713&T=5

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=145713&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
50.280781206923720.561562413847440.71921879307628
60.1905014379618490.3810028759236980.809498562038151
70.1564571220873370.3129142441746740.843542877912663
80.144308335542240.288616671084480.85569166445776
90.287378052363980.5747561047279610.71262194763602
100.444223011017260.888446022034520.55577698898274
110.5269103879790160.9461792240419670.473089612020984
120.5602163696903870.8795672606192250.439783630309613
130.7153238391158280.5693523217683430.284676160884172
140.7567234813499170.4865530373001660.243276518650083
150.7477540572184150.504491885563170.252245942781585
160.7635864798818270.4728270402363470.236413520118173
170.7367961880536390.5264076238927230.263203811946361
180.7078697448549020.5842605102901960.292130255145098
190.6863257034744480.6273485930511030.313674296525552
200.6396861957332070.7206276085335870.360313804266793
210.5945334606737790.8109330786524410.405466539326221
220.5403196994139050.919360601172190.459680300586095
230.5786233533368090.8427532933263820.421376646663191
240.56306468881910.87387062236180.4369353111809
250.5965052647995320.8069894704009370.403494735200468
260.7993795541809330.4012408916381350.200620445819067
270.7565597023592970.4868805952814060.243440297640703
280.699727418857880.600545162284240.30027258114212
290.8618312220460990.2763375559078010.138168777953901
300.8516361658803080.2967276682393850.148363834119692
310.9405778211716090.1188443576567810.0594221788283905
320.94549797731040.10900404537920.0545020226896
330.962101284162350.07579743167529930.0378987158376496
340.944792559883290.1104148802334210.0552074401167103
350.943237989785260.1135240204294810.0567620102147403
360.9035826707703720.1928346584592560.0964173292296278
370.8909325302117310.2181349395765370.109067469788269
380.9839093185603740.03218136287925230.0160906814396261
390.9668719939738160.06625601205236880.0331280060261844
400.9443568578658670.1112862842682660.0556431421341329
410.9238013242445320.1523973515109360.0761986757554678







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

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

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

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

As an alternative you can also use a QR Code:  

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

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



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