Generation

generate functionSat, 08 Jul 2023

Tengo un modelo autorregresivo desfasado con mi serie de tiempo original, ¿qué recomiendas realizar?

library(forecast) x <- ts(c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12), start = c(1998, 1), freq = 12) x model <- Arima(x, order = c(1,1,0), seasonal = list(order = c(0,1,0), period = 12)) model forecast(model, h = 12)

Questions about programming?Chat with your personal AI assistant