Home » Data » Weighting data » Melogit and Weights (Weighting Issues for multilevel models)
Re: Melogit and Weights [message #21977 is a reply to message #21814] |
Tue, 12 January 2021 18:26 |
BillC
Messages: 6 Registered: July 2020
|
Member |
|
|
Hi Tom,
Another quick clarification on weight for multilevel analyses. To recap, I am combining the mens and womens datsets for a multilevel analyses. (Code is from DHS Report #27 (Multilevel Modeling Using DHS Surveys: A Framework to Approximate Level-Weights)
Two questions:
Q1: Do I need to adjust v005 BEFORE I run this code below?
gen wt=v005/1000000
gen DHSwt = v005/1000000
* 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)
*Step 2. Approximate the Level-2 weight
* f the variation factor
gen f = d_HH / ((A_h/a_c_h) * (M_h/S_h))
scalar alpha=0.5
gen wt2 = (A_h/a_c_h)*(f^alpha)
gen wt1 = d_HH/wt2
* Svyset
svyset v001, strata(v022) weight(wt2) singleunit(centered) || _n, weight(wt1)
........
Q2:if yes, then the adjustment factor for women = (population of 15-49yr women in country)/number of 15-49 yr women sampled; and for men = (population of men 15-49 yrs in country)/number of men 15-49 yrs sampled - as per the code below?
*adjusting weights of men and women in combined dataset
gen wtfactor=.
replace wtfactor=(xxxxxxxx/29461) if sex==2 //dividing population of women 15-49 yrs in country by number interviewed in 15-49 yrs
replace wtfactor=(yyyyyyy/10760) if sex==1//dividing population of men 15-49 yrs in country by number of men interviewed
label variable wtfactor "Multiplication factor for wt(v005)"
gen wt=v005/1000000
gen newwt=wt*wtfactor
label variable newwt "Population adjusted sample weight"
gen DHSwt = newwt/1000000
(then run code above...)
Many thanks!
Bill
|
|
|
|
|
Melogit and Weights
By: Yawo on Thu, 23 July 2020 09:38
|
|
|
Re: Melogit and Weights
|
|
|
Re: Melogit and Weights
By: Yawo on Thu, 06 August 2020 00:47
|
|
|
Re: Melogit and Weights
|
|
|
Re: Melogit and Weights
By: Yawo on Thu, 06 August 2020 12:15
|
|
|
Re: Melogit and Weights
|
|
|
Re: Melogit and Weights
By: Yawo on Fri, 07 August 2020 10:04
|
|
|
Re: Melogit and Weights
By: Yawo on Mon, 10 August 2020 11:01
|
|
|
Re: Melogit and Weights
By: BillC on Mon, 21 December 2020 21:12
|
|
|
Re: Melogit and Weights
By: Yawo on Tue, 22 December 2020 04:32
|
|
|
Re: Melogit and Weights
|
|
|
Re: Melogit and Weights
By: BillC on Tue, 22 December 2020 11:32
|
|
|
Re: Melogit and Weights
|
|
|
Re: Melogit and Weights
By: BillC on Tue, 12 January 2021 18:26
|
|
|
Re: Melogit and Weights
|
|
|
Re: Melogit and Weights
By: BillC on Wed, 13 January 2021 09:57
|
|
|
Re: Melogit and Weights
|
|
|
Re: Melogit and Weights
|
Goto Forum:
Current Time: Tue Nov 26 22:03:03 Coordinated Universal Time 2024
|