Learn R Programming

transplantr (version 0.2.0)

mdrd_US: eGFR by abbreviated MDRD equation (US units)

Description

A wrapper for the mdrd4v() vectorised function to calculate estimated glomerular filtration rate using the abbreviated (four variable) MDRD equation, but using serum creatinine in mg/dl. To allow for serial measurements over time, such as for transplant follow-up data, there is an optional offset = n parameter which increases the age value used in the equation by n years.

Usage

mdrd_US(creat, age, sex, ethnicity, offset = 0)

Arguments

creat

numeric vector of serum creatinine in <U+00B5>mol/l (or mg/dl if units = "US")

age

numeric vector of age in years (accepts integers or decimals)

sex

character vector of sex ("F" for female, "M" for male)

ethnicity

character vector of patient ethnicity, one of "black" or "non-black"

offset

non-vectorised optional parameter for offset in years

Value

a numeric vector of eGFR values

Details

Reference: Levey AS, Greene T, Kusek JW, et al. A simplified equation to predict glomerular filtration rate from serum creatinine. J Am Soc Nephrol 2000; 11:A0828.

Examples

Run this code
# NOT RUN {
mdrd_US(creat = 1.5, age = 64.3, sex = "F", ethnicity = "black")
# }

Run the code above in your browser using DataLab