lrSS(HR, alpha = 0.1, beta = 0.2, p = 0.5, Sp, tp, mtp, a, f)
Sp
, tp
, mtp
a
or f
are missing,
will return the number of subjects required (with no prior information).
Otherwise, returns a list
with the following values:
[object Object],[object Object],[object Object]btumors
lrSS(HR=1.3, alpha=0.05)
data(btumors)
m1 <- mean(rep(btumors[,"ms"],btumors[,"n"]))
lrSS(HR=1.5, Sp=c(0.43, 0.2, 0.11), tp=c(1, 2, 3), mtp=m1, a=2, f=1)
Run the code above in your browser using DataLab