resolve_target_surv: Normalise a 'target_surv' argument

View source: R/derive_tdt.R

resolve_target_survR Documentation

Normalise a target_surv argument

Description

Accepts the user-facing argument (string "relative"/"absolute" or numeric in ⁠(0, 1)⁠) and returns a list describing the chosen threshold mode plus a character label suitable for embedding in result tibbles.

Usage

resolve_target_surv(target_surv)

Details

  • "relative" (default) → threshold = (low + up)/2 per posterior draw. The 4PL mid parameter is the log10-time at this threshold, so no numerical inversion is needed.

  • "absolute" → threshold = 0.5 (literal survival probability).

  • numeric p in ⁠(0, 1)⁠ → threshold = p (literal survival probability).


bayesTLS documentation built on Nov. 29, 2026, 1:06 a.m.