Hi, I am new to Stata, I would like some help on how to add a new variable.
Basically, I got 6 different years in my data set e.g. 2009, 2010.2011, etc, and I would like to add the Gini coefficient for each year as a new variable, how can I do it?
For example, I would like to see The new variable (Gini) shows that 2009 is 0.371 and 2010 is 0.392 for all samples. Since then I can run the regression model.
Basically, I got 6 different years in my data set e.g. 2009, 2010.2011, etc, and I would like to add the Gini coefficient for each year as a new variable, how can I do it?
For example, I would like to see The new variable (Gini) shows that 2009 is 0.371 and 2010 is 0.392 for all samples. Since then I can run the regression model.

Comment