View source: R/calculate_quicki.R
calculate_quicki | R Documentation |
uses the formula by Katz et al:
\frac{1}{(log_{10}(Glucose(md/dL)) + log_{10}(Insulin(uU/mL)))}
Note the original formula uses log_{10}
instead of log_e
, and resulting values are interchangeable using a converting factor, log_{10}=2.303 \cdot log_e
calculate_quicki(
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") |
QUICKI estimate of insulin sensitivity, as a single numeric value
calculate_quicki(glucose = c(93), insulin = c(12.8))
calculate_quicki(93, 12.8)
calculate_quicki(93, NA) # error
calculate_quicki(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.