# NOT RUN {
#get dataset from package
data(crossdata)
#just for an example, we set resampling times at 10
#overall test
ABC.perm(crossdata$time, crossdata$status, crossdata$group, nperm=10)
#arbitary test for detecting difference after 2 years
ABC.perm(crossdata$time, crossdata$status, crossdata$group, t0=2, tau=NULL, nperm=10)
#arbitary test for detecting difference between 2 years and 4 years
ABC.perm(crossdata$time, crossdata$status, crossdata$group, t0=2, tau=4, nperm=10)
# }
Run the code above in your browser using DataLab