Learn R Programming

melt (version 1.11.3)

coef: Model coefficients

Description

Extracts the maximum empirical likelihood estimates from a model.

Usage

# S4 method for EL
coef(object, ...)

# S4 method for ELMT coef(object, ...)

# S4 method for SummaryEL coef(object, ...)

# S4 method for SummaryLM coef(object, ...)

Value

The form of the value returned by coef() depends on the class of its argument.

Arguments

object

An object that contains the maximum empirical likelihood estimates.

...

Further arguments passed to methods.

Methods (by class)

  • coef(EL): Extracts the numeric vector of the maximum empirical likelihood estimates.

  • coef(ELMT): Extracts the list of numeric vectors of the maximum empirical likelihood estimates. Each element of the list corresponds to a distinct hypothesis.

  • coef(SummaryEL): Extracts the numeric vector of the maximum empirical likelihood estimates.

  • coef(SummaryLM): Extracts a matrix with the results of significance tests.

See Also

EL, ELMT

Examples

Run this code
data("mtcars")
fit <- el_lm(mpg ~ wt, data = mtcars)
coef(fit)

Run the code above in your browser using DataLab