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
Interpretation for Vector Error Correction Model with 4 variables and 2 cointegration vectorsI have 4 time series variables, y, x, z, w,, which are filtered by tsmooth command. I tried to do co…
Obtaining main results after jwdidHello, I have just started to use jwdid command, however, I cannot see the effect on main coefficien…
Cluster based on string similarityHey Community, I'm quite new to working with Stata and therefore desperately looking for help! I ha…
Selectively list date variable as matrix row name using macroGreetings, I'm hoping for some aid here. Having searched the forum for a solution, I've yet to find …
Code help: Monte Carlo simulationI've attached a small Do file for a Monte Carlo Simulation I am running for an economics class. For …
Subscribe to:
Post Comments (Atom)
0 Response to Changing numeric label values while keeping existing label values
Post a Comment