formula.lcMethod {latrend}R Documentation

Extract formula

Description

Extracts the associated formula for the given distributional parameter.

Usage

## S3 method for class '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.

See Also

Other lcMethod functions: [[,lcMethod-method, as.data.frame.lcMethod(), as.data.frame.lcMethods(), as.lcMethods(), as.list.lcMethod(), evaluate.lcMethod(), lcMethod-class, names,lcMethod-method, update.lcMethod()

Examples

method <- lcMethodLMKM(Y ~ Time, id = "Id", time = "Time")
formula(method) # Y ~ Time

[Package latrend version 1.6.1 Index]