Log likelihood from an msmbayes model
Usage
loglik(draws)
# S3 method for class 'msmbayes'
logLik(object, ...)
Value
For loglik
, a data frame with rows for the log likelihood, log prior density and log posterior density,
and columns for the posterior (as an rvar
object) and the mode (only if optimisation was used to fit the model, rather than MCMC).
If msmbayes
was called with priors="mle"
, the maximised log posterior and log likelihood should be the same.
For logLik
(note the different capitalisation), just the likelihood (mode if available, or posterior if not) is returned. This is a
method for the generic logLik
function in the stats
package.