The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » General » Interpolated surfaces
Re: Interpolated surfaces [message #24960 is a reply to message #24925] Wed, 10 August 2022 16:25 Go to previous messageGo to previous message
Janet-DHS is currently offline  Janet-DHS
Messages: 893
Registered: April 2022
Senior Member
Following is a response from DHS Research & Data Analysis Director, Tom Pullum:

On July 13 I gave you the Stata code to do this. I will repeat it below. Perhaps you do not know that every case in a cluster has exactly the same weight. There is no need to weight the proportion WITHIN the cluster. Also, the lines I gave you will give weights that include a factor of 1000000. If you don't want that factor, you can insert a line "gen wt=v005/1000000" after the "label list" line and then replace "v005" with "wt" in the two places where "v005" appears.

If your question is about how to include the weight in the analysis of interpolated surfaces, that will depend on the software you are using. If the software does not have an option for weights, then you have no option other than ignoring the weights.

describe h11
tab h11
label list H11

gen nch_diarrhea_yes=1 if b9==0 & (h11==1 | h11==2)
gen nch_diarrhea_no =1 if b9==0 & h11==0

collapse (first) v005 (sum) nch_diarrhea*, by(v001)
gen nch_diarrhea=nch_diarrhea_yes + nch_diarrhea_no
gen prop_diarrhea=nch_diarrhea_yes/nch_diarrhea
gen wt_diarrhea=v005*nch_diarrhea

summarize
histogram prop_diarrhea
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Women decision making power
Next Topic: Education in single years
Goto Forum:
  


Current Time: Fri Nov 29 22:49:02 Coordinated Universal Time 2024