Skip to content
Prev 320112 / 398502 Next

error while extracting the p-value from adf.test

Hello Sarah,

Thanks! I will look into help next time before sending out the question.

Thanks,

Rebecca


-----Original Message-----
From: Sarah Goslee [mailto:sarah.goslee at gmail.com] 
Sent: Friday, March 22, 2013 10:22 AM
To: Yuan, Rebecca
Cc: R help
Subject: Re: [R] error while extracting the p-value from adf.test

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.value    the p-value of the test.
method   a character string indicating what type of test was performed.
data.name   a character string giving the name of the data.
alternative   a character string describing the alternative hypothesis

So why don't you try
ht$p.value
instead, just as the help file tells you?

Sarah
On Fri, Mar 22, 2013 at 10:03 AM, Yuan, Rebecca <rebecca.yuan at bankofamerica.com> wrote:
--
Sarah Goslee
http://www.functionaldiversity.org

----------------------------------------------------------------------
This message, and any attachments, is for the intended r...{{dropped:2}}