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
Self constructed variable (CTT_MDDR) related to time/age of wine that switches from negative to positive: HOW TO IMPLEMENT?Dear all! My research is about the price behavior of investment grade wines. Of each wine, critics …
calculating dissim index and storing results.Hi. I am using Ben Jann’s Duncan SSC package to calculate a dissimilarity index for each month and …
Is poisson QML fixed effect estimation appropriate for non-negative continuous variable in event-study design?Dear Stata users, I'm looking at the effect of coauthorship with a star scientist on the individual…
Problem with lag variableDear Statalists, how do I generate a lag variable which is the same for all years. Code: * Example…
doLCA plugin PSUI am currently using the doLCA plugin list to estimate an unconditional RMLCA model. However, I have…
Subscribe to:
Post Comments (Atom)
0 Response to Collapse a variable for every percentile
Post a Comment