Compute a given scenario's AAF for current drinkers in the given intervals of consumption, stratified over the given values of the gender variable, and add it to the scenario.
1 | computeGenderStratifiedIntervalFraction(.data, lower_strata, upper_strata)
|
.data |
a scenario |
strata |
a list where names(list) intersects with .data$gender, and each entry of strata is a list with a "lower" and "upper" bound of consumption |
var_name |
the name of the new variable to be added |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.