responseVariable | R Documentation |
Extracts the response variable from the given object
.
Get the response variable, i.e., the dependent variable.
responseVariable(object, ...)
## S4 method for signature 'lcMethod'
responseVariable(object, ...)
## S4 method for signature 'lcModel'
responseVariable(object, ...)
object |
The object. |
... |
Not used. |
If the lcMethod
object specifies a formula
argument, then the response is extracted from the response term of the formula.
A nonempty string, as character
.
Other variables:
idVariable()
,
timeVariable()
method <- lcMethodLMKM(Y ~ Time)
responseVariable(method) # "Y"
data(latrendData)
method <- lcMethodRandom("Y", id = "Id", time = "Time")
model <- latrend(method, latrendData)
responseVariable(model) # "Y"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.