futilityFunction: futilityFunction

Description Usage Arguments Details Value

Description

Function to determine if treatments are futile.

Usage

1
2
futilityFunction(probs, Cohort, StudyObj,
  minFutProb = StudyObj$StudyDesignSettings$MinimumFutilityProbability)

Arguments

probs

The current randomization probabilities after having taken the minimum randomisation probabilities into account.

Cohort

A FAIRsimulator cohort object

StudyObj

A FAIRsimulator study object

minSubj

The cutoff for the number of subjects expected to be randomised to a treatment.

Details

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.

Value

A List with vector of updated probabilities and futility used (TRUE/FALSE)


eniclas/FAIRsimulator documentation built on May 16, 2019, 5:12 a.m.