idVariable: Extract the trajectory identifier variable

idVariableR Documentation

Extract the trajectory identifier variable

Description

Extracts the trajectory identifier variable (i.e., column name) from the given object.

Usage

## S4 method for signature 'lcMethod'
idVariable(object, ...)

## S4 method for signature 'lcModel'
idVariable(object)

Arguments

object

The object to extract the variable from.

...

Not used.

Value

The trajectory identifier name, as character.

See Also

Other lcModel variables: responseVariable(), timeVariable()

Examples

method <- lcMethodLMKM(Y ~ Time, id = "Traj")
idVariable(method) # "Traj"

method <- lcMethodRandom("Y", id = "Id", time = "Time")
model <- latrend(method, latrendData)
idVariable(model) # "Id"

latrend documentation built on March 31, 2023, 5:45 p.m.