R/truncmle.R

Defines functions truncmle

Documented in truncmle

truncmle <- function(x, distr = "trunccauchy", a, b, tol = 1e-07) {
  if ( distr == "trunccauchy") {
    res <- Rfast2::trunccauchy.mle(x, a, b, tol = tol)
  } else if ( distr == "truncexpmle" ) {
    res <- Rfast2::truncexpmle(x, b, 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.