CompLogML {dga}R Documentation

Computes Marginal Likelihoods for Each Clique and Value of Nmissing

Description

Assembles all of the pieces of the marginal likelihoods to be used to calculate the posterior probability of each model/value of Nmissing.

Usage

CompLogML(D, delta)

Arguments

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.

Value

The log marginal likelihood of the marginal table.

Author(s)

James Johndrow james.johndrow@gmail.com and Kristian Lum kl@hrdag.org

References

Madigan, David, and Jeremy C. York. "Bayesian methods for estimation of the size of a closed population." Biometrika 84.1 (1997): 19-31.

Examples



## 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)
  }

[Package dga version 1.2 Index]