updateProbs: updateProbs

Description Usage Arguments Details Value

Description

Updates a vector of probabilties so that one or more of the probabilities are of at least a certain size.

Usage

1
2
updateProbs(StudyObj, probs, Cohort,
  minProb = Cohort$MinAllocationProbabilities)

Arguments

StudyObj

A FAIRsimulator study object

probs

A vector of probabilities to be adjusted. The vector sum does not have to be 1.

Cohort

A FAIRsimulator cohort object

minProb

A vector of the same length as probs with the minimum values.

Details

Typically used to ensure that standard of care always have a certain randomisation probability.

Value

A vector of probabilties in which the minimum probabilties are honored and the remaining probabilities are adjusted so that the vector sum is 1.


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