% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spirometry_markers.R
\name{spirometry_markers}
\alias{spirometry_markers}
\title{Spirometry markers: FEV1/FVC, LLN-based obstruction, GOLD grade, bronchodilator response}
\usage{
spirometry_markers(
  data,
  col_map = NULL,
  na_action = c("keep", "omit", "error", "ignore", "warn"),
  verbose = TRUE
)
}
\arguments{
\item{data}{Data frame with spirometry inputs.}

\item{col_map}{Named list:
fev1, fvc, fev1_post, fvc_post, age, height, sex, ethnicity}

\item{na_action}{One of c("keep","omit","error","ignore","warn").}

\item{verbose}{Logical; if TRUE (default), emits progress via rlang::inform.}
}
\value{
Tibble with ratio_pre, ratio_post, copd_flag_fixed, obstruction_lln, fev1_pp, fvc_pp, fev1_z, fvc_z, ratio_z, gold_grade, bdr_fev1, bdr_fvc.
}
\description{
Spirometry markers: FEV1/FVC, LLN-based obstruction, GOLD grade, bronchodilator response
}
\examples{
df <- data.frame(FEV1 = c(3.2, 2.1, 1.5), FVC = c(4.0, 3.0, 2.5))
spirometry_markers(df)
}
\references{
\insertRef{miller2005spirometry}{HealthMarkers} (spirometry standardisation methodology; background)
\insertRef{quanjer2012}{HealthMarkers}
\insertRef{gold2025copd}{HealthMarkers}
}
\concept{respiratory-markers}
