r - Package TsDyn. SelectSETAR function -
i want apply selectset function list of variables. if this:
for(i in 1:ncol(emi)) { print(i) search <- selectsetar(emi[,i], m=3, thdelay=2) set <- setar(emi[,i], m=3, thdelay=2, th=search$th) print(search) summary(set) }
the summary instruction overlooked , in fact more important output me.
how can this?
thanks
you use print()
did i
, search
. example:
> (i in 1:2) { + print(i) + summary(rnorm(10*i)) + } [1] 1 [1] 2
but
> (i in 1:2) { + print(i) + print(summary(rnorm(10*i))) + } [1] 1 min. 1st qu. median mean 3rd qu. max. -0.65260 -0.32320 -0.02333 0.21530 0.82060 1.59900 [1] 2 min. 1st qu. median mean 3rd qu. max. -1.38000 -0.52860 0.04965 0.07786 0.59130 1.76200
Comments
Post a Comment