Extracts the time variable (i.e., column name) from the given object.

timeVariable(object, ...)

# S4 method for lcMethod
timeVariable(object, ...)

# S4 method for lcModel
timeVariable(object)

Arguments

object

The object.

...

Not used.

Value

The time variable name, as character.

See also

Other variables: idVariable(), responseVariable()

Examples

method <- lcMethodLMKM(Y ~ Time, id = "Id", time = "Time")
timeVariable(method) # "Time"
#> [1] "Time"
data(latrendData)
method <- lcMethodRandom("Y", id = "Id", time = "Time")
model <- latrend(method, latrendData)
timeVariable(model) # "Time"
#> [1] "Time"