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
|
|
|
|
|
Re: Generating women who had their BP measured using Benin DHS 2017 [message #29393 is a reply to message #29266] |
Tue, 11 June 2024 15:41 |
Janet-DHS
Messages: 888 Registered: April 2022
|
Senior Member |
|
|
Following is a response from DHS staff member, Tom Pullum:
We apologize for the delay in this response. It is more than 3 weeks since your latest post.
If you still have a question, can you please state it more clearly? You say you are not trying to match a table in the final report, but (in your initial post) you said that you were unable to get "the right numbers". How do you know what are "the right numbers"? We can't help if we don't know what, exactly, you are trying to calculate.
|
|
|