x <- rbinom(200,1,0.5) lambda <- exp(0.5*x) y <- rexp(200,lambda) c <- runif(200,0,3) test <- list(time=pmin(y,c),status=as.numeric(c