Skip to content
Prev 325871 / 398503 Next

Scaling Statistical

Hello,

 From the help page for ?adf.test: "The p-values are interpolated from 
Table 4.2, p. 103 of Banerjee et al. (1993)."

I believe it's a problem with your data. Putting a print statement in 
the code for adf.test() gave me the following:


Call:
lm(formula = yt ~ xt1 + 1 + tt + yt1)

Residuals:
ALL 3 residuals are 0: no residual degrees of freedom!

Coefficients: (1 not defined because of singularities)
             Estimate Std. Error t value Pr(>|t|)
(Intercept)  -24.319         NA      NA       NA
xt1           -3.115         NA      NA       NA
tt            18.087         NA      NA       NA
yt1               NA         NA      NA       NA

Residual standard error: NaN on 0 degrees of freedom
Multiple R-squared:      1,     Adjusted R-squared:    NaN
F-statistic:   NaN on 2 and 0 DF,  p-value: NA



And the test statistic becomes NaN (Not a Number). It's computed as 
coefficients[2, 1]/coefficients[2, 2] or -3.115/NA.
So when it tries to interpolate the p-value, the variable 'interpol' is 
equal to NaN and the if test fails.

With a standard error like NA, maybe you don't have enough data points 
to run the tests. (Only 3 residuals, all zero, like seen above.)


Rui Barradas

Em 24-06-2013 20:12, Olga Musayev escreveu: