Hello Statalist community;
I have 2 datasets:
- The first one contains about 100 countries (as the x variable or axis), and the Inflation rate for each country (as the y variable or axis).
- The second one contains about 100 countries or so (again, as the x variable or axis), and the purchase power decrease for each county (as the y variable or axis) (by purchase power decrease, I mean it's an inverse scale)
Remark: Both datasets don't contain the same countries, there are countries which exist in the first one and doesn't in the second one, and vice-versa.
My goal is draw a graph, showing the situation, for each country that exists in both datasets, according to its inflation and power purchase decrease. The idea is to have a graph showing the inflation (in the horizontal axis) and purchase power decrease (in the vertical axis) for each country existing in both datasets, and I wanna eliminate those who exist in just one datasets.
Already, there is the idea of merging the 2 datasets by country (the x variable or axis), eliminating the countries whch missing data in one of the datasets, and then drawing the scatterplot.
Could anyone suggest a Stata code on how to do so? Also, both datasets are in Excel format.
Thanks very much for the help.
I have 2 datasets:
- The first one contains about 100 countries (as the x variable or axis), and the Inflation rate for each country (as the y variable or axis).
- The second one contains about 100 countries or so (again, as the x variable or axis), and the purchase power decrease for each county (as the y variable or axis) (by purchase power decrease, I mean it's an inverse scale)
Remark: Both datasets don't contain the same countries, there are countries which exist in the first one and doesn't in the second one, and vice-versa.
My goal is draw a graph, showing the situation, for each country that exists in both datasets, according to its inflation and power purchase decrease. The idea is to have a graph showing the inflation (in the horizontal axis) and purchase power decrease (in the vertical axis) for each country existing in both datasets, and I wanna eliminate those who exist in just one datasets.
Already, there is the idea of merging the 2 datasets by country (the x variable or axis), eliminating the countries whch missing data in one of the datasets, and then drawing the scatterplot.
Could anyone suggest a Stata code on how to do so? Also, both datasets are in Excel format.
Thanks very much for the help.

Comment