R/generics.R
, R/method.R
, R/model.R
idVariable.Rd
Extracts the trajectory identifier variable (i.e., column name) from the given object
.
idVariable(object, ...)
# S4 method for lcMethod
idVariable(object, ...)
# S4 method for lcModel
idVariable(object)
The object.
Not used.
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"