Christofides {RRTCS} | R Documentation |
Christofides model
Description
Computes the randomized response estimation, its variance estimation and its confidence interval through the Christofides model. The function can also return the transformed variable. The Christofides model was proposed by Christofides in 2003.
Usage
Christofides(z,mm,pm,pi,type=c("total","mean"),cl,N=NULL,pij=NULL)
Arguments
z |
vector of the observed variable; its length is equal to |
mm |
vector with the marks of the cards |
pm |
vector with the probabilities of previous marks |
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 |
Details
In the Christofides randomized response technique, a sampled person is given a box with identical cards, each bearing a separate mark as
with
but in known proportions
with
for
and
. The person sampled is requested to draw one of the cards and respond
The transformed variable is where
and the estimated variance is
, where
.
Value
Point and confidence estimates of the sensitive characteristics using the Christofides model. The transformed variable is also reported, if required.
References
Christofides, T.C. (2003). A generalized randomized response technique. Metrika, 57, 195-200.
See Also
Examples
N=802
data(ChristofidesData)
dat=with(ChristofidesData,data.frame(z,Pi))
mm=c(1,2,3,4,5)
pm=c(0.1,0.2,0.3,0.2,0.2)
cl=0.95
Christofides(dat$z,mm,pm,dat$Pi,"mean",cl,N)