R/a.est.R

Defines functions a.est

Documented in a.est

a.est <- function(x) {
  ## x contains compositional data
   runtime <- proc.time()
   opt <- optimize( a.mle, c(-1, 1), x = x, maximum = TRUE )
   best <- opt$maximum
   mod <- Compositional::alpha.mle(x, best)
   runtime <- proc.time() - runtime
   list(runtime = runtime, best = best, loglik = mod$loglik,
        p = mod$p, mu = mod$mu, su = mod$su)
}

Try the Compositional package in your browser

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

Compositional documentation built on Oct. 9, 2024, 5:10 p.m.