SM: Sample size in terms of number of subjects in the experimental group
Description
Calculates the total number of subjects for the experimental group using the total number of events(d2max:the output from design functions) and the estimated failure probability based on the person level historical control data and proportional hazard assumption.
Usage
SM(time, event, d2max, opt = "KM", event_ind, ta, tf, delta)
Value
Returns the value of sample size.
Arguments
time
event time vector from person level historical control data.
event
numeric vector indicating the status of event from person level historical control data.
d2max
maximum number of events in the experimental group calculated from the design function.
opt
the method of fitting survival curve-"log_normal" or "KM" (log-normal or Kaplan Meier). Default is "KM".
event_ind
numeric value indicating the occurrence of event.
ta
enrollment time.
tf
follow-up time.
delta
hazard ratio.
Author
Tushar Patni, Yimei Li, Jianrong Wu, and Arzu Onar-Thomas.