Skip to content

Commit 4d387ed

Browse files
Add description of ppc_loo_pit_ecdf
1 parent ea71b9d commit 4d387ed

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

R/ppc-loo.R

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#'
2828
#' @section Plot Descriptions:
2929
#' \describe{
30-
#' \item{`ppc_loo_pit_overlay()`, `ppc_loo_pit_qq()`}{
30+
#' \item{`ppc_loo_pit_overlay()`, `ppc_loo_pit_qq()`, `ppc_loo_pit_ecdf()`}{
3131
#' The calibration of marginal predictions can be assessed using probability
3232
#' integral transformation (PIT) checks. LOO improves the check by avoiding the
3333
#' double use of data. See the section on marginal predictive checks in Gelman
@@ -52,6 +52,14 @@
5252
#' we have found that the overlaid density plot (`ppc_loo_pit_overlay()`)
5353
#' function will provide a clearer picture of calibration problems than the
5454
#' Q-Q plot.
55+
#'
56+
#' The `ppc_loo_pit_ecdf()` function visualizes the empirical cumulative
57+
#' distribution function (ECDF) of the LOO PITs overlaid with simultaneous
58+
#' confidence intervals for a standard uniform sample. For large samples,
59+
#' these confidence intervals are visually very narrow. Setting the
60+
#' `plot_diff` argument to `TRUE` transforms the plot to display the
61+
#' difference of the ECDF and the theoretical expectation, which can aid in
62+
#' the visual assessment of calibration.
5563
#' }
5664
#' \item{`ppc_loo_intervals()`, `ppc_loo_ribbon()`}{
5765
#' Similar to [ppc_intervals()] and [ppc_ribbon()] but the intervals are for

man/PPC-loo.Rd

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)