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
Help with Stata Coding (Urgent!)Nothing
…
PSID - Generating a household IDI am using 10 waves of the PSID data with the aim of analysing trends in household charitable giving…
Creating an indicator variable from multiple, non-mutually exclusive, dummy variablesHi! I'm trying to create an indicator variable from several dummy variables (which are not mutually …
How to make it as a program?Hi All,
I am trying to make this as a program. Any help? Below is my code. Thanks
clear
set seed 12…
Collapse by a variable, while preserving others and creating new variablesHi,
I have a dataset on property transactions (a sample below, for those of you from the UK, this i…
Subscribe to:
Post Comments (Atom)
0 Response to Collapse a variable for every percentile
Post a Comment