The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Biomarkers » Generating women who had their BP measured using Benin DHS 2017 (STATA)
Generating women who had their BP measured using Benin DHS 2017 [message #29246] Tue, 14 May 2024 20:22 Go to next message
Nana is currently offline  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 #29261 is a reply to message #29246] Thu, 16 May 2024 09:42 Go to previous messageGo to next message
Janet-DHS is currently offline  Janet-DHS
Messages: 888
Registered: April 2022
Senior Member
Following is a response from DHS staff member, Tom Pullum:

Can you please clarify your question? Are you trying to match a table in the final report? Or one of the constructed variables in the IR file? If so, which table or variable?
Re: Generating women who had their BP measured using Benin DHS 2017 [message #29266 is a reply to message #29261] Thu, 16 May 2024 14:26 Go to previous messageGo to next message
Nana is currently offline  Nana
Messages: 11
Registered: February 2024
Member
Hello Janet,

Thank you so much for getting back to me. My intention is not to generate the tables in the report.
My dependent variable is hypertension- So I generated a new variable by combining the mean blood pressure and self-reported. However, the men data had the three measurements of hypertension without the mean. So I created the mean variable.

For Cameroon there is only self-reported hypertension.

Thank you so much for your feedback.

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 Go to previous message
Janet-DHS is currently offline  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.
Previous Topic: Benin and Cameroon DHS 2-17-2018
Next Topic: Adult aneamia
Goto Forum:
  


Current Time: Fri Nov 22 23:40:16 Coordinated Universal Time 2024