Returns the variable names corresponding to different variable groups in a tramME
model.
Usage
# S3 method for tramME
variable.names(
object,
which = c("all", "response", "grouping", "shifting", "interacting", "smooth", "ranef"),
...
)
Value
A vector of variable names.
Arguments
object
a tramME object (fitted or unfitted)
which
all: all variables,
response: response variable,
grouping: grouping factors for random effects,
shifting: shifting variables,
interacting: interacting variables,
smooth: variables in smooth terms,
ranef: all random effects variables (covariates with random slopes and grouping
factors).
...
optional parameters
Details
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.