R/K.L.weight.of.evidence.R

Defines functions K.L.weight.of.evidence

K.L.weight.of.evidence <- function(IC, AIC = TRUE)
{
	cat("\n")
	delta <- IC - min(IC)
	wght.evd <- exp(-0.5 * (delta))/sum(exp(-0.5 * (delta)))
        if(AIC) 
	  data.frame(AIC = IC, Delta = delta, Wght.of.Evidence = wght.evd)
       else
          data.frame(BIC = IC, Delta = delta, Wght.of.Evidence = wght.evd) 
}
John-R-Wallace/JRWToolBox documentation built on April 20, 2024, 9:31 p.m.