R/coef-methods.R

#' @describeIn coef Extracts the numeric vector of the maximum empirical
#'   likelihood estimates.
setMethod("coef", "EL", function(object, ...) {
  object@coefficients
})

#' @describeIn coef Extracts the list of numeric vectors of the maximum
#'   empirical likelihood estimates. Each element of the list corresponds to a
#'   distinct hypothesis.
setMethod("coef", "ELMT", function(object, ...) {
  object@coefficients
})

#' @describeIn coef Extracts the numeric vector of the maximum empirical
#'   likelihood estimates.
setMethod("coef", "SummaryEL", function(object, ...) {
  object@coefficients
})

#' @describeIn coef Extracts a matrix with the results of significance tests.
setMethod("coef", "SummaryLM", function(object, ...) {
  object@coefficients
})

Try the melt package in your browser

Any scripts or data that you put into this service are public.

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