| parse_bf {brms} | R Documentation |
Parse formulas objects for use in brms.
parse_bf(formula, ...) ## Default S3 method: parse_bf(formula, family = NULL, autocor = NULL, ...) ## S3 method for class 'brmsformula' parse_bf(formula, family = NULL, autocor = NULL, check_response = TRUE, resp_rhs_all = TRUE, mv = FALSE, ...) ## S3 method for class 'mvbrmsformula' parse_bf(formula, family = NULL, autocor = NULL, ...)
formula |
An object of class |
... |
Further arguments passed to or from other methods. |
family |
A description of the response distribution and link function to
be used in the model. This can be a family function, a call to a family
function or a character string naming the family. Every family function has
a |
autocor |
An optional |
check_response |
Logical; Indicates whether the left-hand side
of |
resp_rhs_all |
Logical; Indicates whether to also include response
variables on the right-hand side of formula |
mv |
Indicates if the univariate model is part of a multivariate model. |
This is the main formula parsing function of brms. It should usually not be called directly, but is exported to allow package developers making use of the formula syntax implemented in brms. As long as no other packages depend on this functions, it may be changed without deprecation warnings, when new features make this necessary.
An object of class brmsterms or mvbrmsterms
(for multivariate models), which is a list containing all
required information initially stored in formula
in an easier to use format, basically a list of formulas
(not an abstract syntax tree).
brm,
brmsformula,
mvbrmsformula