Hi,

I am trying to define a label for non-numeric values of a variable.

For example, I have a variable X with values 1, 2, 3a

I want to define a label for this variable

label define x1 1 "complete" 2 "incomplete" 3a "partial complete"

However, Stata gives an error of invalid sytax and will not assign label for 3a.

I also tried to recode the values for the variable:

recode X (3a=3)

but Stata gives an error message of unknown el 3a in rule

Would appreciate if anyone could help with this issue.

Thanks!

I am trying to define a label for non-numeric values of a variable.

For example, I have a variable X with values 1, 2, 3a

I want to define a label for this variable

label define x1 1 "complete" 2 "incomplete" 3a "partial complete"

However, Stata gives an error of invalid sytax and will not assign label for 3a.

I also tried to recode the values for the variable:

recode X (3a=3)

but Stata gives an error message of unknown el 3a in rule

Would appreciate if anyone could help with this issue.

Thanks!

## Comment