- n
sample size of generated data
- pi.true
true proportion in population (a vector for m-categorical
"FR" or "custom" model)
- model
specifes the RR model, one of: "Warner",
"UQTknown", "UQTunknown", "Mangat", "Kuk",
"FR", "Crosswise", "Triangular", "CDM",
"CDMsym", "SLD", "mix.norm", "mix.exp",
"custom". See vignette("RRreg") for details.
- p
randomization probability (depending on model, see
RRuni for details)
- complyRates
vector with two values giving the proportions of carriers
and non-carriers who adhere to the instructions, respectively
- sysBias
probability of responding 'yes' (coded as 1) in case of
non-compliance for carriers and non-carriers of the sensitive attribute,
respectively. If sysBias=c(0,0), carriers and non-carriers
systematically give the nonsensitive response 'no' (also known as
self-protective(SP)-'no' responses). If sysBias=c(0,0.5), carriers
always respond 'no' whereas non-carriers randomly select a response
category. Note that sysBias = c(0.5,0.5) might be the best choice
for Kuk and Crosswise. For the m-categorical "FR" or
"custom" model, sysBias can be given as a probability vector
for categories 0 to (m-1).
- groupRatio
proportion of participants in group 1. Only required for
two-group models, e.g., SLD and CDM
- Kukrep
Number of repetitions of Kuk's procedure (how often red and
black cards are drawn)
- trueState
optional vector containing true states of participants
(i.e., 1 for carriers and 0 for noncarriers of sensitive attribute; for
FR: values from 0,1,...,M-1 (M = number of response categories)
which will be randomized according to the defined procedure (if specified,
n and pi.true are ignored)