som {FSM} | R Documentation |
Selection Order Matrix (SOM)
Description
Generates a Selection Order Matrix (SOM) in a deterministic/random manner.
Usage
som(
data_frame = NULL,
n_treat,
treat_sizes,
include_discard = FALSE,
method = "SCOMARS",
control = FALSE,
marginal_treat = NULL
)
Arguments
data_frame |
A (optional) data frame corresponding to the full sample of units.
Required if |
n_treat |
Number of treatment groups. |
treat_sizes |
A vector of treatment group sizes. If |
include_discard |
|
method |
Specifies the selection strategy used among |
control |
If |
marginal_treat |
A vector of marginal probabilities, the jth element being the probability that treatment group
(or treatment group 2 in case |
Value
A data frame containing the selection order of treatments, i.e. the labels of treatment groups
at each stage of selection. If method = 'SCOMARS'
, the data frame contains an additional column of
the conditional selection probabilities.
Author(s)
Ambarish Chattopadhyay, Carl N. Morris and Jose R. Zubizarreta.
References
Chattopadhyay, A., Morris, C. N., and Zubizarreta, J. R. (2020),
“Randomized and Balanced Allocation of Units into Treatment Groups Using the Finite Selection Model for R
”.
Morris, C. (1983), “Sequentially controlled Markovian random sampling (SCOMARS)”, Institute of Mathematical Statistics Bulletin,12(5), 237.
Examples
# Generate an SOM with N = 12, n1 = n2 = 6.
som_sample = som(data_frame = NULL, n_treat = 2, treat_sizes = c(6,6), include_discard = FALSE,
method = 'SCOMARS', control = FALSE, marginal_treat = rep(6/12,12))