weighted median [message #518] |
Fri, 07 June 2013 03:55 |
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.
|
|
|