R/survw_f.R

Defines functions survw_f

Documented in survw_f

#' Weibull survival function
#'
#' @description The function `survw_f` computes the Weibull survival function.
#'
#'
#' @param t time
#' @param ascale scale parameter for the Weibull distribution
#' @param bshape shape parameter for the Weibull distribution
#'
#'
#' @export
#' @keywords internal
#' @return survival function
#' @author Marta Bofill Roig
#'

#'
survw_f <- function(t,ascale,bshape){
  return(exp(-(t/ascale)^bshape))
}

Try the survmixer package in your browser

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

survmixer documentation built on March 31, 2021, 9:08 a.m.