Penta1 to measles dropout [message #24395] |
Sat, 07 May 2022 16:35 |
adis
Messages: 20 Registered: May 2022
|
Member |
|
|
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
|
|
|