tests/tests.R

## The following gave an error for versions<1.2.7
## there was a problem if all the censoring happended 
## at times where there was also failures
library(bpcp)
x<-c(1,1,2,3)
status<-c(0,1,1,1)
plot(c(0,5),c(0,1),type="n")
## also the default color for the survival line in 
## lines.kmciLR was white...gray(1), 
## it should be black...gray(0) 
lines(bpcp(x,status),linetype="surv")

Try the bpcp package in your browser

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

bpcp documentation built on Dec. 7, 2019, 9:06 a.m.