date.range {bsts} | R Documentation |
Date Range
Description
Returns the first and last dates of the influence window for the given holiday, among the given timestamps.
Usage
DateRange(holiday, timestamps)
Arguments
holiday |
An object of class |
timestamps |
A vector of timestamps of class |
Value
Returns a two-column data frame giving the first and last dates
of the influence window for the holiday in the period covered by
timestamps
.
Author(s)
Steven L. Scott steve.the.bayesian@gmail.com
Examples
holiday <- NamedHoliday("MemorialDay", days.before = 2, days.after = 2)
timestamps <- seq.Date(from = as.Date("2001-01-01"), by = "day",
length.out = 365 * 10)
influence <- DateRange(holiday, timestamps)
[Package bsts version 0.9.10 Index]