R/CumInt.R

Defines functions CumInt

Documented in CumInt

CumInt <-
function(x,int,...){
  fn <- function(x)
    integrate(function(u)sapply(u,int),subdivisions=1000,lower=0,upper=x,...)$val
  sapply(x,fn)
}

Try the coxsei package in your browser

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

coxsei documentation built on Feb. 8, 2020, 9:07 a.m.