svyPVlevel
function. It discretizes the plausible values to a dichotomous variable and estimates the proportion of population totals above and below the benchmark within the comitted groups (by statement).
svyPVbenchmark(by, svydat, pvs, BENCH=NA, colN=FALSE)
svydesign
as well as svrepdesign
) which was generated by the survey
package. To figure out how to create a survey design object, please read the help files for the survey
package.
svydat
.
by
. The kth group column contains the benchmark variable.Saerndal, C.-E. & Swensson, B. & Wretman, J. (1992). Model Assisted Survey Sampling. New York: Springer.
Chaudhuri, A. & Stenger, H. (2005). Survey Sampling. Theory and Methods. Boka Raton, FL: Chapman & Hall/CRC.
svyPVlevel
data(svy_example1)
erg_ben <- svyPVbenchmark(by = ~ sex, svydat=svy.exrep,
pvs=c("plaus1","plaus2","plaus3"), BENCH=320)
erg_ben
Run the code above in your browser using DataLab