A Reference Class to represent an event with start and end date and how it varies in time.
A date string of the form "YYYY-MM-DD" or vector of date strings if the event has more than one start date.
A date string of the form "YYYY-MM-DD" or vector of date strings if the event has more than one end date.
A string naming the type of time function. ("none", "linear", "inverse"): "none" generates an indicator variable that is 1 between the endpoints (inclusive) and 0 otherwise. "linear" generates a continuous variable that starts at 1 on the start day and is incremented by one every subsiquent day and is zero outside start and end days. "inverse" generates a continuous variable that is starts at 1 on the start day and decrements as a function of 1/(1+days past start) and is zero outside start and end.
initialize(..., start = "0001-01-01", end = "9999-01-01", time_function = "none")
Makes default event very long, to ease creation of single bounded event. Call Event() then set start or end date
Create event regressor over a sequence of dates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.