The package RRreg provides univariate and multivariate methods for randomized response (RR) survey designs (e.g., Warner, 1965). Univariate estimates of true proportions can be obtained using RRuni. RR variables can be used in multivariate analyses for correlations (RRcor), as dependent variable in a logistic regression (RRlog) and as predictors in a linear regression (RRlin). The function RRgen generates single RR data sets, whereas RRsimu generates and analyzes RR data repeatedly for simulation and bootstrap purposes.
The package can be downloaded from CRAN by typing
install.packages("RRreg") in an active R session.
To get the most recent version,
RRreg can also directly be installed from GitHub by:
# install.packages("devtools") devtools::install_github("danheck/RRreg")
The manual is available within R by typing
If you use
RRreg in publications, please cite the package as follows:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.