Re: [R] Multivariate Normal and loops

2012-06-15 Thread R. Michael Weylandt
I don't think you need loops at all actually :-) [The main thing to working with R vs. C is "vectorization" -- embrace it now and life will be much better] You could do something like this: library(MASS) # Provides a multivariate normal distribution mvrnorm(100, c(1,5), matrix(c(2,1,1,2), ncol =

[R] Multivariate Normal and loops

2012-06-15 Thread Cassie
Hi, i'm not english and i'm not very familiar to R, and i'm asking if you can help me. I'm wondering how to create a multivariate normal an then repeat this for a sample of T=1000, and the save this result. Thank you very much for your helping -- View this message in context: http://r.789695.n4.n