Central function for processing the weights parameter in statistical functions. Handles both NULL weights (unweighted) and specified weights with validation.
Central function for processing the weights parameter in statistical functions. Handles both NULL weights (unweighted) and specified weights with validation.