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
Related Posts with Collapse a variable for every percentile
Standard deviationHey guys, i could need some assistance with the following issue. Dataset Station__name Year Mea…
X-axis in xtlineHi, this may be a trivial question, but I am having an issue with my graph using xtline where my plo…
Applying Fixed Effects to asdoc command?Dear all, I am using Stata 16, on mac. Here is the code that I have: asdoc reg hard_drugs_DLI ait …
Any Problems running Stata 15 in macos Big Sur?Curious if anyone is having any issues running Stata 15 in Big Sur? Thanks. …
Producing line plots from two-way table frequency categoriesApologies in advance if there's an obvious answer to this I've missed or if I'm a little clumsy in s…
Subscribe to:
Post Comments (Atom)
0 Response to Collapse a variable for every percentile
Post a Comment