% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/contact-matrix-utils.R
\name{impute_ages}
\alias{impute_ages}
\title{Impute ages from ranges (generic helper)}
\usage{
impute_ages(data, prefix, estimate = c("mean", "sample", "missing"))
}
\arguments{
\item{data}{A data.table containing age data}

\item{prefix}{Column name prefix: "part_age" for participants, "cnt_age" for
contacts}

\item{estimate}{Imputation method: "mean", "sample", or "missing"}
}
\value{
The data with ages imputed according to the specified method
}
\description{
Generic function to impute ages from min/max ranges. Works for both
participant and contact data by specifying the column prefix.
}
\keyword{internal}
