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
How to calculate ICC when I use command gllamm?Dear statalists, I recently have been puzzeled by how to calculate ICC when I use command gllamm.In …
Do "Driscoll-Kraay standard errors" correct heteroskedasticity and autocorrelation in Panel Data?Hi! I was using xtreg, fe command on my Panel Data with N = 33, T = 25 and it had heteroskedasticit…
Spatial Auto-correlation and Interpreting Moran's I StatisticI'm working with non-negative count data at the county level, with my dependent variable being the n…
baseline adjustment in multiple time pointHi Statalisters, Code: clear set seed 1234 set obs 200 gen id = _n expand 3 sort id bysort id: ge…
Testing for differences in proportions with paired data and svyI’m trying to test if there are significant differences between multiple time periods for a group of…
Subscribe to:
Post Comments (Atom)
0 Response to Dropping observations based on a list of ID
Post a Comment