Dear all,
I try to calculate percentiles to weighted data. According to the manual it should be allowed, but command
. egen medi = pctile (indkri13) [w=wgt], p(50) by(xdate)
causes error "weights not allowed" and r(101). Obviously something goes wrong, but I can not figure out what.
The version of the Stata is 12.1 for 32-bit Windows, Revision 08 Aug 2012.
Sincerely,
JP
I try to calculate percentiles to weighted data. According to the manual it should be allowed, but command
. egen medi = pctile (indkri13) [w=wgt], p(50) by(xdate)
causes error "weights not allowed" and r(101). Obviously something goes wrong, but I can not figure out what.
The version of the Stata is 12.1 for 32-bit Windows, Revision 08 Aug 2012.
Sincerely,
JP
Comment