logMargDenNRu {echoice2} | R Documentation |
This function uses the quick-and-dirty Newton-Raftery approximation for log-marginal-density.
logMargDenNRu(ll)
ll |
A vector of log-likelihood values (i.e., draws) |
Approximation of LMD based on Newton-Raftery. It is not the most accurate, but a very fast method.
A single numeric value representing the log marginal density
logll_values <- c(-4000, -4001, -4002)
logMargDenNRu(logll_values)