make_cal: Creating holiday regressor that increases linearly up to...

Description Usage Arguments Details Author(s) Examples

View source: R/make_cal.R

Description

Creating holiday regressor that increases linearly up to holiday and decreases afterwards

Usage

1
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

1
2
a <- daily_sim(n=8)$original
## Not run: make_cal(holidays="Easter", original=a, original2=xts2ts(a, freq=365))

dsa documentation built on June 21, 2021, 9:07 a.m.