calc_aki_stage {clinPK}R Documentation

Calculate AKI stage

Description

Calculate AKI class based on serum creatinine values over time, using various methods for children (pRIFLE) and adults (RIFLE, kDIGO)

Usage

calc_aki_stage(
  scr = NULL,
  times = NULL,
  method = "kdigo",
  baseline_scr = "median",
  baseline_egfr = NULL,
  first_dose_time = NULL,
  age = NULL,
  egfr = NULL,
  egfr_method = NULL,
  force_numeric = FALSE,
  override_prifle_baseline = FALSE,
  verbose = TRUE,
  return_object = TRUE,
  ...
)

Arguments

scr

serum creatinine in mg/dL. Use 'convert_creat()' to convert from mmol/L. Values below the detection limit ("<0.2") will be converted to numeric (0.2)

times

creatinine sample times in hours

method

classification method, one of 'KDIGO', 'RIFLE', 'pRIFLE' (case insensitive)

baseline_scr

baseline serum creatinine, required for 'RIFLE' classifation. Will use value if numeric. If 'character', can be either 'median', 'median_before_treatment', 'lowest', or 'first'.

baseline_egfr

baseline eGFR, required for 'RIFLE' classifations. Will take median of 'egfr' values if 'NULL'.

first_dose_time

time in hours of first dose relative to sCr value, used for calculate baseline serum creatinine in 'median_before_treatment' approach.

age

age in years, needed when eGFR is used in the classification method

egfr

eGFR in ml/min/1.73m^2. Optional, can also be calcualted if 'age', 'weight', 'height', 'sex', 'egfr_method' are specified as arguments.

egfr_method

eGFR calculation method, used by 'calc_egfr()'. If NULL, will pick default based on classification system ('cockroft_gault' for RIFLE / kDIGO, 'revised_schwartz' for pRIFLE).

force_numeric

keep stage numeric (1, 2, or 3), instead of e.g. "R", "I", "F" as in RIFLE. Default 'FALSE'.

override_prifle_baseline

by default, 'pRIFLE' compares eGFR to 120 ml/min. Override by setting to TRUE.

verbose

verbose ('TRUE' or 'FALSE')

return_object

return object with detailed data (default 'TRUE'). If 'FALSE', will just return maximum stage.

...

arguments passed on to 'calc_egfr()'

References

Examples

calc_aki_stage(
  scr = c(0.7, 0.9, 1.8, 1.5),
  t = c(0, 40, 100, 130),
  age = 50, weight = 60,
  height = 170, sex = "female")


[Package clinPK version 0.13.0 Index]