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
why i can't convert from yyyy/mm/dd to timehello
i have variable for time like this :
Day (variable name)
2011/12/01
2011/12/02
2011/12/03
.
.…
Constrained Nonlinear RegressionHi all,
I am trying to estimate the parameter delta using the nl command in Stata 15.1, as follows:…
graph stata HR and tertilesArray
Good morning,
I'm trying to make a graph as follows after a cox model but I have never used st…
Histogram with log scale both below and above 0Dear Statalisters.
I have been puzzling over what I would have thought would be a simple challenge.…
cmp for instrumental multinomial probit when there are many categoriesDependent variable Y1 has three categories 1, 2, 3
Dependent variable Y2 has four categories 1, 2, …
Subscribe to:
Post Comments (Atom)
0 Response to Panel data - matching observations from an unsorted dataset
Post a Comment