Description Usage Arguments Details Value
Function to determine if treatments are futile.
1 2 | futilityFunction(probs, Cohort, StudyObj,
minFutProb = StudyObj$StudyDesignSettings$MinimumFutilityProbability)
|
probs |
The current randomization probabilities after having taken the minimum randomisation probabilities into account. |
Cohort |
A FAIRsimulator |
StudyObj |
A FAIRsimulator |
minSubj |
The cutoff for the number of subjects expected to be randomised to a treatment. |
The function checks the expected number of subjects to be randomised to a particular treatment given the probabilities in probs
. Any treatment that has an expected number of subjects
lower than or equal to minSubj
will have their randomisation probabilitiy set to 0. The remaining probabilities will be adjusted to add up to 1.
A List with vector of updated probabilities and futility used (TRUE/FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.