Skip to content

Commit 6d71247

Browse files
committed
Add documentation for the extrapolation_factor parameter in ppc_km_overlay
1 parent 0d48ddd commit 6d71247

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

R/ppc-censoring.R

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ NULL
8181
#' (delayed entry) times for the observations from `y`. This must
8282
#' be a numeric vector of the same length as `y`. If `NULL` (default),
8383
#' no left-truncation is assumed.
84+
#' @param extrapolation_factor A numeric value (>=1) that controls how far the
85+
#' plot is extended beyond the largest observed value in `y`. The default
86+
#' value is 1.2, which corresponds to 20 % extrapolation. To display all
87+
#' posterior predictive draws, set `extrapolation_factor = Inf`.
88+
#' Note that the plot is never extrapolated further than the largest
89+
#' value in `yrep`.
90+
#'
8491
ppc_km_overlay <- function(
8592
y,
8693
yrep,

0 commit comments

Comments
 (0)