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

timeVariable(object, ...)

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

# S4 method for class 'lcModel'
timeVariable(object)

# S4 method for class 'ANY'
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"