Hello,
I am currently working with a complete dataset with all firms in a country. However, I only want to use some of the firms for my analysis. How is it possible to keep multiple observations at the same time in order to constrict the values in my dataset.
I tried keep if =="XX" for every observation that I needed to keep, but then it just kept the first observation. I also tried drop if!="XX" for every observation, but that also did not work.
Would appreciate your help! Thank you!
Related Posts with Keeping mutliple observations
Identify first non zero value, create new variableHi All, My data is individual level data. There are a series of variables, with "date" and then six…
table and tables builder - mlogitHi y'all. I am running mlogit models using the rrr option. When I use table to run the command (belo…
Event study graph using command eventddHi, I am doing a event study in stata using the eventdd command. Is it possible to move the solid v…
How to check whether an small id (eg: employee_id) appears in two or more different big ids (eg: office_id)?I have a dataset of offices and employee sales within that office. An employee shouldn't appear in 2…
Test of difference - unpaired 2 proportion survey data w/ clusteringHi there, I am trying to develop tests of difference for 2 unpaired sets of data from cross-section…
Subscribe to:
Post Comments (Atom)
0 Response to Keeping mutliple observations
Post a Comment