variable.names.tramME {tramME} | R Documentation |
Returns the variable names corresponding the selected group.
The returned names are derived names as tramME uses them. For example, when the
response is a Surv object, variable.names
returns the name of that object, and
the names of the variables used to create it.
## S3 method for class 'tramME' variable.names( object, which = c("all", "response", "grouping", "shifting", "interacting"), ... )
object |
a tramME object (fitted or unfitted) |
which |
all: all non-eliminated variable names, response: response variable, grouping: grouping factors for random effects, shifting: shifting variables, interacting: interacting variables. |
... |
optional parameters |
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")