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)
The time variable name, as character
.
Other variables:
idVariable()
,
responseVariable()
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"