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
Do I need to check for heteroscedasticity in mediation analysis?Hi everyone, I am conducting a mediation analysis using the ml_mediation command on Stata which by …
Variable assigning number to dates within periodsHi. I have a dataset where I have registered observations on specific dates within a different peri…
Building time windows from years, starting from most recent yearDear all, I have some panel data containing countries and years. I need to build three-year time wi…
Not recounting new CEO roleIn my dataset, a director can have different roles each year. In my example, the director gets a new…
Removing duplicate words from a string variableI have a variable with a row of ICD codes. Some of them are repeated One registration looks like thi…
Subscribe to:
Post Comments (Atom)
0 Response to Panel data - matching observations from an unsorted dataset
Post a Comment