I Want to set and Automate Seed as a Vector Instead of an Integer in R
问题 Using an arima.sim() function to simulate time series data that follows a particular ARIMA model requires a lot of trials of this nature: library(forecast) set.seed(1) ar1 <- arima.sim(n = 10, model=list(ar=0.2, order = c(1, 0, 0)), sd = 1) ar2 <- auto.arima(ar1, ic ="aicc") ar2 One needs to be changing the seed integer until the desired result is archived. I now think of instead of changing the seed integer manually and checking with auto.arima() function I should automate the seeds with a