svyPVpm(by, svydat, pvs, colN=FALSE)survey package.
svydat.
All variables, including the subsetting ones defined with by, must be part of the survey design object.
Missing values are deleted listwise.
Note that '.' is not allowed as part of the level string of a by variable. For example c("1.thing","2.thing") is not allowed and will cause a error message.
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.
svyPVglm
svyPVprob
data(svy_example1)
erg_pm <- svyPVpm(by = ~ sex, svydat=svy.exrep, pvs=c("plaus1","plaus2","plaus3"))
erg_pm
Run the code above in your browser using DataLab