% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helpers_table1.R
\name{get_weighted_stats}
\alias{get_weighted_stats}
\title{Compute weighted mean, SD, and total weight from a survey design}
\usage{
get_weighted_stats(des, var_name)
}
\arguments{
\item{des}{A \code{survey.design} object (from \pkg{survey}).}

\item{var_name}{Character string. Name of the variable in \code{des$variables}.}
}
\value{
A named numeric vector with elements \code{mean}, \code{sd}, and
\code{sum_w}. Returns \code{c(mean = NA, sd = NA, sum_w = 0)} when all
values are \code{NA}.
}
\description{
Compute weighted mean, SD, and total weight from a survey design
}
\keyword{internal}
