Skip to contents

plot empirical cohort-based or cumulative mean vs posterior mean

Usage

plot_mean_posterior_pred(
  summarised_mean,
  obs_mean,
  alpha = 0.3,
  mean = FALSE,
  ribbon = TRUE,
  ribbon_bounds = c(0.05, 0.95),
  ...
)

Arguments

summarised_mean

Summarised mean as produced by summarise_variable()

obs_mean

...

alpha

...

mean

Should the mean be plotted? Logical, defaults to FALSE.

ribbon

Should the quantile ribbon be plotted? Logical, defaults to TRUE.

ribbon_bounds

Bounds of the quantile ribbon. Defaults to c(0.05, 0.95) which corresponds to the 90% credible interval.

...

Additional arguments passed to ggplot2::aes().