Description Usage Arguments Value
Fits a regression model to a mortality time series using any number of covariates with effects constrained to be positive.
1 2 3 4 |
data |
a data frame with all necessary variables |
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 |
covar |
character vector of covariates included in the model as such |
seasvar |
character vector of covariates included in the model by season |
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 |
positive |
which covariates should be restricted to positives, either all, none or some |
positives |
if positive=="some", which. Treated as list of regular expressions, anything that matches is treated as a hit |
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.