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
How to drop Variables Based on Country Name ?Hello Sir, This is my first post here I want to drop the variables Based on the country names and I …
Finding time trends in each variableI am working with panel data of 311 local authorities over 20 quarters. Is there a simple way to fin…
How to remove x axis labels in bar graphsHi I need to make a bar graph in Stata with over 600 categories. Given the large number of categorie…
Dropping rows based on their position related to another rowHello! I'm trying to drop rows based on their position related to another row specified in a compou…
help with lags and autocorrelationHello!!! So i am trying to choose how many lags to do, and someone helped me with some code but i do…
Subscribe to:
Post Comments (Atom)
0 Response to Drop or Keep Observations by title
Post a Comment