The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset use in Stata » command for Cluster Average of Women's employment
Re: command for Cluster Average of Women's employment [message #27296 is a reply to message #27261] Thu, 13 July 2023 12:49 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 Senior DHS staff member, Tom Pullum:

In Stata you can calculate a cluster-level mean with an "egen" command. For example, you could calculate the cluster-specific mean of v201 (children ever born) for all the women in a cluster using "egen v201_mean=mean(v201), by(v001)". This can be modified to construct a woman-specific variable that omits the woman herself from the calculation. Alternatively, the difference (the cluster mean minus the woman's value) will be statistically independent of the cluster mean.

Questions about instrumental variables are outside the scope of the assistance that DHS staff will provide.

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Setting the Data for Survey Analysis-Stata
Next Topic: stunting calculation
Goto Forum:
  


Current Time: Tue Nov 26 20:48:09 Coordinated Universal Time 2024