Derivation
variable: weight [average weight result] (table[s]: derived variable)
variable: height [average height result] (table[s]: derived variable)
variable: curpreg [currently pregnant] (table[s]: ncdk_personal, ncdl_personal)
BMI (weight in kg per height in metres squared) is calculated using the averaged weight and height variables: it is not calculated for pregnant women.
gen BMI=weight/((height/100)*(height/100))
replace BMI=. if curpreg==1