Convenience function to extract a log-likelihood matrix or array from the fitted Stan model in an icfit object.

# S3 method for icfit
log_lik(X, permuted = TRUE, ...)

Arguments

X

object of type icfit

permuted

Logical. Should the draws from each chain be permuted and merged?. Default is TRUE to merge.

...

Not currently used.

Value

An S x N matrix containing pointwise log-likelihood samples, where S is the number of samples and N is the number of observations in the data. If permuted is FALSE then an S x N x R array is returned, where R is the number of chains.

See also