[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: value labels
you've got to tell Stata which value label:
list var2 if sex=="male:lab_sex
Raoul C Reulen wrote:
I am trying to define value labels for a variable called 'sex'.
. label define lab_sex 1 male 2 female
. label values sex lab_sex
However, now I want to list a different variable according to the value label like this:
.list var2 if sex=="male"
but that gives me an error message, but:
.list var2 if sex==1
works. What have I done wrong?
* For searches and help try: