forecast_series: Make a forecast of drug issues

View source: R/data_and_forecast.R

forecast_seriesR Documentation

Make a forecast of drug issues

Description

Make a forecast of drug issues

Usage

forecast_series(data, horizon, frequency = "Daily")

Arguments

data

tsibble with two columns 'Date' and 'Quantity'. You can make this with make_tsibble

horizon

integer. number of days/ weeks to forecast

frequency

String. One of 'Daily' or 'Weekly'- return daily or weekly forecasts

Value

mable with different forecast functions applied - mean, snaive (weekly seasonality), ARIMA (auto), and ETS (weekly seasonality for daily forecast, and none with weekly forecast)


CDU-data-science-team/phaRmacyForecasting documentation built on Jan. 2, 2023, 5:56 p.m.