| rarPar {randomizeR} | R Documentation |
Representing Random Allocation Rule
Description
Represents the randomization procedure Random Allocation Rule.
Usage
rarPar(N, K = 2, ratio = rep(1, K), groups = LETTERS[1:K])
Arguments
N |
integer for the total sample size of the trial. |
K |
number of treatment groups (e.g. K=2 if we compare one experimental against one control treatment). |
ratio |
vector of length |
groups |
character vector of labels for the different treatments. |
Details
Fix a total sample size N the number of treatment groups K,
and the vector of the ratio. Afterwards, all patients are assigned
according to the ratio to the corresponding treatment groups.
All randomization sequences are equiprobable.
Value
S4 object of the class rarPar.
References
W. F. Rosenberger and J. M. Lachin (2002) Randomization in Clinical Trials. Wiley.
See Also
Other randomization procedures:
abcdPar,
bbcdPar,
bsdPar,
chenPar,
crPar,
createParam(),
ebcPar,
gbcdPar,
hadaPar,
mpPar,
pbrPar,
rpbrPar,
rtbdPar,
tbdPar,
udPar