powered by
This function uses the quick-and-dirty Newton-Raftery approximation for log-marginal-density.
logMargDenNRu(ll)
A single numeric value representing the log marginal density
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.
logll_values <- c(-4000, -4001, -4002) logMargDenNRu(logll_values)
Run the code above in your browser using DataLab