Dear Statalist members,
I want to merge two panel data sets. One contains information regarding 2000 firms over 4 years, and one of the variables is the country they are from, but it also contains time-sensitive information such as net income and total assets. The other data set contains country-information concerning the same four years. I want to match the country information in a particular year to the firm information in that same year based on the country the firm is from. For example, the GDP per capita of Germany in 2013 needs to be added to the observations regarding German firms in 2013, and the GDP per capita of Germany in 2014 needs to be added to the observations regarding German firms in 2014, etc.
How do I do this? Many-to-one merging does not work in this case and I've heard that many-to-many merging provides useless results.
Can anyone help me?
Kind regards,
Elles
Related Posts with How to merge two panel data sets?
Plot Transition Matrix on a GraphHi all, I would like to plot in a graph the transition matrix from employment to employment (EtoE),…
Replace missing values with those of previous values or those of the partnerHi Statalist. I am using annual survey responses on marital status from a panel study (for each par…
Twoway graph with two bars in one diagramHello everyone, I am new to Stata and currently trying to create a bar chart that shows GDP data fr…
Terrible parallelization performance in MataI just ran an example from the SJ paper about boottest ("Fast and Wild") and was surprised at its po…
Lincom for interpreting interactions in logistic regressionHello, I am estimating, for example, the following double-difference / difference-in-difference log…
Subscribe to:
Post Comments (Atom)
0 Response to How to merge two panel data sets?
Post a Comment