You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary
It would be great if ppc_km_overlay() could accomodate left-truncation when computing the Kaplan-Meier functions for the original sample and for the simulated data from the PPD, and not only right-censoring.
Would you consider adding a truncation_y (?) argument to ppc_km_overlay() to pass the left-truncation variable in the original sample to survival::Surv()?
Example
Weibull survival times, observed conditionally on truncation times.
Standard plot produced by ppc_km_overlay() together with KM estimates that take into account left-truncation (red, solid line) and true survival curve (black, dashed line) for the original sample (note that the ppc_km_overlay()'s KM curves for the simulated PPD data ignore truncation too, but the underlying simulated times via brms::posterior_predict() are conditional on the observed truncation times).
Summary
It would be great if
ppc_km_overlay()
could accomodate left-truncation when computing the Kaplan-Meier functions for the original sample and for the simulated data from the PPD, and not only right-censoring.Would you consider adding a
truncation_y
(?) argument toppc_km_overlay()
to pass the left-truncation variable in the original sample tosurvival::Surv()
?Example
Weibull survival times, observed conditionally on truncation times.
Standard plot produced by
ppc_km_overlay()
together with KM estimates that take into account left-truncation (red, solid line) and true survival curve (black, dashed line) for the original sample (note that theppc_km_overlay()
's KM curves for the simulated PPD data ignore truncation too, but the underlying simulated times viabrms::posterior_predict()
are conditional on the observed truncation times).The text was updated successfully, but these errors were encountered: