twostage(time, delta, group, nboot, alpha = 0.05, eps = 0.1)"numeric". Must be nonnegative.
Failure time or censoring time."numeric" of the same length
as time. Must be zero or one. One indicates failure,
zero indicates censored."numeric" of the same length
as time. Must be zero or one. One indicates treatment group,
zero indicates control group."LRPV": p-value of the log-rank test,
"MTPV": p-value of the suggested stage-II test,
"TSPV": p-value of the two-stage test.library(TSHRC)
data(rats)
attach(rats)
twostage(time, delta, group, nboot = 100)Run the code above in your browser using DataLab