calculate_stumvoll_beta: Stumvoll beta cell function Calculation (from standard 75g...

View source: R/calculate_stumvoll_beta.R

calculate_stumvoll_betaR Documentation

Stumvoll beta cell function Calculation (from standard 75g OGTT)

Description

This function calculates the Stumvoll phase 1 (ph1) and phase 2 (ph2) using glucose and insulin sampled during the first 30 minutes of a standard 75g oral glucose tolerance test. Described in Stumvoll et al.

Usage

calculate_stumvoll_beta(
  time,
  glucose,
  insulin,
  time_units = "min",
  glucose_units = "mg/dl",
  insulin_units = "uU/ml"
)

Arguments

time

a column name (unquoted) indicating time values (in minutes)

glucose

a column name (unquoted) storing glucose values (in mg/dL)

insulin

a column name (unquoted) storing insulin values (in uU/mL)

time_units

if units are not in "min", can indicate here for unit conversion (options "min" or "hr")

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")

Details

Standard timepoints are 0, 30, 60, 90, and 120 min. Note: insulin unit conversion may differ differ depending on assay. Insulin (pmol/l) = insulin (uU/ml)*6

'calculate_stumvoll_beta()' accepts 3 separate vectors for time, glucose, insulin.

Value

Stumvoll beta cell estimates ('stumvoll_ph1', 'stumvol_ph2') values as a 'data.frame'

Examples

# individual objects for each item
time=c(0, 30, 60, 90, 120)              # minutes
glucose=c(93, 129, 178, 164, 97)        # mg/dL
insulin=c(12.8, 30.7, 68.5, 74.1, 44.0) # uU/mL
calculate_stumvoll_beta(time, glucose, insulin)

JMLuther/tabletools documentation built on April 14, 2025, 3:09 a.m.