Hi,
I have 5 variables SexFemale_1, SexAnon_1, SexIDU_1, SexIntoxHigh_1, ExcSex_1 with responses "yes" or 'no" and I want to combine them into 1 variable non_MSM with all the yes together and all the no together. I need help since am new to stata. I used the egen command but don't know if this is correct
I used egen non_MSM = rowmax (SexFemale_1, SexAnon_1, SexIDU_1, SexIntoxHigh_1, ExcSex_1)
tab non_MSM
I have 5 variables SexFemale_1, SexAnon_1, SexIDU_1, SexIntoxHigh_1, ExcSex_1 with responses "yes" or 'no" and I want to combine them into 1 variable non_MSM with all the yes together and all the no together. I need help since am new to stata. I used the egen command but don't know if this is correct
I used egen non_MSM = rowmax (SexFemale_1, SexAnon_1, SexIDU_1, SexIntoxHigh_1, ExcSex_1)
tab non_MSM
Comment