R/genfrail.control.R

Defines functions genfrail.control

Documented in genfrail.control

genfrail.control <- function(censor.reltol = 1e-4,
                             censor.subdivisions = 1000L,
                             crowther.reltol = 1e-4,
                             crowther.subdivisions = 1000L
                             ) {
  
  if (censor.reltol < 0) 
    stop ("Invalid censor relative tolerance")
  if (censor.subdivisions < 0) 
    stop ("Invalid censor subdivisions")
  if (crowther.reltol < 0) 
    stop("Invalid Crowther relative tolerance")
  if (crowther.subdivisions < 0) 
    stop ("Invalid Crowther integration subdivisions")
  
  list(censor.reltol=censor.reltol,
       censor.subdivisions=censor.subdivisions,
       crowther.reltol=crowther.reltol,
       crowther.subdivisions=crowther.subdivisions
       )
}

Try the frailtySurv package in your browser

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

frailtySurv documentation built on Aug. 14, 2023, 1:06 a.m.