Extracts 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)

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"