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
Esttab problem with interaction fixed effectHello, I am using a survey dataset (the World Values Survey) and trying out the following code in S…
How to open a .dat data file in STATA?Hello! I am currently helping out on a research project that previous used SPSS to do statistical a…
Problem in String Matching using listsI have sample individual addresses data which is pretty unclean. There more than 400000 observations…
GSEM in STATAHello. I'm a new user of STATA and struggle to get thinks done. I want to build a GSEM model where t…
Granger test and var (xtvar, prHi everyone, I am encountering a few problems when I tried to run var codes to be followed by a Gra…
Subscribe to:
Post Comments (Atom)
0 Response to Changing numeric label values while keeping existing label values
Post a Comment