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
Destringing and Dropping.Hello, How would I go about telling stata to drop the observations of variable nace_r2, when the fi…
How to interpret repeated measures resultsHello! I am hoping that someone could help me interpret results for a repeated measures analysis (o…
Now how do I make a joint test (Post estimation) after using Mixed?Array Hello! So I want to see if there is any correlation between ZCREDTA and freq. I want a joint t…
Systems of equationsDear all, I want to estimate a system of equations where the dependent variable is the same but the…
Lag in Regression with Newey–West standard errorsPlease help resolve some confusion regarding newey (the command to run NW SE regression in Stata): …
Subscribe to:
Post Comments (Atom)
0 Response to Reshaping data from wide to long, creating new j variable
Post a Comment