| idVariable | R Documentation |
Extracts the trajectory identifier variable (i.e., column name) from the given object.
## S4 method for signature 'lcMethod' idVariable(object, ...) ## S4 method for signature 'lcModel' idVariable(object)
object |
The object to extract the variable from. |
... |
Not used. |
The trajectory identifier name, as character.
Other lcModel variables:
responseVariable(),
timeVariable()
method <- lcMethodLMKM(Y ~ Time, id = "Traj")
idVariable(method) # "Traj"
method <- lcMethodRandom("Y", id = "Id", time = "Time")
model <- latrend(method, latrendData)
idVariable(model) # "Id"