I am trying to use auto.arima to fit a univariate time series and do forecast.

This is an imaginary data on monthly outcomes of 2 years and I want to forecast the outcome for next 12 months of next year.

data Data1;
input RR;
datalines;
12
14
17
15
13
15
15
14
15
14
16
15
15
18
16
16
15
14
15
16
16
14
13
12
;
run;

I successfully took this data into R and used the auto.arima codes but am getting the following error:
fit <- auto.arima(Data1)
------------------------------------------------------------------------------------------------------------
Error in model.frame.default(formula = x ~ 1, drop.unused.levels = TRUE) :
  invalid type (list) for variable 'x'
------------------------------------------------------------------------------------------------------------


Please help.

Thanks,
Ruchi


The information contained in this communication is highl...{{dropped:18}}

