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
plots for restracted cubic spline 5 knotes for linear mixed model after mutiple imputationCould any members give me some advice about how to plot a curve of blood pressure against age as the…
Creating a year variableHi All I'm creating a set of 5 date variables to calculate age of my study participants. The 5 vari…
How to estimate a Diff-in-Diff with this longitudinal data structure?Dear Statalist, I am interested in implement a diff-in-diff (DID) analysis for the following longit…
Choosing random group member observation in the presence of missing valuesDear all: I have a data set that looks roughly like this, i.e. individuals in groups. For most but …
automated do file backupWhen I save a do file I want to save it to the specified location and then also save a backup to one…
Subscribe to:
Post Comments (Atom)
0 Response to Dropping observations based on a list of ID
Post a Comment