I have been struggling with where I may define a different fat percentage calculation while still using the length-mass-fat scaling for my mocap model (AMMR 2.2.3). Ideally I would like to define "WOMAN" in the SubjectSpecificData.any-file and then another fat percentage will be used for those subjects. Can you guide me where it is reasonable to include the following:
#ifdef WOMAN
AnyVar FatPercent = (-0.08 + 0.0203BMI - 0.000156BMI^2)100; #else
///Estimation from Frankenfield et al. (2001) valid for men
AnyVar FatPercent = (-0.09 + 0.0149BMI - 0.00009*BMI^2)*100; #endif
I thought I had tried that already, but from your answer I realized that I included the AnyVar definition before FatPercent in the subject specific file, which gave me an error. Without it it works perfectly well. Thank you!