Hello,
I import data (related to one single variable "stringency" in excel to stata. However it appears in a single column the day-week-month and it appears in each column the values for each country. This means that each variable is a name of a country. How can I change this data in order to have the countries in one column and the date (day-month-year) in another country. Can you help me with this issue?
I sent you an example. Thank you in advance.
country_name aruba afghanistan angola albania andorra unitedarabemirates argentina australia
01Jan2020 0 0 0 0 0 0 0 0
02Jan2020 0 0 0 0 0 0 0 0
03Jan2020 0 0 0 0 0 0 0 0
04Jan2020 0 0 0 0 0 0 0 0
05Jan2020 0 0 0 0 0 0 0 0
Related Posts with How to organize a dataset in order to have years in one column and countries in another column
Create a Dummy indicating country pair has appeared previously in different variable Code: * Example generated by -dataex-. For more info, type help dataex clear input float(Year count…
Imputing missing state-years using average of surrounding yearsHello, I have a state-year panel dataset, which is mostly balanced except for one missing year in W…
Wooldridge Introductory Econometrics 6th Edition CH13 C16 Qvi and Qvii.Hi, I am currently solving the question from Wooldridge, the question is as follow: Array The link f…
Taking strings out of file namesI scraped together some xls files using the almighty Python. Before I can/want to work with these fi…
How can I use pweight by hand?Dear statalists: I want to use a mirco sampling data in R,but the package used in R is systemfit whi…
Subscribe to:
Post Comments (Atom)
0 Response to How to organize a dataset in order to have years in one column and countries in another column
Post a Comment