Hello,
how can I write this command but in the invers order, like to assign 5 to highest pay and 1 to lowest pay??
egen quantileD = xtile(pay), by(year) nq(5)
replace quantileD = 6 - quantileD
Thks.
how can I write this command but in the invers order, like to assign 5 to highest pay and 1 to lowest pay??
egen quantileD = xtile(pay), by(year) nq(5)
replace quantileD = 6 - quantileD
Thks.
Comment