Learn R Programming

latrend (version 1.1.0)

formula.lcMethod: Extract formula

Description

Extracts the associated formula for the given distributional parameter.

Usage

# 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.

See Also

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

Examples

Run this code
# NOT RUN {
m <- lcMethodMixtoolsGMM(formula = Y ~ Time + (1 | Id))
formula(m) # Y ~ Time + (1 | Id)
# }

Run the code above in your browser using DataLab