log_lik function

Extract log-likelihood

Extract log-likelihood

log_lik(object, array = FALSE, ...) ## S3 method for class 'geostan_fit' log_lik(object, array = FALSE, ...)

Arguments

  • object: A geostan_fit model
  • array: Return results as an array, one matrix per MCMC chain?
  • ...: Other arguments (not used)

Returns

A matrix (or array) of MCMC samples for the log-likelihood: the casewise probability of the data conditional on estimated parameter values.

See Also

waic dic

  • Maintainer: Connor Donegan
  • License: GPL (>= 3)
  • Last published: 2024-12-04