Dear Statalist,

I’m using Stata for the first time for a school assignment and since my knowledge of the software is very limited, I have some questions concerning the implementation of certain concepts in Stata (I’m using version 16.1).
The dataset I use is quite simple: it consists of 5 variables - a household identifier, an identifier of the person within a household, a variable that shows if the person is a child or an adult, a variable that displays the ethnic group of the person (4 possibilities) and a variable that shows per capita household income - and 28,226 obs.
The goal of the analysis is to measure inequality between and within each ethnic group and therefore I would like to measure the Gini coefficient for each group and display a Lorenz curve showing all ethnic groups in 1 graph.

Thanks in advance for your help