R/comp.mle.R

Defines functions comp.mle

Documented in comp.mle

comp.mle <- function(x, distr = "diri", type = 1, a = NULL, tol = 1e-07) {
  if ( distr == "diri" ) {
    res <- Rfast::diri.nr2(x, type = type, tol = tol)
  } else if ( distr == "zad" ) {
    res <- Compositional::zad.est(x)
  } else if ( distr == "afolded" ) {
    if ( !is.null(a) ) {
      res <- Compositional::alpha.mle(x, a)
    } else {
      res <- Compositional::a.est(x)
    }
  }
  res
}

Try the MLE package in your browser

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

MLE documentation built on April 3, 2025, 10:02 p.m.