Hi,
I am trying to calculate eGFR with the MDRD forumula: Estimated GFR = 186 x (Creatinine / 88.4) -1.154 x (Age) -0.203 x (0.742 if female) x (1.210 if black)
I have all the necessary variables (Creatinine, age, gender (female=2), ethnic background (black=4) ) but cannot manage to do it with the gen var command when it comes to doing the extra multiplications for females and individuals of colour, could you assist with some ideas please?
gen estimatedgfr= 186 *(creatinine/88.4)-1.1154*(age) -0.203* (0.742 if gender=2) x (1.210 if ethnicbackground=4) does not work.
Best wishes,
Lena
I am trying to calculate eGFR with the MDRD forumula: Estimated GFR = 186 x (Creatinine / 88.4) -1.154 x (Age) -0.203 x (0.742 if female) x (1.210 if black)
I have all the necessary variables (Creatinine, age, gender (female=2), ethnic background (black=4) ) but cannot manage to do it with the gen var command when it comes to doing the extra multiplications for females and individuals of colour, could you assist with some ideas please?
gen estimatedgfr= 186 *(creatinine/88.4)-1.1154*(age) -0.203* (0.742 if gender=2) x (1.210 if ethnicbackground=4) does not work.
Best wishes,
Lena
Comment