Last chance! 50% off unlimited learning
Sale ends in
Computes the randomized response estimation, its variance estimation and its confidence interval through the Mangat-Singh model. The function can also return the transformed variable. The Mangat-Singh model was proposed by Mangat and Singh in 1990.
MangatSingh(z,p,t,pi,type=c("total","mean"),cl,N=NULL,pij=NULL)
vector of the observed variable; its length is equal to
proportion of marked cards with the sensitive attribute in the second box
proportion of marked cards with "True" in the first box
vector of the first-order inclusion probabilities
the estimator type: total or mean
confidence level
size of the population. By default it is NULL
matrix of the second-order inclusion probabilities. By default it is NULL
Point and confidence estimates of the sensitive characteristics using the Mangat-Singh model. The transformed variable is also reported, if required.
In the Mangat-Singh model, the sampled person is offered two boxes of cards. In the first box a known proportion
Mangat, N.S., Singh, R. (1990). An alternative randomized response procedure. Biometrika, 77, 439-442.
# NOT RUN {
N=802
data(MangatSinghData)
dat=with(MangatSinghData,data.frame(z,Pi))
p=0.7
t=0.55
cl=0.95
MangatSingh(dat$z,p,t,dat$Pi,"mean",cl,N)
# }
Run the code above in your browser using DataLab