MULTILEVEL WEIGHT FOR DOMESTIC VIOLENCE MODULE [message #30582] |
Wed, 01 January 2025 22:25 |
wavogo
Messages: 14 Registered: December 2015 Location: Normal, Illinois
|
Member |
|
|
Dear DHS,
I am working on empowerment and Intimate Partner Violence (IPV) and have appended data from nine countries in West Africa (Benin, Burkina-Faso, Ivory Coast, Gambia, Ghana, Mali, Nigeria, Liberia, and Sierra Leone) that conducted the domestic violence module. As recommended, I used DHS coding to account for complex survey design as follows by setting up the svyset command in each country before appending.
**Set up weights
**Add PSU variable
gen psu = v021
**Add strata variable
egen strata=group(v025 v024)
**Generate weight and all-woman weight to use for ever-married samples
gen wt=d005/1000000
svyset [pweight=wt], psu(v021) strata(v023) singleunit(centered)
However, I am interested in multi-level logistic regression models of IPV experiences.
Level-1 (individual-level) and Level-2 (cluster-level) weights by de-normalizing the weights and creating adjusted weights based on a specific normalization factor.
I have used the recommended code in https://www.dhsprogram.com/pubs/pdf/MR27/MR27.pdf that was posted in the DHS forum by Bridgette-DHS on Friday, October 29, 2021 at 15:42 but get errors e.g. "gen d_HH = DHSwt * (M/m_c)
m_c not found"
Can you please help me figure out what I need to correctly run this code to create the level weights?
Thank you so much and standing by to clarify my challenges if you have questions.
|
|
|