Description Usage Arguments Value See Also Examples
parity_adj
calculates adjusted parity ratios.
1 | parity_adj(df, col, a, b, varname, val_status = FALSE)
|
df |
a data frame with a key / value columns. |
col |
indicator key column. |
a |
indicator for 'disadvantaged' group (numerator). |
b |
indicator for 'advantaged' group (denominator). |
varname |
name for calculated indice (character). |
val_status |
For use with data with flags for estimated observations. If 'TRUE' will calculate flag for indice (requires flag column to be named 'val_status' and estimates lablled as 'E'. |
A data frame.
Other summarise: aggregates
,
compute_aggregate
1 2 3 4 5 6 7 8 | parity_adj(df, indicator, ger.female, ger.male, "ger.gpia", val_status = FALSE)
parity_indices <- list(df = list("df","df"),
col = list("ind", "ind"),
a = list("adult.profiliteracy.f","adult.profinumeracy.f"),
b = list("adult.profiliteracy.m", "adult.profinumeracy.m"),
varname = list("adult.profiliteracy.gpia", "adult.profinumeracy.gpia")) %>%
pmap(parity_adj) %>%
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.