Skip to contents

Plot prior predictive check for BayesDCA (binary case only)

Usage

plot_ppc(obj, plot_list = FALSE, n_draws = 4000, bins = 20)

Arguments

obj

BayesDCA object

plot_list

If TRUE, returns a list with each separate plot.

n_draws

Number of prior draws to use.

bins

Number of bins to use in the histogram of prior prevalence.

Examples

df <- data.frame(outcomes = 1, x = 1) # specific values don't really matter
fit <- dca(df, prior_only = TRUE, threshold_varying_prior = TRUE)
plot_ppc(fit)