The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Domestic Violence » How to control for the year of sample (How to model data structure)
Re: How to control for the year of sample [message #21927 is a reply to message #21924] Fri, 08 January 2021 07:47 Go to previous messageGo to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3199
Registered: February 2013
Senior Member

Following is a response from DHS Research & Data Analysis Director, Tom Pullum:

For each survey you can construct "stratumid" using whatever was specific to that survey. Then for the pooled file, "egen stratumid_all=group(stratumid survey)".

The clusterid is v021 (=v001) in each survey. You would have a separate command such as "egen clusterid_all=group(v021 survey)".

Then in the svyset command you put "clusterid_all" and "stratumid_all" in the appropriate position. Of course, the names you give these ID codes is up to you.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Changes in the Domestic Violence Module
Next Topic: Matching the total for SADHS domestic violence
Goto Forum:
  


Current Time: Sat Nov 30 14:47:09 Coordinated Universal Time 2024