Protection composite - add score and dummy for in need
Usage
add_comp_prot(
df,
child_sep_cat = "prot_child_sep_cat",
child_sep_cat_levels = c("none", "at_least_one_very_severe", "at_least_one_severe",
"at_least_one_non_severe", "undefined"),
concern_freq_cope = "prot_concern_freq_cope",
concern_freq_displaced = "prot_concern_freq_displaced",
concern_hh_freq_kidnapping = "prot_concern_hh_freq_kidnapping",
concern_hh_freq_discrimination = "prot_concern_hh_freq_discrimination",
concern_levels = c("always", "several_times", "once_or_twice", "never", "dnk", "pnta")
)
Arguments
- df
A data frame.
- child_sep_cat
Column name for child separation category.
- child_sep_cat_levels
Levels for child separation category.
- concern_freq_cope
Column name for concern frequency cope.
- concern_freq_displaced
Column name for concern frequency displaced.
- concern_hh_freq_kidnapping
Column name for concern household frequency kidnapping.
- concern_hh_freq_discrimination
Column name for concern household frequency discrimination.
- concern_levels
Levels for concern variables.