View source: R/find_response.R
find_response | R Documentation |
Returns the name(s) of the response variable(s) from a model object.
find_response(x, combine = TRUE, ...)
## S3 method for class 'mjoint'
find_response(
x,
combine = TRUE,
component = c("conditional", "survival", "all"),
...
)
## S3 method for class 'joint'
find_response(
x,
combine = TRUE,
component = c("conditional", "survival", "all"),
...
)
x |
A fitted model. |
combine |
Logical, if |
... |
Currently not used. |
component |
Character, if |
The name(s) of the response variable(s) from x
as character
vector, or NULL
if response variable could not be found.
data(cbpp, package = "lme4")
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.