idVariable {latrend} | R 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"
[Package latrend version 1.6.1 Index]