unit root command does not show summary in for loop.

I build this code using library urca which is a library with unit root test

library(tseries)
library(urca)
y1<-cumsum(rnorm(500))
opt<-c("trend","drift","none")
for (i in opt) {
  print(i)
  y1.adf<-ur.df(y1,type=i,selectlags = "AIC")
  summary(y1.adf)
}

It is supposed to after summary command it has to show a summary table but it does not show nothing and R does not show any error message, what am I doing wrong?

pd: opt is a list with the options trend, drift and none which are parameters in ur.df( ... type="trend"... ) and so on.

try this:
print(summary(y1.adf))

thanks my friend :smile:

d.

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.