Skip to contents

Builds a monthly count series via stats::ts, fits ARIMA(1,1,1) with stats::arima, and forecasts h periods ahead with stats::predict. AIC is reported from the fit; BIC is computed manually as AIC + k * (log(n) - 2).

Usage

morie_tps_arima_forecast(df, h = 12L, ds_name = "?")

Arguments

df

A data.frame.

h

Forecast horizon in months.

ds_name

Character label.

Value

A morie_rich_result list with forecast, aic, bic, n_train.