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
Generate table or data set containing test results from -signtest-Hi I am currently having problems with how to efficiently store test results that I obtain from runn…
Issue about Counting Time Spans Sorted by Specific VariablesHi Statalisters, I have such a sample dataset and want to count the year span sorted by specific va…
no observations error messageHi all, Can someone explain to me why I get the 'no observations' error message when I execute the …
Query on "characteristic contents too long" errorDear Statalisters, I am employing a partial linear regression model (plreg) in a cross-sectional co…
count categorical values by using conditions row wiseHi, I have a a dataset such as below input str3(A B C) str3(X Y Z) Yes No No Yes No No No No No Yes…
Subscribe to:
Post Comments (Atom)
0 Response to Merging variables
Post a Comment