R/cens.mle.R

Defines functions cens.mle

Documented in cens.mle

cens.mle <- function(x, distr = "tobit", di, tol = 1e-07) {
  if ( distr == "tobit" ) {
    res <- Rfast::tobit.mle(x, tol = tol)
  } else if ( distr == "censweibull" ) {
    res <- Rfast2::censweibull.mle(x, di, tol = tol)
  } else if ( distr == "censpois" ) {
    res <- Rfast2::censpois.mle(x, tol = tol)
  }
  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.