Hi everyone,
I am working on a dataset which has coded variables whose labels are for example, like, "1. Yes; 0. No" or "10. Raj; 11. UP; 12. HP" etc. Basically all label values contain digits in the beginning of the label but the number of digits could differ depending on the variable.
I want to change the value labels such that the digits are dropped and I only retain the string value in all such variables, that is, "Yes; No" etc.
It would be great if someone can let me how I can do the above in an efficient manner than having to redefine the label values for each.
Thank you
Related Posts with Changing value labels (dropping a part of value labels)
Margins with interactions by groupDear all, I'm currently trying to analyze the interaction effects of regional health indicators (e.…
view underlying numeric value of dateHi there Just wondering if there is a quick way to view the underlying numeric value of a date in a …
Creating a new variable by count of specific disease IC9 code across multiple diagnosisHello, I am working on a dataset with almost 450,000 cases with several columns of diagnostic codes…
Keep specific rows in a variableHello, I have a dataset with two variables: time and title. Title refers to some headline news -- t…
command window (display actual commands not temp commands)Hi there When I run commands from a do file, the command window displays the commands a "temp" comma…
Subscribe to:
Post Comments (Atom)
0 Response to Changing value labels (dropping a part of value labels)
Post a Comment