Add weights to a data frame for weighted estimates

add_weights(weightedEstimates, weightProfiles, weightProfileNames)

Arguments

weightedEstimates

A `weightedEstimates` data frame as returned by [mdmcda::build_weighted_estimate_df()].

weightProfiles

The weight profiles object

weightProfileNames

The name(s) of the weight profile(s) to add weights for.

Value

The `weightedEstimates` object with added weights.