The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Weighting data » weighted median
Re: weighted median [message #532 is a reply to message #531] Mon, 10 June 2013 14:00 Go to previous messageGo to previous message
Reduced-For(u)m
Messages: 292
Registered: March 2013
Senior Member

Ugh. That is embarrassing that I didn't remember that summarize doesn't take p-weights. My bad.

How about collapse: http://www.stata.com/help.cgi?collapse#weight

collapse (median) VacAge [pweight=weight]

If the countries are appended together, you could add " , by(country)".

This one should work.
 
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: Sun Dec 1 01:53:30 Coordinated Universal Time 2024