Hi, I have a dataset with personal data. There is a household identifier so I believe it can be converted into household data. But I am a bit lost.
A quick look sorting by hhld_id shows me that household members may have different occupations.
I have generated a dummy variable for that occupation group that is of my interest (lawyers, occupation code 25)
tab occupation if occupation==25, gen(occupation_d)
However, if I keep only those occupation where occupation_d ==1, that will end in missing valuable data from household (for instance I would miss those respondents whose job is not lawyers).
I would be interested in keeping ALL household data if either the head of household or partner is a lawyer but the other member could be employed (in the same or different occupation) or inactive. This could mean that both household member could be working in the same occupation or not necessarily.
Variables I have are hhld_id, sex, age (of respondent), employment_status (==1 employed, ==2 unemployed, ==3 inactive) among others. Not sure if the question is clear and I explained properly.
Would be absolute pleased if someone has any idea on how to cope with this.
Thanks
A quick look sorting by hhld_id shows me that household members may have different occupations.
I have generated a dummy variable for that occupation group that is of my interest (lawyers, occupation code 25)
tab occupation if occupation==25, gen(occupation_d)
However, if I keep only those occupation where occupation_d ==1, that will end in missing valuable data from household (for instance I would miss those respondents whose job is not lawyers).
I would be interested in keeping ALL household data if either the head of household or partner is a lawyer but the other member could be employed (in the same or different occupation) or inactive. This could mean that both household member could be working in the same occupation or not necessarily.
Variables I have are hhld_id, sex, age (of respondent), employment_status (==1 employed, ==2 unemployed, ==3 inactive) among others. Not sure if the question is clear and I explained properly.
Would be absolute pleased if someone has any idea on how to cope with this.
Thanks
Comment