make_cal {dsa} | R Documentation |
Creating holiday regressor that increases linearly up to holiday and decreases afterwards
Description
Creating holiday regressor that increases linearly up to holiday and decreases afterwards
Usage
make_cal(holidays = NULL, h = 365, original = NA, original2 = NA)
Arguments
holidays |
Holidays for which regressor will be created |
h |
Forecast horizon |
original |
xts time series which characteristics will be used |
original2 |
ts time series which characteristics will be used |
Details
This function is used internally in dsa()
Author(s)
Daniel Ollech
Examples
a <- daily_sim(n=8)$original
## Not run: make_cal(holidays="Easter", original=a, original2=xts2ts(a, freq=365))
[Package dsa version 1.0.12 Index]