Greetings,
I want to generate the Visceral Adiposity Index (VAI) in Stata. The formula for this index varies by gender:
VAI (for men) = (WC(cm)/(39.68+(1.88*BMI) *(TG/1.03) *(1.31/HDL)
VAI (for women) = (WC(cm)/(36.58+(BMI *1.89) *(TG/0.81) *(1.52/ HDL)
Ps: WC= waist circumference, BMI=Body mass index, TG=triglycerides, HDL= high density lipoprotein
In my dataset, I have the variable sex (0=men / 1=women). The rest of the variables are labeled as above.
What would be the Stata command to create a unique variable for VAI considering the different formulas (by gender)?
Thanks in advance
I want to generate the Visceral Adiposity Index (VAI) in Stata. The formula for this index varies by gender:
VAI (for men) = (WC(cm)/(39.68+(1.88*BMI) *(TG/1.03) *(1.31/HDL)
VAI (for women) = (WC(cm)/(36.58+(BMI *1.89) *(TG/0.81) *(1.52/ HDL)
Ps: WC= waist circumference, BMI=Body mass index, TG=triglycerides, HDL= high density lipoprotein
In my dataset, I have the variable sex (0=men / 1=women). The rest of the variables are labeled as above.
What would be the Stata command to create a unique variable for VAI considering the different formulas (by gender)?
Thanks in advance
Comment