View source: R/array_transform.R
transform_yearly | R Documentation |
Transform standard proprotions output to indicators for single-unit array, applied yearly
transform_yearly(x, f, ...)
x |
an array of samples with margins: 1) chain 2) iteration 4) year 5) three proportions in standard order: 1) modern CPR 2) traditional CPR 3) unmet need for contraceptives |
f |
a function that takes a vector with at least three proportions in order: 1) modern CPR; 2) traditional CPR; and 3) unmet need and returns one or more indicators. |
an array with the first three margins and the last margin modified to be 'indicator', which can be any transformation of the three proprotions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.