Dear all,
I have a panel dataset No.1 with multiple variables, including time, personal id, education level, training etc. I now need to add another variable - ethnicity - which needs to be imported from dataset No.2 and matched with the original one, No.1, based on personal id. The problem is that the data in the original dataset had been "cleaned up" - missing observations were dropped, some variables were winsorised. This means the number of observations in datasets No.1 and No.2 are not the same anymore for me simply to import the data.
I need to merge the two datasets and figure out if there is a code that matches observations based on personal id, so that I can get rid of all other observations that have not been used in dataset No.1? Thank you in advance!
Related Posts with Panel data - matching observations from an unsorted dataset
How to draw two base lines using coefplot command on stata.Hey! I'm trying to create a graph similar to the one attached with this post. I have two problems: 1…
Psmatch and questions about itHi, I would like to investigate the effects of a natural disaster on individuals. Therefore I have …
Converting week to dateHi there, I'm currently working on a data that consist of 'date of birth' and 'gestational age' in …
Generating status variable for firmDear Statalist users, I have panel data for firms involved in international trade. t1 is my variabl…
Resetting mlibs in running StataHi I'm building some mata code in which parts must be saved in Stata versions 12, 13, 14, or 15. Bas…
Subscribe to:
Post Comments (Atom)
0 Response to Panel data - matching observations from an unsorted dataset
Post a Comment