R/generics.R, R/method.R, R/model.R, and 1 more
idVariable.RdExtracts the trajectory identifier variable (i.e., column name) from the given object.
idVariable(object, ...)
# S4 method for class 'lcMethod'
idVariable(object, ...)
# S4 method for class 'lcModel'
idVariable(object)
# S4 method for class 'ANY'
idVariable(object)A nonempty string, as character.
Other variables:
responseVariable(),
timeVariable()
method <- lcMethodLMKM(Y ~ Time, id = "Traj")
idVariable(method) # "Traj"
#> [1] "Traj"
method <- lcMethodRandom("Y", id = "Id", time = "Time")
model <- latrend(method, latrendData)
idVariable(model) # "Id"
#> [1] "Id"