View source: R/calculate_homair.R
calculate_homair | R Documentation |
Uses the simple formula Glucose(mM) \cdot Insulin(uU/mL) /22.5
calculate_homair(
glucose,
insulin,
glucose_units = "mg/dl",
insulin_units = "uU/ml"
)
glucose |
fasting glucose (mg/dL) |
insulin |
fasting insulin (uU/mL) |
glucose_units |
if units are not in "mg/dl", can indicate here for unit conversion (options "mg/dl" or "mmol/l") |
insulin_units |
if units are not in "uU/ml", can indicate here for unit conversion (options "uU/ml" or "pmol/l") |
HOMA-IR estimate of insulin sensitivity, as a single numeric value
calculate_homair(glucose = c(93), insulin = c(12.8))
calculate_homair(93, 12.8)
calculate_homair(100, 5) # 1.23; ex from Gutch 2015
calculate_homair(93, NA) # error
calculate_homair(5.167, 76.8, glucose_units = "mmol/l", insulin_units = "pmol/l")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.