Hi,

I'm trying to generate 100 ar(1) models with correlation 1 and standard normal white noise, each with different seeds/initial values.

I can't seem to find a way to repeat the arima.sim command 100 times (with n also 100) to create a 100*100 matrix of data (each of the 100 data sets having a different y0).

What would be the best way to do this? I'm a complete beginner so would be very appreciative if someone could share the full code.

Many thanks!