R/survw_derivf.R

Defines functions survw_derivf

Documented in survw_derivf

#' Derivative Weibull survival function
#'
#' @description The function `survw_derivf` computes the derivative of the survival distribution  `survw_f`.
#'
#'
#' @param t time
#' @param ascale scale parameter for the Weibull distribution
#' @param bshape shape parameter for the Weibull distribution
#'
#'
#' @export
#' @keywords internal
#' @return derivative
#' @author Marta Bofill Roig
#'
survw_derivf <- function(t,ascale,bshape=1){
  return(-bshape*(t/ascale)^bshape*exp(-(t/ascale)^bshape)/t)
}

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.