[R] adf.test Vs ADF.test...

Pfaff, Bernhard Dr. Bernhard_Pfaff at fra.invesco.com
Thu Jun 25 11:06:12 CEST 2009


Dear Harry,

to complete the picture, for the packages installed on my machine help.search() yielded:

> help.search("Dickey")
Help files with alias or concept or title matching 'Dickey' using fuzzy
matching:


CADFtest::CADFtest      Hansen's Covariate-Augmented Dickey Fuller
                        (CADF) test
fUnitRoots::DickeyFullerPValues
                        Dickey-Fuller p Values
tseries::adf.test       Augmented Dickey-Fuller Test
urca::Raotbl1           Data set used by Dickey, Jansen & Thornton
                        (1994)
urca::Raotbl2           Data set used by Dickey, Jansen & Thornton
                        (1994)
urca::ur.df             Augmented-Dickey-Fuller Unit Root Test
uroot::ADF.rectest      Augmented Dickey-Fuller Recursive Test
uroot::ADF.test         Augmented Dickey-Fuller Test


Type '?PKG::FOO' to inspect entry 'PKG::FOO TITLE'.
> 


At least ur.df() in urca and IIRC CADFtest() in CADFtest provide arguments for lag selection.

HTH,
Bernhard
 

>-----Ursprüngliche Nachricht-----
>Von: r-help-bounces at r-project.org 
>[mailto:r-help-bounces at r-project.org] Im Auftrag von DongHongwei
>Gesendet: Donnerstag, 25. Juni 2009 09:27
>An: r-help at r-project.org
>Betreff: Re: [R] adf.test Vs ADF.test...
>
>
>
>Hi, R users,
>I'm using R to test the unit root for my time series data. I 
>just compared the "ADF.test" in "uroot" package and the 
>"adf.test" in "tseries" package. It seems it is difficult to 
>define the time trend and intercept in "adf.test". But it is 
>easy to do these in "ADF.test". "ADF.test" also help you find 
>the number of lags that need to be included in the model to 
>remove the serial correlation. I do not not see "adf.test" be 
>able to do this too. You need to define the number of lags for 
>adf.test. 
>  I'm a new R user and I could be wrong. I'll appreciate it 
>very much if someone familiar with time series in R can give 
>me some comments and suggestions. Thanks in advance.
>
>  Harry
>
>
>> From: donghw79 at hotmail.com
>> To: patrick.richardson at vai.org; r-help at r-project.org
>> Date: Wed, 24 Jun 2009 19:22:46 +0000
>> Subject: Re: [R] Why can't I use ADF.test?
>> 
>> 
>> Thanks! I tried these, but I got the following 
>messages:Warning message:In getDependencies(pkgs, 
>dependencies, available, lib) :  package ‘uroot’ 
>is not available
>> Error in library(uroot) : there is no package called 'uroot'
>> 
>> 
>> I download a package called "uroot" and put it into: 
>C:\Program Files\R\R-2.9.0\library. But still got the same 
>error. Any further suggestions?
>>   Hongwei 
>> 
>> 
>> > From: Patrick.Richardson at vai.org
>> > To: donghw79 at hotmail.com; r-help at r-project.org
>> > Date: Wed, 24 Jun 2009 15:12:22 -0400
>> > Subject: RE: [R] Why can't I use ADF.test?
>> > 
>> > Since you provided no code, the following is just a guess,  Try:
>> > 
>> > install.packages("uroot")
>> > library(uroot)
>> > 
>> > Then try your analysis again.
>> > 
>> > 
>> > -----Original Message-----
>> > From: r-help-bounces at r-project.org 
>[mailto:r-help-bounces at r-project.org] On Behalf Of DongHongwei
>> > Sent: Wednesday, June 24, 2009 3:06 PM
>> > To: r-help at r-project.org
>> > Subject: [R] Why can't I use ADF.test?
>> > 
>> > 
>> > Greetings!
>> > I'm trying to use R to test the unit root for a univariate 
>data. By this link: 
>> > http://rss.acs.unt.edu/Rdoc/library/uroot/html/ADF.test.html
>> >  it tells me that I can use the function ADF.test(). 
>However, when I tried this in R, I got this message:
>> > "Error: could not find function "ADF.test"".
>> > I'm confused by this. Anyone could give me some hints? Thanks.
>> >     Hongwei
>> > 
>> > 
>> > 
>> > _________________________________________________________________
>> > 
>´ò¹¤£¬ÕõÇ®£¬Âò·
>¿×Ó£¬¿ìÀ´MClubÒ»Æ
>𡱽ðÎݲؽ¿¡±£¡
>> > 
>> > 	[[alternative HTML version deleted]]
>> > 
>> > This email message, including any attachments, is for the 
>sole use of the intended recipient(s) and may contain 
>confidential information.  Any unauthorized review, use, 
>disclosure or distribution is prohibited.  If you are not the 
>intended recipient(s) please contact the sender by reply email 
>and destroy all copies of the original message.  Thank you.
>> 
>> _________________________________________________________________
>> Messenger安全保æŠ
>¤ä¸­å¿ƒï¼Œå…è´¹ä¿®å¤ç³»ç»Ÿæ¼
洞,保护Messenger安全!
>> http://im.live.cn/safe/
>> 	[[alternative HTML version deleted]]
>> 
>
>_________________________________________________________________
>打工,挣钱,买房子,快来MClub一起”金屋藏娇”!
>http://club.msn.cn/?from=10
>	[[alternative HTML version deleted]]
>
>
*****************************************************************
Confidentiality Note: The information contained in this message,
and any attachments, may contain confidential and/or privileged
material. It is intended solely for the person(s) or entity to
which it is addressed. Any review, retransmission, dissemination,
or taking of any action in reliance upon this information by
persons or entities other than the intended recipient(s) is
prohibited. If you received this in error, please contact the
sender and delete the material from any computer.
*****************************************************************


More information about the R-help mailing list