View source: R/mcpfit_methods.R
mcmclist_samples | R Documentation |
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)
fit |
An |
prior |
TRUE/FALSE. Summarise prior instead of posterior? |
message |
TRUE: gives a message if returning prior samples. FALSE = no message |
error |
TRUE: err if there are no samples. FALSE: return NULL |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.