Getting started with dapper: randomized response
Prepare the data and privacy mechanism | Specify the four model components | Generate latent data: latent_f(theta) | Update the parameters: posterior_f(dmat, theta) | Summarize one record: statistic_f(xi, sdp, i) | Evaluate the privacy likelihood: mechanism_f(sdp, sx) | Run the sampler and inspect the output | Estimate the odds ratio | Compare with analyses that omit the privacy mechanism | References