I came across a weird problem with STATAs destring command (I am using
Stata8 on a XP environment).
My intention was to transfer a string variable "hospid" into a numeric
variable (regardless the usefulness of such an action).
So far I understand there are two ways to proceed: real(var) and destring
var. I would have expected that both commands will give identical results.
Unfortunately they don't.
So I compared both commands:
'generate hospidold = real(hospid)' and
'destring hospid, generate(hospidnew)'
When comparing hospidold and hospidnew I get slightly different results.