marginal_lik {CNPBayes} | R Documentation

## Accessor for the log marginal likelihood of a SB, SBP, MB, or MBP model

### Description

The marginal likelihood is computed by Chib's estimator (JASA, Volume 90 (435), 1995).

### Usage

    marginal_lik(object)

    marginal_lik(object) <- value

    ## S4 method for signature 'MixtureModel'
    marginal_lik(object)

    ## S4 replacement method for signature 'MixtureModel,numeric'
    marginal_lik(object) <- value

### Arguments

`object` | a SB, SBP, MB, or MBP model
`value` | scalar for marginal likelihood

### See Also

See `marginalLikelihood` for computing the marginal likelihood of a mixture model.

### Examples

    sb <- SingleBatchModelExample
    marginal_lik(sb)

[Package CNPBayes version 1.12.0 Index]