Head of household final values (from respondent skip logic)
Source:R/add_hoh_final.R
add_hoh_final.Rd
Head of household final values (from respondent skip logic)
Usage
add_hoh_final(
df,
resp_hoh_yn = "resp_hoh_yn",
yes = "yes",
no = "no",
hoh_gender = "hoh_gender",
hoh_age = "hoh_age",
resp_gender = "resp_gender",
resp_age = "resp_age"
)
Arguments
- df
The input dataframe.
- resp_hoh_yn
The column name for whether the respondent is the head of household (hoh) yes/no indicator.
- yes
The value for 'yes' in the 'resp_hoh_yn' column.
- no
The value for 'no' in the 'resp_hoh_yn' column.
- hoh_gender
The column name for the household (hoh) gender.
- hoh_age
The column name for the household (hoh) age.
- resp_gender
The column name for the respondent (resp) gender.
- resp_age
The column name for the respondent (resp) age.