Learn R Programming

tramME (version 1.0.1)

variable.names.tramME: Return variable names.

Description

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"),
  ...
)

Arguments

object

a tramME object (fitted or unfitted)

which
  1. all: all variables,

  2. response: response variable,

  3. grouping: grouping factors for random effects,

  4. shifting: shifting variables,

  5. interacting: interacting variables,

  6. smooth: variables in smooth terms,

  7. ranef: all random effects variables (covariates with random slopes and grouping factors).

...

optional parameters

Value

A vector of variable names.

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.

Examples

Run this code
# NOT RUN {
data("sleepstudy", package = "lme4")
mod <- LmME(Reaction ~ Days + (Days | Subject), data = sleepstudy, nofit = TRUE)
variable.names(mod)
variable.names(mod, "response")
# }

Run the code above in your browser using DataLab