Re: Risky & Condomless Sex [message #19185 is a reply to message #19184] |
Wed, 06 May 2020 20:26 |
Yawo
Messages: 45 Registered: February 2019
|
Member |
|
|
thanks very much for the clarification. It makes sense now.
Just to clarify, does this code measure condom use by people who have at least one other spouse in addition to their spouse/partner?
//Have two or more sexual partners and used condom at last sex
gen hk_cond_2plus= (inrange(v527,100,251) | inrange(v527,300,311)) & inrange(v766b,2,99) & v761==1
replace hk_cond_2plus=. if v766b<2 // IMPORTANT TO EXCLUDE PEOPLE WHO HAVE NO PARTNERS OR ONE PARTNER
label values hk_cond_2plus yesno
label var hk_cond_2plus "Have two or more sexual partners in the past 12 months and used a condom at last sex"
I want to be sure since V766b includes spouse, so the variable 2 or more partners excludes those who have no partners and those who have only 1 partner.
Besides, don't we have to account for missing cases (i.e., excluding people who have not had sex within the past 12 months?)
Thanks - cY
[Updated on: Wed, 06 May 2020 22:41] Report message to a moderator
|
|
|