Skip to contents

All functions

add_access_to_phone_best() add_access_to_phone_coverage()
Access to phone and coverage
add_age_cat() add_age_18_cat()
Add categories of age
add_barriers_assistance_any()
Any barriers to accessing humanitarian assistance encountered
add_child_sep_cat()
Add child separation categories
add_comp_edu()
Education sectoral composite - add score and dummy for in need
add_comp_foodsec()
Food security sectoral composite - add score and dummy for in need
add_comp_health()
Health composite - add score and dummy for in need
add_comp_prot()
Protection composite - add score and dummy for in need
add_comp_snfi()
SNFI sectoral composite - add score and dummy for in need
add_comp_wash()
WASH sectoral composite - add score and dummy for in need
add_drinking_water_source_cat() add_drinking_water_time_cat() add_drinking_water_time_threshold_cat() add_drinking_water_quality_jmp_cat()
Drinking water source recoding
add_expenditure_type_freq_rank()
Rank top 3 frequent expenditure types
add_expenditure_type_infreq_rank()
Rank top 3 infrequent expenditure types
add_expenditure_type_prop_freq()
Add frequent expenditure type amount as proportions of total frequent expenditure
add_expenditure_type_prop_infreq()
Add infrequent expenditure type amount as proportions of total infrequent expenditure
add_expenditure_type_zero_freq()
Add zero when the frequent expenditure type was skipped Note:Frequent expenditure = 30-day recall period
add_expenditure_type_zero_infreq()
Add zero when the infrequent expenditure type was skipped Note: Infrequent expenditure = 6-month recall period
add_fds_cannot_cat()
Add functional domestic space tasks categories
add_handwashing_facility_cat()
Add handwashing facility category - "Basic," "Limited," or "No facility."
add_hoh_final()
Head of household final values (from respondent skip logic)
add_income_source_prop()
Add income source amount as proportions of total income
add_income_source_rank()
Add income source categories, count, and ranking top 3
add_income_source_zero_to_sl()
Add zero when the income source was skipped
add_loop_age_dummy() add_loop_age_dummy_to_main() add_loop_age_gender_dummy() add_loop_age_gender_dummy_to_main()
Add a dummy variable for an age class
add_loop_edu_access_d() add_loop_edu_access_d_to_main()
Add education access dummy
add_loop_edu_barrier_protection_d() add_loop_edu_barrier_protection_d_to_main()
Add a variable for child protection barriers to education
add_loop_edu_disrupted_d() add_loop_edu_disrupted_d_to_main()
Add education disruption categories
add_loop_edu_ind_age_corrected() add_loop_edu_ind_schooling_age_d_to_main()
Add a correct schooling age to the loop
add_loop_healthcare_needed_cat() add_loop_healthcare_needed_cat_to_main()
Add healthcare needed category to loop data (incl. WGQ-SS if provided)
add_loop_wgq_ss() add_loop_wgq_ss_to_main()
Prepare dummy variables for each WG-SS component (individual data)
add_msni()
Add MSNI - add score and dummy for in need
add_occupancy_cat()
Add the category of occupancy arrangement
add_quantile_interval()
Add quantile intervals
add_received_assistance()
Add received assistance (combined calculation)
add_sanitation_facility_cat() add_sharing_sanitation_facility_cat() add_sharing_sanitation_facility_n_ind() add_sanitation_facility_jmp_cat()
Sanitation facility classification
add_shelter_issue_cat()
Add the number of shelter issues and related category
add_shelter_type_cat()
Combines both shelter types questions and recodes the type of shelter.
are_cols_numeric()
Stop statement values are not numeric
are_values_in_range()
Stop statement values are not in range
are_values_in_set()
Stop statement values are not in set
count_if_above_zero()
Create dummy variables and count across if above zero
if_not_in_stop()
Stop statement "If not in colnames" with colnames
impute_value() impute_median()
Impute missing values
is_in_need() is_in_acute_need()
Add a dummy variable 'is in need'
num_cat()
Add categories for a numeric variable
rank_top3_vars()
Function to add top 3 columns out of numeric variables
subvec_in()
Subvec in
subvec_not_in()
Subvec not in
sum_vars()
Function to sum up columns row-wise.
value_to_sl()
Add a value to variables that were skipped