- counts
A data frame with date, count and population columns.
- start
First day of interval to which model will be fit
- end
Last day of interval to which model will be fit
- knots.per.year
Number of knots per year used for the fitted smooth function
- event
If modeling a discontinuity is desired, this is the day in which it happens
- intervals
Instead of `start` and `end` a list of time intervals can be provided and excess is computed in each one
- discontinuity
Logical that determines if discontinuity is allowed at `event`
- model
Which version of the model to fit
- exclude
Dates to exclude when computing expected counts
- include.trend
Logical that determines if a slow trend is included in the model.
- trend.knots.per.year
Number of knots per year used by `compute_expected` to estimate the trend for the expected counts
- harmonics
Number of harmonics used by `compute_expected` to estimate seasonal trend
- frequency
Number of observations per year. If not provided an attempt is made to calculate it
- weekday.effect
Logical that determins if a day of the week effects is included in the model. Should be `FALSE` for weekly or monthly data.
- control.dates
When `model` is set to `correlated`, these dates are used to estimate the covariance matrix. The larger this is the slower the function runs.
- max.control
If the length of `control.dates` is larger than `max.control` the function stops.
- order.max
Larges order for the Autoregressive process used to model the covariance structure
- aic
A logical that determines if the AIC criterion is used to selected the order of the AR process
- maxit
Maxium number of iterations for the IRLS algorithm used when `model` is `correlated`
- epsilon
Difference in deviance requried to declare covergenace of IRLS
- alpha
Percentile used to define what is outside the normal range
- min.rate
The estimated expected rate is not permited to go below this value
- keep.counts
A logical that if `TRUE` forces the function to include the data used to fit the expected count model.
- keep.components
A logical that if `TRUE` forces the function to return the estimated trend, seasonal model, and weekday effect, if included in the model. Ignored if expected counts already provided or `keep.counts` is `FALSE`.
- verbose
Logical that determines if messages are displayed