
Define the model-specific component of an epidist custom formula for the meta model
Source: R/meta_model.R
epidist_formula_model.epidist_meta_model.RdAdds the response and the slots of the meta model to the formula. Where a
summary row estimates its growth rate as the pgrowth distributional
parameter, see as_epidist_meta_model(), and the formula has no term for
pgrowth, pgrowth ~ 0 + study is added so that each study has its own
rate and the priors epidist_model_prior() builds from the reported
rates have a coefficient to act on. Data holding a single study get
pgrowth ~ 1 instead, because brms cannot code a factor with one
level. A pgrowth formula given by the user is kept as it is.
Usage
# S3 method for class 'epidist_meta_model'
epidist_formula_model(data, formula, ...)Arguments
- data
An object with class corresponding to an implemented model.
- formula
An object of class stats::formula or brms::brmsformula (or one that can be coerced to those classes). A symbolic description of the model to be fitted. A formula must be provided for the distributional parameter
mu, and may optionally be provided for other distributional parameters.- ...
Additional arguments passed to method.
See also
Other meta_model:
as_epidist_meta_model(),
as_epidist_meta_model.NULL(),
as_epidist_meta_model.epidist_aggregate_data(),
as_epidist_meta_model.epidist_estimates_data(),
as_epidist_meta_model.epidist_linelist_data(),
assert_epidist.epidist_meta_model(),
epidist_family_model.epidist_meta_model(),
epidist_meta_leave_one_out(),
epidist_model_prior.epidist_meta_model(),
epidist_newdata.epidist_meta_model(),
epidist_transform_data_model.epidist_meta_model(),
is_epidist_meta_model(),
new_epidist_meta_model()