% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cvd_risk.R
\name{cvd_marker_aip}
\alias{cvd_marker_aip}
\title{Atherogenic Index of Plasma (AIP)}
\usage{
cvd_marker_aip(
  data,
  col_map = NULL,
  na_action = c("keep", "omit", "error"),
  verbose = TRUE
)
}
\arguments{
\item{data}{A data frame with numeric columns TG and HDL_c (mg/dL).}

\item{col_map}{Named list mapping required keys:
\itemize{
\item TG: triglycerides
\item HDL_c: HDL cholesterol
}}

\item{na_action}{One of:
\itemize{
\item "keep"  (retain rows; AIP is NA where inputs missing/non-finite)
\item "omit"  (drop rows with any missing/non-finite inputs)
\item "error" (abort if any required input missing/non-finite)
}}

\item{verbose}{Logical; if TRUE, emit hm_inform() progress messages.}
}
\value{
A tibble with columns model = "AIP" and value.
}
\description{
Computes log10(TG / HDL_c) with input validation and HM-CS NA handling.
}
\examples{
df <- data.frame(TG = c(150, 200), HDL_c = c(50, 40))
cvd_marker_aip(df)
}
\references{
\insertRef{dobiasova2004aip}{HealthMarkers}
}
