Hello,
Is there a way to drop observations using a list of IDs ? I have a dataset and there are several observations (about 20k) I need to drop. I have the ID of these observations but they are too long to paste in the command.
To give the context of this issue, I have two datasets, one of firms with different segments and one of all firms, I want to remove all multi-segment firms and get a dataset of only firms operating in only one industry segment.
Any advice is greatly appreciated! Thank you
Related Posts with Dropping observations based on a list of ID
SEM and the predicted latent variableHello I am doing a confirmatory factor analysis, using SEM, to construct three latent variables for…
Check if two exposure varibales are independent of each otherHi, Apologies if this is very obvious, I've managed to get confused about it. If i want to check if…
Invalid syntax error when combining foreach and logout ttable2Hi, I am trying to output the ttable2 results of different groups. The code I am writing is as foll…
Difference-in-difference with interactionsHi, I'm trying to estimate a straight forward Difference-in-Difference model to find the impact of …
Count distinct digits of observationsDear statalists, I would like to count the number of digits an observation has as follows: Numbe…
Subscribe to:
Post Comments (Atom)
0 Response to Dropping observations based on a list of ID
Post a Comment