Skip to contents

Adds 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.

Value

A brmsformula object.