I have multi-year data on states. For each year, I want to compute weighted quartiles for certain variables, so that I can group the states. The quartile groups will change each year. My instinct was to try
, but that didn't work. Any thoughts?
Code:
bysort year: xtile newvar=var [fweight=weight], nq(4)
Comment