Extract the response variable
Extracts the response variable from the given object.
## S4 method for signature 'lcMethod' responseVariable(object, ...) ## S4 method for signature 'lcModel' responseVariable(object, ...)
object |
The object to extract the response variable from. |
... |
Additional arguments. |
If the lcMethod object specifies a formula argument, then the response is extracted from the response term of the formula.
The response variable name as a character.
Other lcModel variables:
idVariable(),
timeVariable()
method <- lcMethodKML("Value")
responseVariable(method) # "Value"
method <- lcMethodLcmmGBTM(fixed = Value ~ Time, mixture = ~ Time)
responseVariable(method) # "Value"
data(latrendData)
model <- latrend(lcMethodKML("Y", id = "Id", time = "Time"), latrendData)
responseVariable(model) # "Value"Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.