Skip to contents

Aggregates all relevant CEQ results by variable.

Usage

calc_agg_by(dta, vars, by_var, wt_var = get_wt_nm())

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.