Description Usage Arguments Value How to allow weighting of observations? Examples
Fit a hierarchical time series model
1 2 3 4 5 6 7 8 9 |
formula |
formula must contain fixed effect terms and |
.data |
a |
special_index |
The variable that represents time in your data |
family |
character. |
verbose |
default TRUE, whether to display message |
keep_data |
attach the data used to fit the model to the final model object? |
... |
list of options to pass to |
inlabru model
To weight your observations, say when using empirical logit, you must
provide a vector of variances, for each observation, which represents
the uncertainty of measurement. You can do this, provided the
family = "gaussian"
, add the argument, scale = vec
, to fit_hts
,
where vec
is a vector of variances for each observation.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
m <- fit_hts(
#inputs are the levels of hierarchy, in order of decreasing size
formula = pr ~ avg_lower_age + hts(who_subregion, country),
.data = malaria_africa_ts,
family = "gaussian",
special_index = month_num
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.