View source: R/calcHOMA.beta.R
calcHOMA.beta | R Documentation |
This function calculates Homeostatic Model Assessment β-cell function Reference: Matthews DR, et al. Diabetologia 1995;28:412-9 DOI: 10.1007
calcHOMA.beta(insulin, glucose)
insulin |
in μU/mL |
glucose |
in mass units (mg/dL) |
HOMA-β cell function as percentage value
calcHOMA.beta(15.0,100.0)
glucose.vals <- seq(75,175,by=25)
insulin.vals <- seq(2,20, by=1)
test.dat <- expand.grid(insulin=insulin.vals,glucose=glucose.vals)
test.dat$HOMA.beta <- calcHOMA.beta(insulin=test.dat$insulin,glucose=test.dat$glucose)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.