Learn R Programming

transplantr (version 0.2.0)

cockcroft: Creatinine clearance by Cockcroft-Gault equation

Description

A vectorised function to estimate creatinine clearance using the Cockcroft-Gault equation. By default this uses serum creatinine in <U+00B5>mol/l but can be changed to mg/dl by setting the units parameter to "US"

Usage

cockcroft(creat, age, sex, weight, units = "SI")

Arguments

creat

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

age

numeric vector of ages in years

sex

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

weight

numeric vector of weights in kilograms

units

non-vectorised parameter for creatinine units ("SI" for <U+00B5>mol/l (default) or "US" for mg/dl)

Value

numeric vector of creatinine clearances in ml/min

Details

Reference: Cockcroft DW, Gault MH. Prediction of creatinine clearance from serum creatinine. Nephron 1976; 16(1):31-41

Examples

Run this code
# NOT RUN {
# calculate creatinine clearance using creatinine in <U+00B5>mol/l
cockcroft(creat = 88.4, age = 25, sex = "F", weight = 60)

# calculate using creatinine in mg/dl
cockcroft(creat = 1, age = 25, sex = "F", weight = 60, units = "US")
# }

Run the code above in your browser using DataLab