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?
Bivariate analysis in Stata 13Suppose I have 10 variables and I want to make a table like the picture below: Array How can I get…
How to breakdown a complex variable into categoriesGood evening experts, I was wondering if any of you could please assist me with the following: I ha…
Help on understanding Cross-sectional dependenceHello together, I need some help in understanding cross-sectional dependence regarding the use of D…
Forum software bug report: Users - Activities - SubscribedDear Forum manager, I want to report a seeming bug of forum software. When I click one user of this…
Marginsplot with boottest confidence intervalsDear Statalist, I am trying to estimate some marginal effects using my dataset and wild-bootstrap t…
Subscribe to:
Post Comments (Atom)
0 Response to How to merge two panel data sets?
Post a Comment