The categories should be:
- neither spouse says that the wife is involved
- both say that the wife is involved
- the wife says that she is involved, but the husband reports that she is not
- husband says the wife is involved, but she reports she is not
Household ID (hhid); Individual's ID within the household (famid= 1 for males and 2 for females); and a binary variable (wifedec) saying if the respondent said the wife was involved (1) or not (0)
I have been trying (unsuccessfully) different combinations of commands to create the categorical variable.
But overall, I want to end with something like:
gen agreement1=.
by (hhid): replace agreement1=
1 if famid 1 & 2 (male and female) responded wifedec==0 (wife is not involved)
2 if famid 1 & 2 (male and female) responded wifedec==1 (wife is involved)
3 if famid 2 (female) responded wifedec==1 & famid 1(male) responded wifedec==0
4 if famid 1 (male) responded wifedec==1 & famid 2(female) responded wifedec==0
Has anyone ever generated a similar variable?
I'm using Stata/IC 16.0
Thanks!!!
Hazel Velasco
Graduate Student Rural Sociology & International Agriculture and Development
0 Response to Creating a new categorical variable by spousal agreement/disagreement
Post a Comment