Skip to contents

CohortSizeConst 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 just max_size. Please add the corresponding stop rule in the design so that the trial will indeed actually stop when the max_size is reached.

Usage

CohortSizeConst2(size, max_size)

Arguments

size

integer, cohort size

max_size

maximum allowed sample size in the trial. Used for adjusting the size of the last cohort so that the full sample size will be just max_size. Please add the corresponding stop rule in the design so that the trial will stop when the max_size is 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.