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)

Arguments

object

The object.

...

Not used.

Value

A nonempty string, as character.

See also

Other variables: responseVariable(), timeVariable()

Examples

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"