log_lik-method: Retrieve log likelihood.

Description Usage Arguments Value Examples

Description

Retrieve log likelihood.

Usage

1
2
3
4
5
6
7
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

1
2
3
4
## retrieve log likelihood at each MCMC iteration
head(log_lik(chains(SingleBatchModelExample)))
## retrieve log likelihood at last MCMC iteration
log_lik(SingleBatchModelExample)

CNPBayes documentation built on May 6, 2019, 4:06 a.m.