Learn R Programming

CNPBayes (version 1.2.2)

logBayesFactor: Compute the log bayes factor between models.

Description

Models of varying component sizes are compared. The log bayes factor is calculated comparing each set of two models by marginal likelihood, as computed by marginalLikelihood.

Usage

logBayesFactor(x)

Arguments

x
the result of a call to computeMarginalLik.

Value

Log Bayes factor comparing the two models with highest likelihood.