transform_yearly: transform_yearly

View source: R/array_transform.R

transform_yearlyR Documentation

transform_yearly

Description

Transform standard proprotions output to indicators for single-unit array, applied yearly

Usage

transform_yearly(x, f, ...)

Arguments

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.

Value

an array with the first three margins and the last margin modified to be 'indicator', which can be any transformation of the three proprotions.


FPRgroup/FPEMcountry documentation built on April 24, 2023, 4:32 p.m.