Hi,
I have a variable Gender. The actual values are 0 or 1. I then gave it the value label genderlab2. You can see 0=Female and 1=Male:
As part of a much longer code, I would like to display just "Male" or just "Female". Tried something like this, but clearly it is not right:
Appreciate any guidance! Thanks!
I have a variable Gender. The actual values are 0 or 1. I then gave it the value label genderlab2. You can see 0=Female and 1=Male:
Code:
. label list
genderlab2:
0 Female
1 Male
As part of a much longer code, I would like to display just "Male" or just "Female". Tried something like this, but clearly it is not right:
Code:
. di "`: value label Gender'==1" genderlab2==1
Code:
Appreciate any guidance! Thanks!
Comment