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)
To transform cross-section data to panel dataDear Sir/Madam, I am doing the research on commercial jet aircraft, and each sample has "lease star…
Facing problem in analyzing unbalanced panel data / using gmm both system and differenceHi dear all i am getting the below error of not sorting of data before running gmm...can you share w…
Panel data gaps and minimum number of observationsDear Statalisters, I am currently working on my Master Thesis and thus I analyze company financials…
How to validate logit model?Hi, any ideas how to validate the logit model in Stata? I have a received a comment that there is n…
rlaplace(m,b) command not workingHi, I would like to generate a random variable according to the laplace distribution. The command '…
Subscribe to:
Post Comments (Atom)
0 Response to Changing value labels (dropping a part of value labels)
Post a Comment