R/Sstar_func_perc.R

Defines functions Sstar_func_perc

Documented in Sstar_func_perc

#' Difference between survival function and a given percentile
#'
#' @description Given a percentile perc, returns the difference between this percentile and the value of survival function
#' Useful for uniroot function
#' 
#' @export 
#' @keywords internal 
#'
#'


Sstar_func_perc <- function(z,perc,...) Sstar(x=z,...) - perc

Try the CompAREdesign package in your browser

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

CompAREdesign documentation built on Oct. 2, 2022, 5:08 p.m.