bmf2bf | R Documentation |
bmmformula
objects to brmsformula
objectsCalled by configure_model()
inside bmm()
to convert the bmmformula
into a
brmsformula
based on information in the model object. It will call the
appropriate bmf2bf.\* methods based on the classes defined in the model_\* function.
bmf2bf(model, formula)
model |
The model object defining one of the supported 'bmmodels“ |
formula |
The |
A brmsformula
defining the response variables and the additional parameter
formulas for the specified bmmodel
model <- mixture2p(resp_error = "error")
formula <- bmmformula(
thetat ~ 0 + set_size + (0 + set_size | id),
kappa ~ 1 + (1 | id)
)
brms_formula <- bmf2bf(model, formula)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.