% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helpers_table1.R
\name{get_weighted_prop}
\alias{get_weighted_prop}
\title{Compute weighted proportion for a single factor level}
\usage{
get_weighted_prop(design, var, level)
}
\arguments{
\item{design}{A \code{survey.design} object (from \pkg{survey}).}

\item{var}{Character string. Name of the categorical variable.}

\item{level}{Character string. The factor level whose proportion is needed.}
}
\value{
Numeric scalar: the weighted proportion, 0 if the level is absent,
or \code{NA_real_} on error.
}
\description{
Compute weighted proportion for a single factor level
}
\keyword{internal}
