Create a randomized response design
Produces a (forced) randomized response design that measures the share of individuals with a given trait
prevalence_trait in a population of size
N. Probability of forced response ("Yes") is given by
prob_forced_yes, and rate at which individuals with trait lie is given by
randomized_response_designer(N = 1000, prob_forced_yes = 0.6, prevalence_rate = 0.1, withholding_rate = 0.5)
An integer. Size of sample.
A number in [0,1]. Probability of a forced yes.
A number in [0,1]. Probability that individual has the sensitive trait.
A number in [0,1]. Probability that an individual with the sensitive trait hides it.
A randomized response design.
randomized_response_designer employs a specific variation of randomized response designs in which respondents are required to report a fixed answer to the sensitive question with a given probability (see Blair, Imai, and Zhou (2015) for alternative applications and estimation strategies).
See vignette online.
# Generate a randomized response design using default arguments: randomized_response_design <- randomized_response_designer()