Returns the name(s) of the response variable(s) from a model object.
find_response(x, combine = TRUE)
A fitted model.
TRUE and the response is a matrix-column,
the name of the response matches the notation in formula, and would for
instance also contain patterns like
"cbind(...)". Else, the original
variable names from the matrix-column are returned. See 'Examples'.
The name(s) of the response variable(s) from
x as character vector.
$trials <- cbpp
m <- glm
) ~ period
, data = cbpp
, family = binomial
, combine = TRUE
#>  "cbind(incidence, trials)"
find_response(m, combine = FALSE)
#>  "incidence" "trials"