% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/indicators_alcohol.R
\name{compute_alcohol_indicators}
\alias{compute_alcohol_indicators}
\title{Compute Alcohol Use Indicators}
\usage{
compute_alcohol_indicators(design)
}
\arguments{
\item{design}{A survey design object from \code{\link[=setup_survey_design]{setup_survey_design()}}.}
}
\value{
A named list of survey estimates. Each element contains proportion
estimates (as tibble with columns: estimate, lower, upper, etc.) for:
\itemize{
\item \code{current_alcohol_total}: current alcohol use, overall
\item \code{current_alcohol_by_sex}: current alcohol use, by sex
\item \code{current_alcohol_by_age}: current alcohol use, by age group
\item \code{heavy_episodic_total}: heavy episodic drinking, overall
\item \code{heavy_episodic_by_sex}: heavy episodic drinking, by sex
\item \code{heavy_episodic_by_age}: heavy episodic drinking, by age group
(if the corresponding variables exist in design)
}
}
\description{
Calculates prevalence of alcohol use from a survey design object.
Computes proportions of current alcohol use and heavy episodic drinking,
stratified by sex and age group where available.
}
\examples{
\donttest{
  test_data <- generate_test_data(n = 500, seed = 42)
  cols <- detect_steps_columns(test_data)
  clean <- clean_steps_data(test_data, cols)
  design <- setup_survey_design(clean)
  alcohol_results <- compute_alcohol_indicators(design)
}
}
\seealso{
\code{\link[=compute_all_indicators]{compute_all_indicators()}}
}
