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 previous 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
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Benin and Cameroon DHS 2-17-2018
Next Topic: Adult aneamia
Goto Forum:
  


Current Time: Sat Nov 30 06:35:25 Coordinated Universal Time 2024