# NOT RUN {
#--- time-to-event distribution: exponential, censoring distribution: None
out1<- StabCat.surv(data=lung, timevar="time", censorvar="status", splitvar="sex", event.ind=2)
out1$pval
#--- time-to-event distribution: weibull, censoring distribution: None
StabCat.surv(data=lung, timevar="time", censorvar="status", splitvar="sex",
time.dist="weibull", event.ind=2)
#--- time-to-event distribution: weibull, censoring distribution: exponential
StabCat.surv(data=lung, timevar="time", censorvar="status", splitvar="sex",
time.dist="weibull", cens.dist="exponential", event.ind=2)
# }
Run the code above in your browser using DataLab