The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Weighting data » weighted median
weighted median [message #518] Fri, 07 June 2013 03:55 Go to previous message
isde is currently offline  isde
Messages: 2
Registered: June 2013
Member
Hello.
I writing because I cannot find my way out of this apparently trivial calculation: I have to estimate the median for age at different vaccinations in several countries with Children recodes datasets, separately. I'm working on STATA10.
I'm trying to get weighted medians.
I've done "gen wgt=v005/1000000" and "sum var [iw=wgt]".The command "iweight" is not allowed with "sum,d". How can I do?
Do I have to use svyset, in which case what are the variable to incude (PSU is v021? stratification variables are v025? v024? both?).
That would be great if you could provide me with some answers. Thanks a lot in advance.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Domestic Violence Weighting
Next Topic: weighting combined datasets
Goto Forum:
  


Current Time: Thu Apr 25 00:22:31 Coordinated Universal Time 2024