Description Usage Arguments Value
check_logliks
ingests the raw vector of posterior log-likelihoods and returns quantiles of interests, the mean, and
a plot of the distribution if plot = TRUE
. A well-behaving posterior distribution should be unimodal and peak at the mean.
1 2 3 4 5 | check_logliks(
log_liks,
probs = c(0.05, 0.1, 0.2, 0.5, 0.8, 0.9, 0.95),
plot = TRUE
)
|
log_liks |
A numeric vector of posterior draws from mmBPFA sampler. Must not be processed. |
probs |
A numeric vector of quantiles to display for log-likelihoods distribution. Default is c(0.05, 0.1, 0.2, 0.5, 0.8, 0.9, 0.95). |
plot |
A boolean indicating whether to plot the log-likelihood distribution. Default is TRUE. |
If plot is TRUE, returns none, else returns mean log-likelihood and quantiles.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.