I am trying to help a student who is trying to work with the 2009 Kenya Census data. Both of us have downloaded the data from IPUMS, as well as the report produced by Kenya’s Census bureau. The bureau’s PDF shows total population of 38,610,097 , of which, 19,192,458 were males while 19,417,639 wee females.
When I weight the data with PERWT, my counts are slightly lower: Total = 38,419,350, of which, male = 19,046,170 and female = 19,373,180.
I am weighting the data in R (code shown below). What am I doing wrong?
ids = 1,
weights = PERWT,
nest = TRUE
) → ky09
Thanks for any insights anyone has into my undercounts.