Returns posterior samples, if available. If not, then prior samples. If not, then throw an informative error. This is useful for summary and plotting, that works on both.
mcmclist_samples(fit, prior = FALSE, message = TRUE, error = TRUE)
An mcpfit
object
TRUE/FALSE. Summarise prior instead of posterior?
TRUE: gives a message if returning prior samples. FALSE = no message
TRUE: err if there are no samples. FALSE: return NULL