coef: Model coefficients

coefR Documentation

Model coefficients

Description

Extracts the maximum empirical likelihood estimates from a model.

Usage

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

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

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

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

Arguments

object

An object that contains the maximum empirical likelihood estimates.

...

Further arguments passed to methods.

Value

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

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

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

melt documentation built on May 31, 2023, 7:12 p.m.