log_lik {CNPBayes} | R Documentation

## Retrieve log likelihood.

### Description

Retrieve log likelihood.

### Usage

    log_lik(object)

    ## S4 method for signature 'McmcChains'
    log_lik(object)

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

### Arguments

`object` | see showMethods(log_lik)

### Value

The log likelihood

### Examples

    ## retrieve log likelihood at each MCMC iteration
    head(log_lik(chains(SingleBatchModelExample)))
    ## retrieve log likelihood at last MCMC iteration
    log_lik(SingleBatchModelExample)

[Package CNPBayes version 1.13.5 Index]