R/calc_moddee.R

Defines functions calc_moddee

calc_moddee <- function(mliks) {
  if (length(mliks) == 0) {
    return(0)
  }
  which(unlist(mliks) == max(unlist(mliks), na.rm = TRUE))[1]
}

Try the EMJMCMC package in your browser

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

EMJMCMC documentation built on June 22, 2024, 11:34 a.m.