Retrieve formulas from model objectsSource:
This function is primarily an internal helper function in
related packages to standardize the different types of formula objects used
by different types of models.
get_formula(model, ...) # S3 method for default get_formula(model, ...) # S3 method for brmsfit get_formula(model, resp = NULL, dpar = NULL, ...) # S3 method for panelmodel get_formula(model, ...)
The fitted model object.
brmsfitobjects, the response variable for which the formula is desired.
brmsfitobjects may have multiple formulas, so this selects a particular one. If
NULL, the first formula is chosen (unless
brmsfitobjects, the distributional variable for which the formula is desired. If
NULL, no distributional parameter is used. If there are multiple responses with distributional parameters, then
respshould be specified or else the first formula will be used by default.