Hi,

I have a dataset of wages at the individual level. I want to collapse this dataset at every percentile.

I could simply code

collapse p(1) p1wage=wage p(2) p2wage=wage p(3) ... p(98) p98wage = wage p(99) p99wage = wage,

but I am looking for a more efficient way to do so, if it exist.

Thank you in advance,

Étienne