% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/health_markers.R
\name{all_insulin_indices}
\alias{all_insulin_indices}
\title{Compute insulin sensitivity/resistance panels (fasting, OGTT, adipose, tracer/DXA)}
\usage{
all_insulin_indices(
  data,
  col_map = NULL,
  normalize = c("none", "z", "inverse", "range", "robust"),
  mode = c("both", "IS", "IR"),
  verbose = TRUE,
  na_action = c("keep", "omit", "error")
)
}
\arguments{
\item{data}{A data.frame or tibble of raw measurements.}

\item{col_map}{Named list with keys G0,I0,G30,I30,G120,I120,TG,HDL_c,FFA,waist,weight,bmi,age,sex,rate_palmitate,rate_glycerol,fat_mass.}

\item{normalize}{One of c("none","z","inverse","range","robust").}

\item{mode}{One of c("IS","IR","both"). "IR" returns only inverted IR, "IS" only the original IS, "both" returns both with IR_ prefix.}

\item{verbose}{Logical.}

\item{na_action}{One of c("keep","omit","error"); forwarded to underlying calculators (HM-CS v2).}
}
\value{
A tibble of IS (and/or IR_) columns.
}
\description{
Compute insulin sensitivity/resistance panels (fasting, OGTT, adipose, tracer/DXA)
}
\note{
For scholarly references to specific indices (e.g., HOMA-IR, QUICKI,
Raynaud, Belfiore, tracer-derived indices, adiposity-related IS metrics),
consult the individual function help pages (e.g. ?fasting_is, ?ogtt_is,
?adipo_is, ?tracer_dxa_is). Citations are intentionally not duplicated here.

Aggregator wrapper. See underlying function help pages for full references:
fasting_is(), ogtt_is(), adipo_is(), tracer_dxa_is().
}
\examples{
# Quick smoke-test (fasting indices only)
df <- data.frame(G0 = 5.2, I0 = 60)
all_insulin_indices(df, normalize = "none", mode = "IS",
                    verbose = FALSE, na_action = "keep")

\donttest{
# Full panel with all supported inputs
df <- data.frame(
  G0 = 5.2, I0 = 60, G30 = 7.5, I30 = 90, G120 = 6.2, I120 = 80,
  TG = 1.5, HDL_c = 1.3, FFA = 0.3, waist = 85, weight = 70, bmi = 24,
  age = 40, sex = "M", rate_palmitate = 0.1, rate_glycerol = 0.2, fat_mass = 20
)
all_insulin_indices(df, col_map = list(
  G0="G0", I0="I0", G30="G30", I30="I30", G120="G120", I120="I120",
  TG="TG", HDL_c="HDL_c", FFA="FFA", waist="waist", weight="weight",
  bmi="bmi", age="age", sex="sex", rate_palmitate="rate_palmitate",
  rate_glycerol="rate_glycerol", fat_mass="fat_mass"
), normalize = "none", mode = "IS", verbose = FALSE, na_action = "keep")
}
}
\references{
\insertRef{suleman2024is}{HealthMarkers}
}
