Hi, I am new to stata and i was wondering if anyone can help.
I am analyzing the DHS and I am interested in extracting a subvariable from a variable. I am interested in contraceptive use by region in which contraceptive use has been collected by as region(v010) and contraceptive use(v310) the regions are divided as ss,se,sw, nc,ne,nw (6 regions). i am only interested in ss se and ne regions contraceptive use but i am also interested in analysing contraceptive use in se, ss and ne regions by education, marital status, age, etc. my question is how can i create a new variable that has contraceptive use by ss,se and ne regions so that i can use it for further analysis by age,marital status etc. can anyone advise.
I am analyzing the DHS and I am interested in extracting a subvariable from a variable. I am interested in contraceptive use by region in which contraceptive use has been collected by as region(v010) and contraceptive use(v310) the regions are divided as ss,se,sw, nc,ne,nw (6 regions). i am only interested in ss se and ne regions contraceptive use but i am also interested in analysing contraceptive use in se, ss and ne regions by education, marital status, age, etc. my question is how can i create a new variable that has contraceptive use by ss,se and ne regions so that i can use it for further analysis by age,marital status etc. can anyone advise.
Comment