This function adds a dummy variable (edu_ind_access_d) to the individual-level dataframe for all school-aged children, taking 1 if the child accessed school and O otherwise. It also adds a no acces variable (edu_ind_no_access_d).
Usage
add_loop_edu_access_d(
loop,
ind_access = "edu_access",
yes = "yes",
no = "no",
pnta = "pnta",
dnk = "dnk",
ind_schooling_age_d = "edu_ind_schooling_age_d"
)
add_loop_edu_access_d_to_main(
main,
loop,
ind_access_d = "edu_ind_access_d",
ind_no_access_d = "edu_ind_no_access_d",
id_col_main = "uuid",
id_col_loop = "uuid"
)
Arguments
- loop
A data frame of individual-level data for the loop.
- ind_access
Column name for education access.
- yes
Value for yes..
- no
Value for no.
- pnta
Value for not applicable.
- dnk
Value for don't know.
- ind_schooling_age_d
Column name for the dummy variable of schooling age.
- main
A data frame of household-level data.
- ind_access_d
Column name for education access (binary).
- ind_no_access_d
Column name for education no access (binary).
- id_col_main
Column name for the unique identifier in the main dataset.
- id_col_loop
Column name for the unique identifier in the loop dataset.