Estimated glomerular filtration rate (eGFR) calculation

Boris Bikbov


Estimated glomerular filtration rate (eGFR) calculation

kidney.epi R package includes functions for calculation of eGFR by different equations.

See also: [ web site] id



Calculate eGFR by different equations

There is a set of functions which calculate eGFR by different equations either for a single patient or for a dataset.

Currently, the following eGFR equations are supported: - CKD-EPI: function egfr.ckdepi - MDRD: function egfr.mdrd4 - Schwartz: function egfr.schwartz

If you use these functions and kidney.epi package for preparation of a manuscript, please use the following citation: “Bikbov B. R open source programming code for calculation of the Kidney Donor Profile Index and Kidney Donor Risk Index. Kidney Disease. 2018; 4:269–272 :10.1159/000492427”.

To calculate for a single patient, use the following syntax:

To calculate for a multiple patients in a dataset, use the following syntax:

Take into account that the labels defined in the function parameters have to correspond to the labels used in your data frame. In the example above label for male sex is defined as label_sex_male = c (“Male”) that means in the data frame it should be “Male”. In case you use different labelling in your data frame, define this appropriatelly. For example, if you define female sex as “F” and male sex as “M” in your data frame, you have to change the labeling in paremeters of the function to label_sex_male = c (“M”), label_sex_female = c (“F”).


References for each eGFR equation are listed in the documentation to the package.