Dear Statalists,
I have a question regarding modifying label values. I have a string variable with label names from one dataset (i.e. country name). This variable will act as ID to merge with other dataset, thus I want to assign particular values based on its name. Encode will not work in my case as the label values won't match the values in the second dataset given they have the same name. However, without making it a numeric variable, I can't define the label value either. I would be very grateful if you can help me with this issue.
Many thanks,
Thanh
Related Posts with Changing numeric label values while keeping existing label values
Reading in 10GB .csv dataset with not enough memory on my machineHello everyone, I need help reading in a 10GB .csv dataset with very limited physical memory on my c…
Predicting Probabilities with Fixed Effects Ordered Logit ModelHello, I am looking at whether losing a partner effects an individual's political view. I have a pan…
New to stata. Need some heplHi, I am new to Stata 15 and I need some help. I have two databases (database_y and database_x). I …
Changing values of two variables within one (parallel) loopDear Stata Users, as mentioned in the thread title I got a question regarding parallel looping in S…
methodological question: matching/imputation based on two datasetsHello, I struggle to find the right method for what I want to do using two household surveys. I hav…
Subscribe to:
Post Comments (Atom)
0 Response to Changing numeric label values while keeping existing label values
Post a Comment