Hi,
I a newbie in stata. This is an elementary question. I need to create a new variables which is the product of GDP for partner countries.
I understand that the command is gen (newvar)=X*Y, how ever in my case I need the new variables to be a products of GDP USA * GDP 20 list of countries and its in 10 years observations. I'm using the long format for my panel data format (Meaning the variables are in the same column differ by country)
how do I do this?
Thanks in advance
-Diana-
I a newbie in stata. This is an elementary question. I need to create a new variables which is the product of GDP for partner countries.
I understand that the command is gen (newvar)=X*Y, how ever in my case I need the new variables to be a products of GDP USA * GDP 20 list of countries and its in 10 years observations. I'm using the long format for my panel data format (Meaning the variables are in the same column differ by country)
how do I do this?
Thanks in advance
-Diana-
Comment