楼主: nc3722
1519 4

[数据管理求助] 数据格式问题,末尾全是00000 [推广有奖]

  • 8关注
  • 2粉丝

博士生

4%

还不是VIP/贵宾

-

威望
0
论坛币
1000 个
通用积分
4.5000
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
2314 点
帖子
62
精华
0
在线时间
355 小时
注册时间
2006-12-7
最后登录
2025-6-21

楼主
nc3722 发表于 2015-7-22 22:39:54 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
请教请教,关于数据格式问题,在excel中单元格中显示5274105525424.74,复制到stata后变成了5274110000000,怎么处理,万分感谢,站着等。
二维码

扫码加我 拉你入群

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

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

关键词:数据格式 EXCEL Stata 怎么处理 万分感谢 excel stata 数据格式

沙发
loveflour 发表于 2015-7-22 22:49:51 来自手机
全选。然后设置成文本格式,重新输入就不会了
已有 1 人评分经验 热心指数 收起 理由
夏目贵志 + 5 + 1 热心帮助其他会员

总评分: 经验 + 5  热心指数 + 1   查看全部评分

藤椅
夏目贵志 发表于 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.

板凳
ywh19860616 发表于 2015-7-23 09:34:52
导入数据用insheet命令,然后加double选项即可
已有 1 人评分学术水平 热心指数 收起 理由
夏目贵志 + 1 + 1 热心帮助其他会员

总评分: 学术水平 + 1  热心指数 + 1   查看全部评分

报纸
nc3722 发表于 2015-7-23 16:22:18
谢谢热心人解答,我已经解决了问题。

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-4 17:07