Hi everyone,
I have 4 binary variables:
#1. Tested for HIV during antenatal care (coded as 0/1)
#2. Got results of HIV test done during antenatal care (coded as 0/1)
#3. Tested for HIV at the time of delivery (coded as 0/1)
#4. Got results of HIV test done at the time of delivery (coded as 0/1)
I would like to combine these 4 variables into a single binary outcome variable, which is defined as "Got tested for HIV during antenatal care AND/OR at the time of delivery AND knew the test results". I have tried using "replace var =...... if)", but I didn't work as desired. May anyone here help me please? Thank you!
Related Posts with Merging variables
Measuring level of tax Avoidance before and after tax reformHello everyone, I am currently writing my thesis and been having problems with some analysis. I wan…
Midgap plots, anyone? Or, box plots without boxesI recently stumbled across a reference to "midgap plots" and thought what are they? Here's the refer…
reshape help pleaseHello, I am looking to reshape the dataset below (i used dataex but the variable names are not matc…
Matching within strata with PSMatch2Hello, I am implementing the following routine found in psmath2 help file because I have few variab…
Percentage change using a baseHi, I have a panel with items and prices. I have one group of items that belongs to one geographical…
Subscribe to:
Post Comments (Atom)
0 Response to Merging variables
Post a Comment