Re: [R] error while extracting the p-value from adf.test

2013-03-22 Thread Yuan, Rebecca
9NB www.ageuk.org.ukĀ | ageukblog.org.uk | @ageukcampaigns -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Yuan, Rebecca Sent: 22 March 2013 14:03 To: R help Subject: [R] error while extracting the p-value from adf.test Hello all,

Re: [R] error while extracting the p-value from adf.test

2013-03-22 Thread Jose Iparraguirre
.uk | @ageukcampaigns -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Yuan, Rebecca Sent: 22 March 2013 14:03 To: R help Subject: [R] error while extracting the p-value from adf.test Hello all, I tried to extract the p-value f

Re: [R] error while extracting the p-value from adf.test

2013-03-22 Thread Yuan, Rebecca
Hello Sarah, Thanks! I will look into help next time before sending out the question. Thanks, Rebecca -Original Message- From: Sarah Goslee [mailto:sarah.gos...@gmail.com] Sent: Friday, March 22, 2013 10:22 AM To: Yuan, Rebecca Cc: R help Subject: Re: [R] error while extracting the p

Re: [R] error while extracting the p-value from adf.test

2013-03-22 Thread R. Michael Weylandt
On Fri, Mar 22, 2013 at 2:03 PM, Yuan, Rebecca wrote: > Hello all, > > I tried to extract the p-value from adf.test in tseries; however, I got the > error message such as > >> ht=adf.test(list.var$aa) >> ht$p-value > Error in ht$p - value : non-numeric argument to binary operator >> ht > >

Re: [R] error while extracting the p-value from adf.test

2013-03-22 Thread Sarah Goslee
Hi, When I look at ?adf.test I see: A list with class "htest" containing the following components: statistic the value of the test statistic. parameter the lag order. p.valuethe p-value of the test. method a character string indicating what type of test was performed. data.name a charac

[R] error while extracting the p-value from adf.test

2013-03-22 Thread Yuan, Rebecca
Hello all, I tried to extract the p-value from adf.test in tseries; however, I got the error message such as > ht=adf.test(list.var$aa) > ht$p-value Error in ht$p - value : non-numeric argument to binary operator > ht Augmented Dickey-Fuller Test data: list.var$aa Dickey-Fuller = -2.3