Generating women who had their BP measured using Benin DHS 2017 [message #29246] |
Tue, 14 May 2024 20:22 |
Nana
Messages: 11 Registered: February 2024
|
Member |
|
|
Hi everyone,
I have been trying to generate a variable to account for women who had their BP measured by using the variables s1435s and s1435d (mean of systolic and diastolic).
This is the code I used but am not getting the right numbers. Please, can anyone help me identify what the problem is?
use BJIR71FL.DTA, clear
**Generating weights divided by 1 million
gen wt=v005/1000000
**Generating BP_measaured
gen bp_measured=.
//**Replace the values with 0 and 1 with BP_measured hypertension
replace bp_measured=0 if s1435s <140 & s1435d<90
replace bp_measured=1 if s1435s >140 & s1435d >90
tab bp_measured,missing
I would be grateful if I could get some assistance.
Thank you.
Nana
|
|
|