The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Merging data files » Merging DHS data in Stata
Re: Merging DHS data in Stata [message #11207 is a reply to message #11183] Thu, 17 November 2016 16:53 Go to previous messageGo to previous message
jack.murphy is currently offline  jack.murphy
Messages: 10
Registered: September 2016
Location: USA
Member

Brilliant, this worked! Thank you for your help.

I have another question regarding using svyset for master dataset created by appending multiple countries together. I generated a variable for each country (called "country_ID" with strings for the names of each country included). Then I used the dropdown menus to make a 2-stage svyset codeline with country_ID as the higher level strata variable and stratumid (from your earlier post) as the lower level strata variable. Here is my code:

svyset v001 [pweight=hiv05], strata(country_ID) vce(linearized) singleunit(centered) || v001, strata(stratumid)

Is this accurate?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to match women to their husbands
Next Topic: Merging HR and PR Files
Goto Forum:
  


Current Time: Thu Dec 26 09:04:44 Coordinated Universal Time 2024