Learn R Programming

bbefkr (version 4.2)

logdensity_admkr: Compute the marginal likelihood using Chib's (1995) method

Description

The log marginal likelihood can be computed as the log likelihood + log prior - log posterior. The latter one can be estimated from the MCMC.

Usage

logdensity_admkr(tau2, cpost)

Arguments

tau2
Squared bandwidths recorded at each iteration
cpost
Squared bandwidths recorded at only the iteration defined by the variable step

Value

The value of the estimated posterior density

References

S. Chib (1995) `Marginal likelihood from the Gibbs output', Journal of the American Statistical Association, 90(432), 1313-1321.

See Also

logpriors_admkr, loglikelihood_global_admkr