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 2 3 4 5 6 | addGenderStratifiedIntervalFraction(
.data,
lower_strata,
upper_strata,
var_name = "aaf_xd"
)
|
.data |
a scenario |
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.