forecast_series: Make a forecast of drug issues

View source: R/make_tsibble.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/pharmacyReporting documentation built on March 24, 2023, 2:32 p.m.