Hi
is there a command/function in Stata to calculate weighted median?
As for weighted mean based on lagged market capitalization, I use
How can I calculate weighted median on a similar basis?
Thanks
is there a command/function in Stata to calculate weighted median?
As for weighted mean based on lagged market capitalization, I use
Code:
egen wmEarnings = wtmean(Earnings), by(time)weight(lag_me)
Thanks
Comment