campbell0912 发表于 2017-1-11 00:17 
你里面有一些数据格式是numerical 吧
谢谢你的回答。
但是不明白,stata中的数据类型不就只有字符串型,数值型,日期型,其中数值型包括byte、int、long、float、double这几种。所以 1. 数据格式是numerical 是什么意思? 2.数据格式为numerical 的数据直接destring…replace后就变为int 吗?那int 格式的数据des后为什么显示的仍然是string呢?3.数据格式为numerical 的数据为什么可以destring…gen()生成新变量后就转化为数值型啦?这种数据有没有其他什么简单方法destring
不好意思,问题有点多