Re: [R] problem in adf command

From: Pfaff, Bernhard Dr. <>
Date: Fri 19 Jan 2007 - 16:20:26 GMT

ur.df(y, type = c("none", "drift", "trend"), lags = 1)

	 in urca.
	this gives me all out put .but i need only p.value fromm the
	when i run the following command 
	ur.df(y, type = c("none", "drift", "trend"), lags =
	this in response null.kindly help me in this regard. thanks
	With  Best Regards

Hello Zahid,          

        you do not need to send your message three times to the list. As the package's documentation outlines: 'urca' utilises formal classes (i.e. S4). Hence, to obtain slots, you should use '@' and not '$'. Anyway, who is telling you, that p.value is a slot of a returned ur.df object? At least not ?ur.df. Now, if you take a look at ?UnitrootTests in package 'fSeries' you will read that these test implementation do contain p.values, hence:          

	## to generate some data use the example
	test.adf <- adfTest(y, type = 'c')


Confidentiality Note: The information contained in this mess...{{dropped}} mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Sat Jan 20 03:31:04 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 19 Jan 2007 - 17:30:26 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.