# NOT RUN {
data(Rdata)
Scheme=c('Scheme.1','Scheme.2','Scheme.3')
Covar=c('Age','Treatment')
weight=c(1,1,0.5,0.5,1)
Order=list(c('I','II','III'),c('I','II','III','IV'),c('I','II','III','IV'))
rank(os='OS',ostime='survmonth',groupvar='Basic_group', scheme=Scheme, order=Order,
covariate=Covar,weight=weight,data=Rdata)
# }
Run the code above in your browser using DataLab