Sample Size Calculation
ssize_D.Rd
Sample size calculation using model-based discrimination measure.
Usage
ssize_D(
fit,
D = NULL,
cens = NULL,
p = 0.1,
alpha = 0.05,
power = 0.8,
delta = 0.25,
trial = c("superiority", "non-inferiority")
)
Arguments
- fit
an object fit of class
coxph
- D
discrimination measure D, defaults to output of
survival::royston()
forfit
- cens
censoring proportion, defaults to proportion calculated from
fit
- p
proportion of
D
accepted asdelta
, defaults to 10%.- alpha
Type I error
- power
statistical power (1 - Type II error)
- delta
superiority/non-inferiority margin. The difference we wish to detect between a prior model and a new model.
- trial
either "superiority" or "non-inferiority"