全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
1465 4
2015-07-22
请教请教,关于数据格式问题,在excel中单元格中显示5274105525424.74,复制到stata后变成了5274110000000,怎么处理,万分感谢,站着等。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2015-7-22 22:49:51
全选。然后设置成文本格式,重新输入就不会了
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2015-7-23 09:07:07
如果数据处理的时候不需要那么高的精度就不用非要纠结了。看这里help data_types
片段
    floats have about 7 digits of accuracy; the magnitude of the number does not matter.  Thus, 1234567 can be
    stored perfectly as a float, as can 1234567e+20.  The number 123456789, however, would be rounded to
    123456792.  In general, this rounding does not matter.

    If you are storing identification numbers, the rounding could matter.  If the identification numbers are
    integers and take 9 digits or less, store them as longs; otherwise, store them as doubles.  doubles have 16
    digits of accuracy.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2015-7-23 09:34:52
导入数据用insheet命令,然后加double选项即可
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2015-7-23 16:22:18
谢谢热心人解答,我已经解决了问题。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群