Parallel Processing for Setting Seed in R
问题 I Have an R code that helps me to know at what seed when I use arima.sim() function to simulate ARIMA(1, 0, 0) it will actually simulate ARIMA of order 1, 0, 0 when auto.arima() function is employed for a check. MWE library(forecast) SEED_vector <- 1:10 arima_order_results <- data.frame() flag <- TRUE i <- 1 seed_out <- c() while(flag){ set.seed(SEED_vector[i]) ar1 <- arima.sim(n = 20, model=list(ar=0.8, order = c(1, 0, 0)), sd = 1) ar2 <- auto.arima(ar1, ic = "aicc") if(all(arimaorder(ar2)=