Hello
I am Hatem Ali, STATA user.
I have a 2 large dataset that I am trying to merge
The common variable in these 2 datasets is called: trr-id_code.
However, This variable is a string non-numeric variable
When I try to merge one by one using key variable. STATA doesnt do and say variables are unequal.
when I tried to destring it, I got the following message:
destring trr_id_code, generate(hhh)
trr_id_code contains nonnumeric characters; no generate
1st question: Is there a way I can destring this variable so I can use it for merging?
2nd question: can I use : merge one to one by observation instead?
Looking forward to hear back from you
Related Posts with destring non numeric values
invalid syntax when referencing to variable labels in loopsI'm trying to refer to the labels of variables (to include these in graph titles) when looping on a …
Panel data: can the model be estimated?I am reading the book Baum, C. F. (2006). An Introduction to Modern Econometrics Using Stata (Stata…
resetxt locks on small data setWhen I run: Code: resetxt esg totmktval, id(id) it(date) model(xtbe) I get: Code: ===============…
putting multiple graphs for quantitative vs categorical variables in one graphHi, I have 7 variables, which are actually for one survey question that asks respondents to rank th…
How to export the freqs of multiple variables from stata to excelHello , I have been using tabout to output summaries for 2 X 2 tables quite well. Now a new need ha…
Subscribe to:
Post Comments (Atom)
0 Response to destring non numeric values
Post a Comment