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
pscore not working in STATA 16Hi, I have used pscore in the past on STATA 13. Today, I tried it for the first time on STATA 16 an…
Error using esrefline in meta forestplot in Stata 16SEHi I get an error "option esrefline not allowed" "r(198)" using meta forestplot. I have Stata v16SE.…
How to count distinct observations by group?Dear experts, I have a dataset like below. I'd like to count distinct firm numbers by province. For…
how to find matched pairs (treatments & controls) when running Coarsened Exact Matching (CEM) reposting the questionMy apology that I re-posted the same question. I assume that I didn't get any answers since my previ…
Odds ratio of my interaction variable is too bigHello, I am writing my research on the determinants of bribing. I am using interaction variables in…
Subscribe to:
Post Comments (Atom)
0 Response to Changing numeric label values while keeping existing label values
Post a Comment