powered by
Creating holiday regressor that increases linearly up to holiday and decreases afterwards
make_cal(holidays = NULL, h = 365, original = NA, original2 = NA)
Holidays for which regressor will be created
Forecast horizon
xts time series which characteristics will be used
ts time series which characteristics will be used
This function is used internally in dsa()
# NOT RUN { a <- daily_sim(n=8)$original # } # NOT RUN { make_cal(holidays="Easter", original=a, original2=xts2ts(a, freq=365)) # }
Run the code above in your browser using DataLab