Find name of the response variable
Returns the name(s) of the response variable(s) from a model object.
find_response(x, combine = TRUE, ...)
x |
A fitted model. |
combine |
Logical, if |
... |
Currently not used. |
The name(s) of the response variable(s) from x
as character
vector, or NULL
if response variable could not be found.
if (require("lme4")) { data(cbpp) cbpp$trials <- cbpp$size - cbpp$incidence m <- glm(cbind(incidence, trials) ~ period, data = cbpp, family = binomial) find_response(m, combine = TRUE) find_response(m, combine = FALSE) }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.