Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 2021 CKD-EPI equations in stata?

    I was wondering if theres a STATA package for calculating the GFR from serum creatinine using the 2021 equation? I think the egfr one uses a 2013 definition that is not race blind. Thoughts?
    Link to new equation

  • #2
    Hello Sakshi,
    Did you manage to get any help for this in STATA?

    Comment


    • #3
      Originally posted by Patrick Kafeero View Post
      Hello Sakshi,
      Did you manage to get any help for this in STATA?
      Not really, however I ended up writing code to generate a GFR variable, which utilized the male and female calculations using serum creatinine

      Comment


      • #4
        The new stata has an egfr command/package installed.
        Are you able to share the code you used?
        Thanks

        Comment


        • #5
          Originally posted by Patrick Kafeero View Post
          The new stata has an egfr command/package installed.
          Are you able to share the code you used?
          Thanks
          Link: https://www.kidney.org/professionals...ulator/formula

          Code:
          //RACE BLIND SURVIVAL ANALYSIS
          sort id date
          gen gfrRB=.
          //Fem, screat<=0.7
          replace gfrRB = 142*((screat/0.7)^-0.241) * (0.9938^age)*1.012 if screat<=0.7 & m0f1 ==1
          //Fem, screat>0.7
          replace gfrRB = 142 * ((screat/0.7)^-1.200) * (0.9938^age) * 1.012 if screat>0.7 & !mi(screat) & m0f1 ==1
          //Male, screat<=0.9
          replace gfrRB = 142 * ((screat/0.9)^-0.302) * (0.9938^age) if screat<=0.9 & m0f1 ==0
          //Male, screat>0.9
          replace gfrRB = 142 * ((screat/0.9)^-1.200) * (0.9938^age) if screat>0.9 & !mi(screat) & m0f1 ==0

          Comment

          Working...
          X