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)
Cross-fold validation in two part models (health economics example)Dear statalisters, I am currently trying to develop a mapping algorithm from the EQ-5D-5L to a dise…
Multinomial logit/probit models with binary endogenous explanatory variableHi all, I would like to estimate the following equation: Y = b0 + b1T + X*beta + U1 (1) where T is…
Export results of -table- (Flexible table of summary statistics)Hi, I have a fairly complicated table of summary statistics that I would like to export to LaTeX au…
melogit Confidence Interval missing?Hi all, I'm running a multilevel mixed-effects logistic regression, with random intercepts per my c…
Overlay graphs, without the twoway commandDear all, I am trying to overlap this two graphs: Code: twoway (qfit HH_SLMPcom BSL_GDT) dotplot …
Subscribe to:
Post Comments (Atom)
0 Response to Changing value labels (dropping a part of value labels)
Post a Comment