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
Dividing data into periods and then groupsHi! I want to divide my panel data into different cross-sectional data of each group, and then divi…
interpreting interaction effects continuous by categorical variablesHi all, I am having difficulty to interpret interaction effects. I watched some videos and read for…
Problem with asdoc table 3 wayHi all, I am continually having problem with the results with asdoc in a table 3 way, example: Co…
Nationwide inpatient sampleHi everyone, I started to learn STATA for my NIS data analysis recently. I have no experience of us…
Adjusting the Scale of Cluster GraphHey everybody, I am currently conducting a cluster analysis in Stata and I have a small problem. As…
Subscribe to:
Post Comments (Atom)
0 Response to Panel data - matching observations from an unsorted dataset
Post a Comment