Description Usage Arguments Value
Fits a Serfling -type model to a mortality time series by omiting summer and winter seasons from the estimation, and making predictions for the whole time span of the data. This version does not include delay adjustments
1 2 3 |
data |
a data frame with all necessary variables |
spring |
numbers of the weeks defining Spring (use 1:53 to use all weeks) |
autumn |
numbers of the weeks defining Autumn (use 1:53 to use all weeks) |
datevar |
name of the variable containing the date of the observation (preferrably the date of the Monday) |
mortvar |
name of the variable containing the number of deaths |
popvar |
(optionally) the name of the variable containing the population denominator |
byvar |
(optionally) the name of the variable by which groups the analysis is done |
iter |
number of iterations |
penalties |
control the shrinkage between |
data.only |
if TRUE just collect all the data together and don't fit |
stan fit object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.