Hi,
UGENT HELP PLEASE
I need to reshape my data from wide too long in order to merge it with already existing merged panel data. I have created a new variable, country, with a list of 38 countries. These countries have data on natural resources rents from years 1990 t0 2017. I need to make all these values into 1 column. Therefore creating a new variable, year. I have performed the command below but no luck;
Array
The letters B, C, D...are the variables representing the years 1990, 1991, 1992 ....which I am trying to merge into one column year.
I will also need to create a variable, nat, that will consists of the values of the total rents in all the years for each country in one column.
Thank you
Related Posts with Reshaping data from wide to long, creating new j variable
Splitting up gen OK=1 if ... into several expressionsHi, I try to run the following command gen OK=1 if strpos( name, "one") >0 | strpos( name, "t…
Interpretation of an interaction term when coefficient of one of the constitutive term is missingGreetings, I am having a debate with a friend about some regression results. Say two independent var…
Sample selection model for continous dependent variable.Dear Statalisters, A few questions have got me confused and I am sure most of you know the answers.…
Replace String VariableHi, I have a missing string variable: STRING YEAR 1990 How can I write a text "AAA" in the missi…
Khb: command unrecognizedDear all, I run into this strange message: I have to run a decomposition for a non-linear model, wi…
Subscribe to:
Post Comments (Atom)
0 Response to Reshaping data from wide to long, creating new j variable
Post a Comment