Hi everyone, I'm new to this package and am having some difficulties renaming. I want to take numerous time series and run the auto.arima function with a loop. Thankfully my loop works, but because of the loop, the series names in the output is off. Here's my code:
for (i in n){
arima.fit = auto.arima(na.omit(data[, (i+1)]), ic = "bic")
summary(arima.fit)
}
and here's a sample of part of the output:
Series: na.omit(data[, (i + 1)])
ARIMA(1,0,0) with non-zero mean
Coefficients:
ar1 mean
0.5380 0.955
s.e. 0.0642 0.028
sigma^2 estimated as 0.02982: log likelihood=59.54
AIC=-113.08 AICc=-112.94 BIC=-103.6
How do I change Series: na.omit(data[, (i + 1)]) to Series: Correct name? Thank you in advance for your help!