% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{add_cluster_sizes}
\alias{add_cluster_sizes}
\title{Add Cluster-Size Column for Inverse-Cluster-Size Weighting}
\usage{
add_cluster_sizes(data, cid, id)
}
\arguments{
\item{data}{A long-format data frame containing \code{cid} and \code{id}.}

\item{cid}{Character. Cluster ID column name.}

\item{id}{Character. Individual ID column name.}
}
\value{
The input data with an added \code{clust.size} column.
}
\description{
Computes the number of distinct individuals per cluster and merges
it back into the long-format data as a \code{clust.size} column.
}
\keyword{internal}
