Hello, I need to calibrate a survey using raking. I already declared the complex design here:
des_survey <- svydesign(id= ~idd, strata= ~strata, data = datos, weights = ~ft, check.strata=TRUE ) options(survey.lonely.psu = "remove") options(digits = 10) However, when I run the rake process, the tabulates using the original weights and the calibrated doesn't match to the population marginals I declared. des_surveyR <- rake(diseƱo, ~region, ~pop.region) The population marginals is only one. Region is the variable. The data frame pop.region containes the total to calibrate. Can you guide me in order to calibrate? [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.