The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Weighting data » Weights for analysis of HIV+/HIV- urban and rural populations
Re: Weights for analysis of HIV+/HIV- urban and rural populations [message #13098 is a reply to message #13083] Wed, 20 September 2017 08:09 Go to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3107
Registered: February 2013
Senior Member
Following is a response from Senior DHS Stata Specialist, Tom Pullum:


I assume you are using Stata with pweights and svyset. The weight can be hiv05 or hiv05/1000000. You will get exactly the same results with either one.

If you want to restrict an analysis to a sub population, then you can do it by including, at the end of the estimation command, something like "if hiv03==0". However, it would be better to construct a variable that is 1 for this subpopulation, e.g. "gen hivneg=1 if hiv03==0" and then put "svy, subpop(hivneg): " in front of (on the same line as) the estimation command. There are good reasons for using the subpop option with svy, even though (in some checks I have done) it produces almost exactly the same results as the "if" command.

Perhaps another alternative would be to include hiv03 as a covariate on the right hand side of the model. If its coefficient is not significant, then you don't need hiv03 in the model. You have to be sure to take account of any values of hiv03 other than 0 and 1. Note that if hiv03 is NA (that is, ".") then hiv05 will be too.

 
Read Message
Read Message
Read Message
Previous Topic: weighting in chi-square test?
Next Topic: When to use iweight and pweight in stata
Goto Forum:
  


Current Time: Wed Jul 10 19:31:16 Coordinated Universal Time 2024