Hi everyone, I need some help in processing data for my phd research. I started with a dataset including firm-year observations from 2014-2019 but after the baseline regression I recognized that I also needed observations for year 2013, in order to implement the cross-sectional analysis. I downloaded the data for 2013 and now I need to append it to the previous dataset with observations from 2014-2019. The problem I have is that in the new download there are firms that were not present in the old file (with data from 2014-19) because Orbis has updated its data. How can I delete those firms that have a single year observation (2013) and keep only firms that match within the files?
At the moment I launched the append command and after I sorted by country, company name and year. Then how to drop unmatched firms?
Thanks a lot for the help!
Related Posts with Dropping unmatched data
Bar graph showing percentages in each categoryI have: Y X 1 1 1 0 1 1 2 1 2 0 I want to have a bar graphs that displays two bars for each value o…
Significant AR(2) and low Hansen TestHi all, I am currently working on a dissertation to assess the state level of tax impact on marijua…
Multiple cox regression models codeDear all I have the following data set titled "EyeSurgery" The data contains 3000 IDs of patients.…
Conversion of NumbersHi everyone, I have two data sets one having numbers in Millions and the other has numbers in the t…
How to adjust linear mixed models for a factor variableDear everyone, I am using Stata 14 on Windows 10. I am using data from a longitudinal cohort study …
Subscribe to:
Post Comments (Atom)
0 Response to Dropping unmatched data
Post a Comment