Hi!
I estimated the Gini coefficients by year with:

After obtaining these results I would like to plot them in the same way I did with average incomes to get something like this:

The only way I can think it could be done is by creating a constant (within varlist) containing the Gini_k just like I did with
and then
but the egen command doesn't work with "ginidesc" as it does with "mean".
Also after the ginidesc results "Stored in matrix" is displayed. I thought I could access those results and somehow create the constant variable, but I didn't get anything by running
Any help would be greatly appreciated!
Vicente
I estimated the Gini coefficients by year with:
Code:
ginidesc income, by(year)
After obtaining these results I would like to plot them in the same way I did with average incomes to get something like this:
The only way I can think it could be done is by creating a constant (within varlist) containing the Gini_k just like I did with
Code:
egen meanincome = mean(income), by(year)
Code:
egen tag = tag(year) twoway connected meanincome year if tag
Also after the ginidesc results "Stored in matrix" is displayed. I thought I could access those results and somehow create the constant variable, but I didn't get anything by running
Code:
return list
Vicente
Comment