Get the formula associated with the fitted lcModel
object.
This is determined by the formula
argument of the lcMethod
specification that was used to fit the model.
# S3 method for class 'lcModel'
formula(x, what = "mu", ...)
Returns the associated formula
, or response ~ 0
if not specified.
data(latrendData)
method <- lcMethodLMKM(Y ~ Time, id = "Id", time = "Time")
model <- latrend(method, data = latrendData)
formula(model) # Y ~ Time
#> Y ~ Time
#> <environment: 0x5635ff952ea8>