Multilevel weighting issue in Bangladesh DHS data [message #30526] |
Sat, 14 December 2024 22:08 |
toukir86
Messages: 12 Registered: November 2023
|
Member |
|
|
Dear Concern,
I am working with multilevel analysis for the most recent Bangladesh DHS but BDHS 2022 does not provide Table A.2 as the guideline for the multilevel analysis described and given in many countries like Nepal (attached below).
There are 16 clusters in BDHS 2022 but can you provide me with the values of the total number of census clusters by strata (A_h) and the average number of households per cluster by strata (M_h)?
I am giving the code below can you kindly provide me with the correct values?
* A_h total number of census clusters by strata
gen A_h = 0
replace A_h = 122 if v022 == 1
replace A_h = 87 if v022 == 2
replace A_h = 134 if v022 == 3
replace A_h = 182 if v022 == 4
replace A_h = 167 if v022 == 5
replace A_h = 206 if v022 == 6
replace A_h = 124 if v022 == 7
replace A_h = 131 if v022 == 8
replace A_h = 17 if v022 == 9
replace A_h = 86 if v022 == 10
replace A_h = 127 if v022 == 11
replace A_h = 156 if v022 == 12
replace A_h = 122 if v022 == 13
replace A_h = 138 if v022 == 14
replace A_h = 122 if v022 == 15
replace A_h = 91 if v022 == 16
* M_h average number of households per cluster by strata
gen M_h = 0
replace M_h = 24 if v022 == 1
replace M_h = 47 if v022 == 2
replace M_h = 39 if v022 == 3
replace M_h = 56 if v022 == 4
replace M_h = 52 if v022 == 5
replace M_h = 53 if v022 == 6
replace M_h = 28 if v022 == 7
replace M_h = 58 if v022 == 8
replace M_h = 17 if v022 == 9
replace M_h = 58 if v022 == 10
replace M_h = 31 if v022 == 11
replace M_h = 58 if v022 == 12
replace M_h = 23 if v022 == 13
replace M_h = 61 if v022 == 14
replace M_h = 23 if v022 == 15
replace M_h = 47 if v022 == 16
|
|
|
|
|
Re: Multilevel weighting issue in Bangladesh DHS data [message #30540 is a reply to message #30538] |
Tue, 17 December 2024 07:26 |
Bridgette-DHS
Messages: 3214 Registered: February 2013
|
Senior Member |
|
|
Following is a response from Senior DHS staff member, Tom Pullum:
I worked with the PR file to see how hv022 is related to hv024 and hv025 (you could do it with the IR file too). I opened the PR file and reduced it to one record per household ("keep if hvidx==1"). Then I entered "tab hv024 hv025, summarize(hv022)". This shows that, as you expected, the strata are combinations of region (or governorate) and urban/rural, but there are two exceptions. The means for urban Zarqa (hv024=13) and urban Mafraq (hv024=22) are not integers. I then entered "tab hv022 if hv024==13 & hv025==1" and "tab hv022 if hv024==22 & hv025==1". These show that urban Zarqa is actually two strata (two values of hv022), 5 and 7. Urban Mafraq is also two strata, 12 and 14.
If you do "tab hv001 hv022 if hv022==5 | hv022==7" you will find that stratum 5 is clusters 199 through 266 and stratum 7 is clusters 272 through 292. You can count up how many clusters are in stratum 5 and stratum 7, and similarly for stratum 12 and stratum 14. I think that in this way you can adjust the procedure and avoid that Stata error message.
|
|
|