Learn R Programming

dsa (version 0.74.18)

day_split: Forecasts the days of the week

Description

This function splits a time series into the days of the week and forecasts them using the X-11 heuristic or ETS.

Usage

day_split(series = NULL, use = "heur", h = 365)

Arguments

series

Input time series

use

Which method to use. "heur" or "ets".

h

Length of the Forecast

Details

This function is used internally in dsa()

Examples

Run this code
# NOT RUN {
day_split(series=ts(rnorm(730, 100,1), start=c(2001,1), frequency=7), use="ets", h=365)
# }

Run the code above in your browser using DataLab