[R] how do I transform this to a for loop

lord12 gaut222 at yahoo.com
Mon Sep 6 02:57:21 CEST 2010


arima1 = arima(data.ts[1:200], order = c(1,1,1))
arima2 = arima(data.ts[5:205], order = c(1,1,1))
arima3 = arima(data.ts[10:210], order = c(1,1,1))
arima4 = arima(data.ts[15:215], order = c(1,1,1))
arima5 = arima(data.ts[20:220], order = c(1,1,1))
arima6 = arima(data.ts[25:225], order = c(1,1,1))
arima7 = arima(data.ts[30:230], order = c(1,1,1))
arima8 = arima(data.ts[35:235], order = c(1,1,1))
arima9 = arima(data.ts[40:240], order = c(1,1,1))

-- 
View this message in context: http://r.789695.n4.nabble.com/how-do-I-transform-this-to-a-for-loop-tp2527816p2527816.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list