R/trigger_label.R

Defines functions .trigger_label

#' Description of the triggers of the looks
#'
#' @param trigger Triggers (\code{"os"}, \code{"pfs"} or \code{"calendar"}).
#' @return A character string such as \code{"OS events"} or
#'   \code{"PFS events and calendar time"}.
#' @noRd
.trigger_label <- function(trigger) {
  lab <- ifelse(trigger == "calendar", "calendar time", paste(toupper(trigger), "events"))
  paste(unique(lab), collapse = " and ")
}

Try the DesignComplexSurvival package in your browser

Any scripts or data that you put into this service are public.

DesignComplexSurvival documentation built on Nov. 23, 2026, 5:07 p.m.