The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » HIV » Reweighting after merging IR and AR files
Re: Reweighting after merging IR and AR files [message #24324 is a reply to message #24318] Fri, 22 April 2022 08:49 Go to previous messageGo to previous message
Janet-DHS is currently offline  Janet-DHS
Messages: 901
Registered: April 2022
Senior Member
Following is response from DHS Research & Data Analysis Director, Tom Pullum:

I don't understand your reference to hv005. This must be a typo and you are referring to hiv05, the weight in the AR file. I assume you are using either the fertility rates program on GitHub or Bruno Schoumaker's "tfr2" program. If you want to get the rates for a subpopulation, such as women who are HIV positive, the easiest way is to construct a data file for just that subpopulation, and run the program.

To get the TFR for all women, you would not use the merged IR/AR file. Just use the IR file with v005 as the weight. To get the TFR for women who are HIV positive, you do the merge, restrict to women with hiv03=1, set hiv05 as the weight variable, and run the program. If you want the TFR for women who are in the AR file, regardless of their test result (I'm not sure why you would want this), you do the merge, restrict to women with _merge==3, set hiv05 as the weight variable, and run the program. You can also (if needed) get the TFR for women in the AR file with hiv03=0 using hiv05 or women who are in the IR file but not the AR file with v005. What's crucial is that the weight is hiv05 for respondents in the AR file. Please let us know if this does not answer your question.
 
Read Message
Read Message
Read Message
Previous Topic: HIV Testing
Next Topic: How to treat missing data in analysis
Goto Forum:
  


Current Time: Fri Dec 13 09:23:24 Coordinated Universal Time 2024