# \donttest{
# Load example dataset
data(dengueMS)
# Declare formulas
formulas <- c(
"dengue_cases ~ tmin + f(year, model='rw1')",
"dengue_cases ~ pdsi + f(year, model='rw1')"
)
# Tranform formulas into a 'GHRformulas' object
ghr_formulas <- as_GHRformulas(formulas)
# Fit multiple models
results <- fit_models(
formulas = ghr_formulas,
data = dengue_MS,
family = "nbinomial",
name = "TestModel",
offset = "population",
nthreads = 2,
control_compute = list(config = FALSE),
pb = TRUE
)
# Extract the list of covariates from the models
get_covariates(results)
# }
Run the code above in your browser using DataLab