timeVariable: Extract the time variable

timeVariableR Documentation

Extract the time variable

Description

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

Usage

timeVariable(object, ...)

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

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

## S4 method for signature 'ANY'
timeVariable(object)

Arguments

object

The object.

...

Not used.

Value

The time variable name, as character.

See Also

Other variables: idVariable(), responseVariable()

Examples

method <- lcMethodLMKM(Y ~ Time, id = "Id", time = "Time")
timeVariable(method) # "Time"
data(latrendData)
method <- lcMethodRandom("Y", id = "Id", time = "Time")
model <- latrend(method, latrendData)
timeVariable(model) # "Time"

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