[R] Obtaining values from adfstat objects

From: Matt33 <matthew_nowak_at_otpp.com>
Date: Tue, 26 Feb 2008 13:02:49 -0800 (PST)


I'm using the ADF.test function in the uroot package to obtain an adfstat-class object. I'm wondering how I can extract the values (test statistic, p value, etc.) from this class, since it doesn't seem to have usual values. I get the following summary, but I'm not sure how to do anything with these values -- how can I put the number into another variable?

  Null hypothesis: Unit root.
  Alternative hypothesis: Stationarity.

  ADF statistic:
        Estimate Std. Error t value Pr(>|t|)
adf.reg   -0.997      0.123  -8.074     0.01

  Lag orders:
  Number of available observations: 67

Warning message:
In interpolpval(code = code, stat = adfreg[, 3], N = N) :   p-value is smaller than printed p-value


View this message in context: http://www.nabble.com/Obtaining-values-from-adfstat-objects-tp15699940p15699940.html
Sent from the R help mailing list archive at Nabble.com.

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 26 Feb 2008 - 21:05:17 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 26 Feb 2008 - 21:30:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive