Aggregates all relevant CEQ results by variable.
calc_agg_by.Rd
Aggregates all relevant CEQ results by variable.
Arguments
- dta
data frame with the simulation results.
- by_var
character name of the grouping variable
- wt_var
character name of a single variable that should be used as a weighting variable in calculation. Default is get_wt_nm()$var. If wt_var is not provided or the one provided is not present in `dta`, warning will be prompted.