N <- 300
set.seed(12345)
itime <- sort(c(rexp(N-1), 0.5) ) #### inspection times
Stime <- rexp(N) #### survival times
delta <- as.numeric(Stime <= itime) #### current status censoring
el.CS.prob( ti=itime, di=delta, t0=0.5, Ft0=pexp(0.5) )
#### You should get
## $`-2LLR`
## [1] 1.867655 #### and more.
Run the code above in your browser using DataLab