gini index

How to form a syntax that counts the value of the Gini coefficient for data in the following form: person 1 believes that the wage in occupation 1 should be ..., in occupation 2 ..... in occupation 3....... The list contains, for example, 11 professions, about which the respondent determines how much people performing those professions should earn. Place occupations in columns, and persons surveyed in rows. We should calculate Gini coefficients for each person, i.e. in a row.