CompLogML {dga} | R Documentation |
Assembles all of the pieces of the marginal likelihoods to be used to calculate the posterior probability of each model/value of Nmissing.
CompLogML(D, delta)
D |
A marginal table of the list overlap counts. |
delta |
The prior hyper parameter for the Dirichlet distribution. This has been properly re-scaled in bma.cr so that all marginal tables have consistent priors. |
The log marginal likelihood of the marginal table.
James Johndrow james.johndrow@gmail.com and Kristian Lum kl@hrdag.org
Madigan, David, and Jeremy C. York. "Bayesian methods for estimation of the size of a closed population." Biometrika 84.1 (1997): 19-31.
## The function is currently defined as function (D, delta) { out <- apply(lgamma(D + delta), 1, sum) - apply(lgamma(D * 0 + delta), 1, sum) return(out) }