model_likelihood: Computes the likelihood of a model from samples from its...

Description Usage Arguments Value

View source: R/mcmc.R

Description

The likelihood of a graph can be computed by integrating over all the graph parameters (with appropriate priors). Doing this by sampling from priors is very inefficient, so we use samples from the posteriors to importance sample the likelihood.

Usage

1
model_likelihood(log_likelihoods)

Arguments

log_likelihoods

Samples of log likelihoods from the posterior distribution of the graph.

Value

The likelihood of a graph where graph parameters are integrated out.


mailund/admixture_graph documentation built on May 21, 2019, 11:06 a.m.