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)
Nonlinear decomposition with interaction effectHi all, I am studying the effect of child health on educational outcomes. My IV is the likelihood of…
Predict commanddear all, I use stata 13. When I do "predict r, rstudent", "predict c, cooksd", etc, I have the foll…
Past Stata "platform names" for "package files" (help usersite)In Stata 16, the output of help usersite tells us about the "g" lines in the package file. g sp…
Multiple missing characteristics - Using egen to count number of members in householdI wish to count the number of members in a household for the given survey data. hh_id memgndr_1 m…
Robreg mm - sDear I have some trouble with robreg mm or robreg s. When I run the regression I have the error mes…
Subscribe to:
Post Comments (Atom)
0 Response to Changing value labels (dropping a part of value labels)
Post a Comment