Derivation
variable: weight (table[s]: this dataset)
variable: ffmass_M (table[s]: this dataset)
variable: dropped_M (table[s]: this dataset)
gen ffmasspc_M=100*(ffmass_M/weight) if weight~=. & ffmass_M~=.
<remove inconsistent data from combined data:>
foreach var in fatmass_M fatmasspc_M ffmass_M ffmasspc_M {
replace `var'=. if dropped_M==1
}