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

idVariable(object, ...)

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

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

## S4 method for signature '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"

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

philips-software/latrend documentation built on Jan. 9, 2025, 4:33 p.m.