R/fitted.efp.R

Defines functions fitted.efp

#' @export
fitted.efp <- function(object, type = "p", ...) {
  type <- match.arg(type, c("p", "pi", "both", "lpmatrix"))
  if (type == "p") {
    object$p
  } else if (type == "pi") {
    object$pi
  } else if (type == "both") {
    object[c("p", "pi")]
  } else if (type == "lpmatrix") {
    object$G
  }
}

Try the ef package in your browser

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

ef documentation built on Nov. 8, 2020, 4:36 p.m.