Re: Strata Computation for Survey Sampling Weighting [message #4293 is a reply to message #4257] |
Fri, 01 May 2015 11:52 |
Liz-DHS
Messages: 1516 Registered: February 2013
|
Senior Member |
|
|
Dear User,
Here is a response from one of our experts, Dr. Tom Pullum:
Quote:In the Nigeria 2013 survey, the strata in the IR file would be determined by EITHER "gen strata=v023" OR "egen strata=group(sstate v025)". That is, v023 will match exactly with group(sstate v025).
In the PR file, you would replace v023 with hv023 and sstate with shstate.
You are correct that usually v023 will match with group(v024 v025), but in the Nigeria survey v024 gives region and shstate gives state, and the strata are the urban and rural sectors of the states, rather than the regions.
Note that "group" requires "egen" rather than "gen". You omitted the "e".
Otherwise your command is correct. However, you do not need to divide v005 by 1000000. You can do it if you want, but the weights that go with svyset are pweights, and those weights are always normalized internally to have a mean of 1. I suggest that you do a model with "gen weight=v005" and then re-run it with "gen weight=v005/1000000". The results should agree exactly. But note that only pweights are automatically normalized this way; aweights, fweights, and iweights are not normalized.
Thank you for your post.
|
|
|