The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Child Health » Penta1 to measles dropout (required urgent help)
Penta1 to measles dropout [message #24395] Sat, 07 May 2022 16:35 Go to previous message
adis is currently offline  adis
Messages: 20
Registered: May 2022
We are exploring the 2019 mini Ethiopian DHS data set and we have created penta1 to measles dropout using formula in STATA. However, after generating the new var the, third category was created with a label of negative number. We cant figure out why that was happened? would you please help us solve this problem?

********the stata command we used was

gen penta1_ms_Drop= DPT1-ms

label define penta1_ms 0"Not dropped" 1"Dropped"
label val penta1_ms_Drop penta1_ms_Drop

what command should be used to overcome the negative number?

thank you for your swift response

[Updated on: Sat, 07 May 2022 16:39]

Report message to a moderator

Read Message
Read Message
Previous Topic: matching WHO weight/height scores to older surveys
Next Topic: How to do logistic regression for infant mortality
Goto Forum:

Current Time: Sun Jun 23 04:28:09 Coordinated Universal Time 2024