Description Usage Arguments Value Author(s) Examples
View source: R/build_bru_formula.R
create formula to pass to inlabru::bru
1 | build_bru_formula(formula, .data, special_index)
|
formula |
formula with an hts() term |
.data |
tsibble data |
special_index |
special index term |
formula
Nicholas Tierney
1 2 3 4 5 6 | bru_form <- build_bru_formula(
formula = pr ~ avg_lower_age + hts(who_subregion, country),
.data = malaria_africa_ts,
special_index = month_num
)
bru_form
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.