| To: | <s-news@lists.biostat.wustl.edu> |
|---|---|
| Subject: | Johansen Cointegration in S-plus |
| From: | "Ellerton, Tim" <Tim.Ellerton@morganstanley.com> |
| Date: | Wed, 24 Jun 2009 17:07:27 +0100 |
| Accept-language: | en-US |
| Acceptlanguage: | en-US |
| Importance: | normal |
| Thread-index: | Acn05d2aT7zX8sf+SBGbQ8KvH+RezQ== |
| Thread-topic: | Johansen Cointegration in S-plus |
|
I want to use the
s-plus coint function and get p.values for the trace/max eig. tests.
Is this possible?
Many
thanks,
Tim
coint.johansen <-
function(x, criterion="BIC", trend="rc", level=0.05, na.rm=T){
n <- nrow(x) # Order Selection ord.choice <- VAR(y, max.ar=6, criterion=criterion) #cointegration test coint.tst <- coint(y, trend=trend, lags=max(1,ord.choice$ar.order-1) summary(coint.tst) #trace test
and max eig. tests - Can I get the p-values here???
#vecm
vecm.fit <- VECM(cointst.rc, coint.rank=1) summary(vecm.fit) } NOTICE: If received in error, please destroy, and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. We may monitor and store emails to the extent permitted by applicable law. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | formatting output, Data Analytics Corp. |
|---|---|
| Next by Date: | Re: Johansen Cointegration in S-plus, Guy Yollin |
| Previous by Thread: | formatting output, Data Analytics Corp. |
| Next by Thread: | Re: Johansen Cointegration in S-plus, Guy Yollin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |