I'm new to coding in R and am having a difficult time coding the following equation
(There is an existing R package for the old version of this equation, but not this updated one).
Could someone help me with the code? Having a hard time figuring out how to create a new variable (eGFR) with values calculated from this equation. The components A and B of the equation depend on 2 categories of variable Scr (serum creatinine) and on gender (M/F). Thanks!