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
Panel Data in StataHello! For my panel data in STATA I am using a set of 6 countries for a time period of 20 years. I a…
Help with collapsing dataGood day, I have the following data. Code: * Example generated by -dataex-. To install: ssc instal…
How to convert Fairness in Financial Contribution index (FFC) to codeGreeting, I am trying to convert the following formula to STATA code, but I could not. Array The FF…
Hospital Based Data CodeHello, I am using 10 yrs of hospital based data where people are admitted more than once within the…
-strgroup- module updated on SSCA new version of -strgroup- is now available on SSC. -strgroup- is a Stata plugin that matches strin…
Subscribe to:
Post Comments (Atom)
0 Response to Collapse a variable for every percentile
Post a Comment