Skip to content

Commit 293151a

Browse files
author
Florence Bockting
committed
update ppc-calibration with consistency and confidence method
1 parent 14eb2dc commit 293151a

31 files changed

Lines changed: 12794 additions & 109 deletions

DESCRIPTION

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ Suggests:
5656
shinystan (>= 2.3.0),
5757
survival,
5858
testthat (>= 2.0.0),
59-
vdiffr (>= 1.0.2)
59+
vdiffr (>= 1.0.2),
60+
monotone,
61+
patchwork,
62+
brms
6063
RoxygenNote: 7.3.2
6164
VignetteBuilder: knitr
6265
Encoding: UTF-8

NAMESPACE

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@ export(ppc_bars_data)
120120
export(ppc_bars_grouped)
121121
export(ppc_boxplot)
122122
export(ppc_calibration)
123+
export(ppc_calibration_data)
123124
export(ppc_calibration_grouped)
125+
export(ppc_calibration_interval_data)
126+
export(ppc_calibration_interval_data_grouped)
124127
export(ppc_calibration_overlay)
125128
export(ppc_calibration_overlay_grouped)
126129
export(ppc_data)

R/helpers-ppc.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ validate_predictions <- function(predictions, n_obs = NULL) {
101101
#' Validate PIT
102102
#'
103103
#' Checks that `pit` is numeric, doesn't have any NAs, and is either a vector,
104-
#' or a 1-D array with values in [0,1].
104+
#' or a 1-D array with values in `[0,1]`.
105105
#'
106106
#' @param pit The 'pit' object from the user.
107107
#' @return Either throws an error or returns a numeric vector.
@@ -521,8 +521,8 @@ get_interpolation_values <- function(N, K, L, prob) {
521521
#' within the bounds until z1 and takes the value in x1 at z1.
522522
#' @param x1 Vector of scaled ECDF values at the left end of the interval, z1.
523523
#' @param x2 Vector of scaled ECDF values at the right end of the interval, z2.
524-
#' @param z1 Left evaluation point in [0,1]
525-
#' @param z2 Right evaluation point in [0,1] with z2 > z1.
524+
#' @param z1 Left evaluation point in `[0,1]`
525+
#' @param z2 Right evaluation point in `[0,1]` with z2 > z1.
526526
#' @param N Total number of values in the sample.
527527
#' @return A vector containing the probability to transitioning from the values
528528
#' in x1 to each of the values in x2 weighted by the probabilities in p_int.

0 commit comments

Comments
 (0)