Dear Researchers, hope everyone blessed with healthy life.
I've a column (in Excel) with different unique titles (in textual form) =187,000. The number of total observation of this column is 342,000 (non-structured panel). I want to keep only the top 10 headings that are assigned maximum number of observations in the panel.
i generate the group ID by the following command, but next i don't know how to drop or keep for the top 10 maximum number of observation:
egen id=group( title )
Thanks Researchers and Admin
Related Posts with Drop or Keep Observations by title
Creating Lagged Variables for Last Month of Financial YearHi there, I need to create lagged variables to run as part of a Fama-MacBeth regression, and asreg …
Power calculation- cross-over designHello, Does anyone have experience with power calculations in STATA for a crossover design? Trying …
Calculate the change in panel data.Hi Statalists, I have a panel data of 3200 firms for time span from 2004 to 2018 which contains the …
Multiple !inlist functions do not catch an errorHi All, I am trying to capture an error when a user does not correctly specify an option requiring …
Problem with the egen commandDear Stata colleaguesColleagues, I am new to Stata, and am using Stata 14. I have this kind of natio…
Subscribe to:
Post Comments (Atom)
0 Response to Drop or Keep Observations by title
Post a Comment