Dear Statalisters.
I am working with two different panal datasets which I want to merge. Unfortunately there are differences in certain country names. Both are coming from two different online datasets. However, for one dataset I cannot use the kountry code option to change the names. Meaning that if I merge them now i lose certain countries. Therefore my question; how can I change the name of certain countries in the dataset? For instance in one dataset the country name is: China and in the second one the country name is: China, P.R.: Mainland
The data looking as follows:
Year Exporter Importer Value1 Value2
2000 China Austria x x
2001 China Austria x x
etc.
Related Posts with Rename country id in a paneldata
Accessing Variables from Python script in StataI am working on a project where I need to collect daily values for variables where each day is in it…
How do I choose the suitable analysis method for data? What is the suitable method that must I apply with my data properties? - I have a Panel with N= 1…
Reghdfe Definition of SingletonI am running a regression that requires a fixed effect variable, which we’ll call fe. When I manuall…
Help need please for a foreach commandDear Statalists, I'm wondering if anyone could help me on this. I have a dataset containing 26 vari…
How to create a new dataset from r(name) after a r-class command I would like to ask how to create a new dataset from r(name) after a r-class command I am analy…
Subscribe to:
Post Comments (Atom)
0 Response to Rename country id in a paneldata
Post a Comment