R/bic.to.prob.r

Defines functions bic.to.prob

Documented in bic.to.prob

#' Convert BIC to model probabilities
#'
#' This function transforms BIC to model probabilities
#'
#' @param bic vector of BICs
#'
#' @export
#' @return A vector of model probabilities of the same dimension of \code{bic}
#'
bic.to.prob <- function(bic){
   bf = exp(-bic/2)
   return(bf/sum(bf))
}

Try the madr package in your browser

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

madr documentation built on May 2, 2019, 6:03 a.m.