Survey package: using subset option with svyrepdesign
Hi. I'm using American Housing Survey (AHS) data with replicate weights. I want subpopulation estimates. When I try to subset the survey design, I get an error message. I don't get the error message when not using the replicate weights (using the regular svydesign function). Any help would be appreciated. My code and error message are below.
dsn <- svrepdesign(weights=~wgt90geo,repweights=~repwgt,type="Fay",data=temp2,combined.weights=TRUE,rho=.5) dsub <- subset(dsn,subpop==TRUE)
Error in x$variables[i, , drop = FALSE] : incorrect number of dimensions Thanks, Brent Mast HUD -- View this message in context: http://r.789695.n4.nabble.com/Survey-package-using-subset-option-with-svyrepdesign-tp4639802.html Sent from the R help mailing list archive at Nabble.com.