This function is primarily an internal helper function in jtools and
related packages to standardize the different types of formula objects used
by different types of models.
Usage
get_formula(model, ...)
# Default S3 method
get_formula(model, ...)
# S3 method for class 'brmsfit'
get_formula(model, resp = NULL, dpar = NULL, ...)
# S3 method for class 'panelmodel'
get_formula(model, ...)Arguments
- model
 The fitted model object.
- ...
 Ignored.
- resp
 For
brmsfitobjects, the response variable for which the formula is desired.brmsfitobjects may have multiple formulas, so this selects a particular one. IfNULL, the first formula is chosen (unlessdparis specified).- dpar
 For
brmsfitobjects, the distributional variable for which the formula is desired. IfNULL, no distributional parameter is used. If there are multiple responses with distributional parameters, thenrespshould be specified or else the first formula will be used by default.
