variable.names.tramME | R Documentation |
Returns the variable names corresponding to different variable groups in a tramME model.
## S3 method for class 'tramME'
variable.names(
object,
which = c("all", "response", "grouping", "shifting", "interacting", "smooth", "ranef"),
...
)
object |
a tramME object (fitted or unfitted) |
which |
|
... |
optional parameters |
The returned names are the names as they are used by tramME. For example,
when the response is a Surv
object, variable.names
returns
the name of that object, and not the names of the variables used to create it.
A vector of variable names.
data("sleepstudy", package = "lme4")
mod <- LmME(Reaction ~ Days + (Days | Subject), data = sleepstudy, nofit = TRUE)
variable.names(mod)
variable.names(mod, "response")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.