Extracts the associated formula for the given distributional parameter.

# S3 method for lcMethod
formula(x, what = "mu", envir = NULL, ...)

Arguments

x

The lcMethod object.

what

The distributional parameter to which this formula applies. By default, the formula specifies "mu".

envir

The environment in which to evaluate the arguments. If NULL, the environment associated with the object is used. If not available, the parent.frame() is used.

...

Additional arguments.

Value

The formula for the given distributional parameter.

Examples

method <- lcMethodLMKM(Y ~ Time, id = "Id", time = "Time")
formula(method) # Y ~ Time
#> Y ~ Time
#> <environment: 0x55be3370f430>