|
1 | | -#' @param K An optional integer defining the number of equally spaced evaluation |
2 | | -#' points for the PIT-ECDF. Reducing K when using `interpolate_adj = FALSE` |
3 | | -#' makes computing the confidence bands faster. For `ppc_pit_ecdf` and |
4 | | -#' `ppc_pit_ecdf_grouped`, if PIT values are supplied, defaults to |
5 | | -#' `length(pit)`, otherwise yrep determines the maximum accuracy of the |
6 | | -#' estimated PIT values and `K` is set to `min(nrow(yrep) + 1, 1000)`. For |
7 | | -#' `mcmc_rank_ecdf`, defaults to the number of iterations per chain in `x`. |
8 | | -#' @param prob The desired simultaneous coverage level of the bands around the |
9 | | -#' ECDF. A value in (0,1). |
10 | | -#' @param plot_diff A boolean defining whether to plot the difference between |
11 | | -#' the observed PIT- ECDF and the theoretical expectation for uniform PIT |
12 | | -#' values rather than plotting the regular ECDF. The default is `FALSE`, but |
13 | | -#' for large samples we recommend setting `plot_diff=TRUE` as the difference |
14 | | -#' plot will visually show a more dynamic range. |
15 | | -#' @param interpolate_adj A boolean defining if the simultaneous confidence |
16 | | -#' bands should be interpolated based on precomputed values rather than |
17 | | -#' computed exactly. Computing the bands may be computationally intensive and |
18 | | -#' the approximation gives a fast method for assessing the ECDF trajectory. |
19 | | -#' The default is to use interpolation if `K` is greater than 200. |
| 1 | +#' @param method The method used to calculate the uniformity test: |
| 2 | +#' * `"independent"`: assumes independent PIT values (Säilynoja et al., 2022). |
| 3 | +#' * `"correlated"`: accounts for correlated PIT values (Tesso & Vehtari, 2026). |
| 4 | +#' @param test When `method = "correlated"`, which dependence-aware test to use: |
| 5 | +#' `"POT"`, `"PRIT"`, or `"PIET"`. Defaults to `"POT"`. |
| 6 | +#' @param gamma When `method = "correlated"`, tolerance threshold controlling |
| 7 | +#' how strongly suspicious points are flagged. Larger values (`gamma > 0`) |
| 8 | +#' emphasize points with larger deviations. If `NULL`, defaults to `0` and |
| 9 | +#' thus all suspicious points are flagged. |
| 10 | +#' @param linewidth When `method = "correlated"`, the line width of the ECDF. |
| 11 | +#' Defaults to `0.3`. |
| 12 | +#' @param color When `method = "correlated"`, a vector with base color and |
| 13 | +#' highlight color for the ECDF plot. Defaults to |
| 14 | +#' `c(ecdf = "grey60", highlight = "red")`. The first element is used for |
| 15 | +#' the main ECDF line, the second for highlighted suspicious regions. |
| 16 | +#' @param help_text When `method = "correlated"`, a boolean defining whether |
| 17 | +#' to add information about p-value to the plot. Defaults to `TRUE`. |
| 18 | +#' @param help_text_shrinkage When `method = "correlated"`, a numeric value |
| 19 | +#' between 0 and 1 defining the factor by which the help-text (p-value |
| 20 | +#' information) is scaled. The default is `0.8`. |
| 21 | +#' @param pareto_pit A boolean defining whether to compute PIT values using |
| 22 | +#' Pareto-PIT method. Defaults to `TRUE` if `test` is either `"POT"` or |
| 23 | +#' `"PIET"` and no `pit` values are provided otherwise `FALSE`. This argument |
| 24 | +#' should normally not be modified by the user, except for development |
| 25 | +#' purposes. If `pit` is non-`NULL`, `pareto_pit` cannot be simultaneously |
| 26 | +#' `TRUE`. |
0 commit comments