The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » HIV » weights for ttest
Re: weights for ttest [message #1675 is a reply to message #1674] Wed, 26 March 2014 17:59 Go to previous messageGo to previous message
Reduced-For(u)m
Messages: 292
Registered: March 2013
Senior Member

Here's one option. Append the two files together. Make separate strata/PSU variables for each survey, and a dummy variable indicating the later survey. Then:

svy: reg HIVOutcome Survey2011

The coefficient on Survey2011 should be the thing you are interested in, assuming you have a continuous measure of some sort. If you want to compare categories it gets a bit trickier, but basically by appending the surveys and using a regression with a dummy for later survey you should be able to use weights and appropriate standard error calculations.

*Note: there is some disagreement here about how to use weights in multiple survey rounds. Weights as given sum to sample size, so I usually standardize weights by survey round (divide the given weight by the sum of weights for that survey round) so that each survey has equal total weight, but that is a preference and shouldn't matter too much.

That sufficient?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Proportion of samples that have had their HIV results discordant in Burundi DHS 2010
Next Topic: HIV Knowledge and Perception of Risk
Goto Forum:
  


Current Time: Wed Aug 7 18:23:28 Coordinated Universal Time 2024