Skip to content

Commit 294637a

Browse files
committed
Add two missing lines to ppc_km_overlay example
1 parent 45a6d88 commit 294637a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

R/ppc-censoring.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@
5959
#' ppc_km_overlay_grouped(y, yrep[1:25, ], group = group, status_y = status_y)
6060
#' }
6161
#' # With left-truncation (delayed entry) times:
62+
#' min_vals <- pmin(y, apply(yrep, 2, min))
63+
#' left_truncation_y <- rep(0, length(y))
6264
#' condition <- y > mean(y) / 2
6365
#' left_truncation_y[condition] <- pmin(
6466
#' runif(sum(condition), min = 0.6, max = 0.99) * y[condition],

0 commit comments

Comments
 (0)