A modified crmPack::CohortSizeConst() class.
CohortSizeConst2.RdCohortSizeConst is based on crmPack::CohortSizeConst() with the
modifications:
If the recommend cohort size will make the full sample size exceeds what is specified in
max_size, the cohort size of this cohort will be adjusted (actually decreased) so that the full sample size in the trial will be justmax_size. Please add the corresponding stop rule in the design so that the trial will indeed actually stop when themax_sizeis reached.
Details
The recommended cohort size will be size as long as this will not make the
full sample size after this cohort exceeds max_size. Otherwise
max_size - curren_sample_size will be proposed.