R/mvdisc.mle.R

Defines functions mvdisc.mle

Documented in mvdisc.mle

mvdisc.mle <- function(x, distr = "multinom", tol = 1e-07) {
  if ( distr == "multinom" ) {
    res <- Rfast::multinom.mle(x)
  } else if ( distr == "dirimultinom" ) {
    res <- Rfast::dirimultinom.mle(x , tol = tol)
  } else if ( distr == "bp" ) {
    res <- bivpois::bp.mle(x1 = x, x2 = NULL)
  } else if ( distr == "bp2" ) {
    res <- bivpois::bp.mle2(x1 = x, x2 = NULL)
  }
  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.