The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Domestic Violence » Multilevel modeling with svy and domestic violence weights (How to best apply level 1 and level 2 weights)
Re: Multilevel modeling with svy and domestic violence weights [message #23670 is a reply to message #23657] Fri, 29 October 2021 15:42 Go to previous messageGo to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3199
Registered: February 2013
Senior Member
Following is another response from DHS Senior Sampling Specialist, Mahmoud Elkasabi:

Yes, this is correct because the DV weight is calculated on the individual level and not on the cluster level as other weights. I would suggest approximating the wt2 using the women weight or the HH weight and then calculating wt1 based on d005 and the approximated wt2. See the Stata code below as an example.
gen DHSwt = v005 / 1000000

************************************************************************
* Stage B *** Approximate Levels-weight ***
************************************************************************
* Steps to approximate Level-1 and Level-2 weights from Household or Individual Weights
*Step 1. De-normalize the final weight, using approximated normalization factor 
gen d_HH = DHSwt * (M/m_c)
gen dv_HH = (d005/1000000) * (M/m_c)

*Step 2. Approximate the Level-2 weight
* f the variation factor
gen f = d_HH / ((A_h/a_c_h) * (M_h/S_h))

* Calculating the levels-weight based on different values of alpha
local alphas 0 0.1 .25 .50 .75 0.90 1
local i = 1

foreach dom of local alphas{       
gen wt2_`i' = (A_h/a_c_h)*(f^`dom')
gen wt1_`i' = d_HH/wt2_`i'
gen d1_`i' = dv_HH/wt2_`i'
local ++i
}

svyset v001, weight(wt2_2) strata(v022) , singleunit(centered) || _n, weight(d1_5)
svy: melogit cumodern age secondary urban i.children || v001:
estimates store model2

[Updated on: Fri, 18 March 2022 10:38]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Violence Against Women Data in India
Next Topic: IPV and multi-level weights India data
Goto Forum:
  


Current Time: Wed Nov 27 20:26:51 Coordinated Universal Time 2024