capacity: Scheduling interim analyses in clinical trials
Description
Function capacity calculates the maximum number of enrollments for a recruitment in scenario 4.
Usage
capacity(nc, ns, sf)
Arguments
nc
maximum number of centers to be opened.
ns
maximum number of patients to be screened within each center.
sf
screening failure rate.
Value
The maximum number of patients that can be enrolled.
Details
capacity is an auxilliary function to determine the maximum number of patients that can be enrolled
in the scenario where only a limited number of centers is available and each center only has a limited number
of patients that can be enrolled.