In the three stage design under consideration, the groups are nested with assumed prevalences and fixed total sample size at each stage. This function returns the sample size for a specified group at a given stage, where the futility stage for the overall group test may be specified along with the chosen subgroup.
groupSampleSize(
prevalence,
N,
stage,
group,
HJFutileAtStage = NA,
chosenGroup = NA
)
the sample size for group
the vector of prevalence, will be normalized if not already so. The length of this vector implicitly indicates the number of groups J.
an integer vector of length 3 indicating total sample size at each of the three stages
the stage of the trial
the group whose sample size is desired
is the stage at which overall futility
occured. Default NA
indicating it did not occur. Also
ignored if stage is 1.
the selected group if HJFutilityAtStage is not
NA
. Ignored if stage is 1.