% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ckd_stage.R
\name{ckd_stage}
\alias{ckd_stage}
\title{CKD staging (GFR and albuminuria) and KDIGO risk}
\usage{
ckd_stage(
  data,
  col_map = NULL,
  na_action = c("keep", "omit", "error"),
  verbose = TRUE
)
}
\arguments{
\item{data}{Data frame with renal measures.}

\item{col_map}{Named list with required key: eGFR; optional key: UACR.}

\item{na_action}{One of:
\itemize{
\item "keep"  (retain rows; stages become NA where inputs missing)
\item "omit"  (drop rows with any missing eGFR/UACR that are mapped)
\item "error" (abort if any mapped input missing)
}}

\item{verbose}{Logical; if TRUE (default), emits progress messages via \code{hm_inform()}.}
}
\value{
Tibble with CKD_stage, Albuminuria_stage, KDIGO_risk.
}
\description{
Categorizes eGFR into G1-G5, albuminuria into A1-A3 (by UACR mg/g), and maps KDIGO risk.
}
\examples{
df <- data.frame(eGFR = c(95, 50), UACR = c(10, 200))
ckd_stage(df, list(eGFR = "eGFR", UACR = "UACR"))
}
\references{
\insertRef{kdigo2012ckd}{HealthMarkers}
}
