[R] Loop and cbind

livia yn19832 at msn.com
Wed Jul 4 14:57:38 CEST 2007


Hi, I would like to apply the following function for i between 1 and 12, and
then construct a list of the return series.

for (i in 1:12){
ewma[i] <- emaTA(calm[[i]]^2,0.03)
standard[i]<- calm[[i]]/sqrt(ewma[i])
standard <- cbind(standard[i])
}

But it does not work. Could anyone give me some advice how can I achieve
this? Many thanks
-- 
View this message in context: http://www.nabble.com/Loop-and-cbind-tf4024291.html#a11430500
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list