[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: string value labels
I have a list of ICD9 and ICD10 codes which are strings
which are assigned in another stat program as follows,
'R234'='Changes in skin texture'
'R238'='oth unspec skin changes'
'R25' ='Abnorm involuntary movements'
'R250'='Abnorm head movements'
thousnads more ...
and I would like to make
label define icd R233 "Spontaneous ecchymoses"
label define icd R234 "Changes in skin texture"
label define icd R238 "oth unspec skin changes"
label define icd R25 "Abnorm involuntary movements"
label define icd R250 "Abnorm head movements"
so that eventually when I do some descriptive statistics I will get results
using label values that gave the disease name and not the code.
But as I read the help on label define, the codes must be numbers. How can
one make value labels in Stata where the values are strings and not
integers? I have used encode to change the string variable to a number, but
.. how do I get a value label associated with it?
WA State Dept of Health
Olympia, WA USA
* For searches and help try: