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
Extract Year from a string variableHi everyone, I would like to ask some help in order to extract year from a string variable (year of …
how to access STATA 16 sever through MAC terminalCurrently, I successfullly installed Stata on my server and can use "./stata" to initiate the progra…
Logit ModelHello, Which estimator does a logit model use when we do not specify the type of estimator in a log…
How to calculate buy-and-hold return based on daily return dataHello, I have daily data for multiple firms. How to calculate buy-and-hold return based on daily ret…
Sum variables and division of the result Hi, I would like to sum two variables of my sample and then divide these two results together. Fin…
Subscribe to:
Post Comments (Atom)
0 Response to destring non numeric values
Post a Comment