Computes the randomized response estimation, its variance estimation and its confidence interval through the BarLev model.
The function can also return the transformed variable.
The BarLev model was proposed by Bar-Lev et al. in 2004.
vector of the observed variable; its length is equal to \(n\) (the sample size)
p
probability of direct response
mu
mean of the scramble variable \(S\)
sigma
standard deviation of the scramble variable \(S\)
pi
vector of the first-order inclusion probabilities
type
the estimator type: total or mean
cl
confidence level
N
size of the population. By default it is NULL
pij
matrix of the second-order inclusion probabilities. By default it is NULL
Value
Point and confidence estimates of the sensitive characteristics using the BarLev model. The transformed variable is also reported, if required.
Details
The randomized response given by the person \(i\) is
$$z_i=\left\{\begin{array}{lcc}
y_i & \textrm{with probability } p\\
y_iS & \textrm{with probability } 1-p\\
\end{array}
\right.$$
where \(S\) is a scramble variable, whose mean \(\mu\) and standard deviation \(\sigma\) are known.
References
Bar-Lev S.K., Bobovitch, E., Boukai, B. (2004).
A note on randomized response models for quantitative data.
Metrika, 60, 255-260.