Stata Small Task -- 2

Job ID: 35109461

Budget: ₹700 – ₹800 INR

This is the task; the word file consists of questions, and the other is data. I have also attached the to-do file of stata that has some hints on how to do it. Remember I DO NOT want the second and third question to be done with direct formulas such as:

ineqdeco hhinc, by(race)
theildeco hhinc, by(race)
descogini hhinc transferinc retireinc propertyinc otherinc earnedinc, d(3)

It should be calculated through finding mean, the geometric mean, the rank and the covariance between variables.
A to-do file of stata, a calculated file, along with relevant explanation is required.