You are not logged in. You can browse but not post. Login or Register by clicking 'Login or Register' at the top-right of this page. For more information on Statalist, see the FAQ.
destring clinmeas_esr, gen (esr_new) force
clinmeas_esr already numeric; no generate
distring works as long as there are values which are strings in "clinmeas_esr" , however there are instances when all values are missing and distring treats "clinmeas_esr" as numeric.
I'm looking to variable "clinmeas_esr" in 25 .dta files (all files have the same name/format, as collected longitudinally). In most of them there are "accidentally" string data and this is why I use "destring clinmeas_esr, gen (esr_new) force" to force the non-numeric into missing. However, in 3 of the 25 files there is no data in "clinmeas_esr" and this when I get the "no generate" message
Comment