[R] How to iterate through different arguments?

lord12 trexinsd at yahoo.com
Wed Oct 6 16:16:32 CEST 2010


Thanks a lot! I have one other question,however. If I want to have two
garchFits,  garchFit(~aparch(1,1), data = sunspot.year) and
garchFit(~arma(2,1)+apaarch(1,1), data = sunspot.year), how do I automate
the creation of these models? 

for(k in 1:2)
{
  garchFit~...,data = sunspot.year), 
}

I am not sure what to put in the ...
-- 
View this message in context: http://r.789695.n4.nabble.com/How-to-iterate-through-different-arguments-tp2953511p2965042.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list