楼主: suzy_suzy
2489 2

那位高手知道从Excel中导入SAS的数据为什么会出现额外的sample? [推广有奖]

  • 0关注
  • 0粉丝

学前班

50%

还不是VIP/贵宾

-

威望
0
论坛币
28 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
63 点
帖子
2
精华
0
在线时间
0 小时
注册时间
2008-7-11
最后登录
2008-7-11

楼主
suzy_suzy 发表于 2008-7-11 10:44:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
我用的是sas 9.1 “import" wizard. Excel2000. 
原来一共有100 个sample, 导入后多出200 行. 原来的sample 读的都是对的. 在这多出来的200行里, 所有格式是character函数都显示的是空格, 而所有格式是numeric的函数都显示的是missing value,  "."
有没有高手指导一下.
多谢多谢

二维码

扫码加我 拉你入群

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

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

关键词:Sample EXCEL xcel sas的 exce 数据 EXCEL 高手 SAS Sample

沙发
eco-china 发表于 2008-7-11 19:13:00

以下是对EXCEL文件的注意事项:

  1. As much as possible, the values of a variable must be of the same type. SAS uses the first 8 observations to determine the TYPE to assign to the imported column(s). In case of mixed-types, the type that is the most dominant in the first 8 observations will be applied. In case of a tie i.e., four (4) character and four (4) numeric variables, the numeric type takes precedence. Once imported, values that do not conform to the assigned type will be converted to missing values.
  2. Make sure that rows immediately following the last observation and columns immediately following the last variable are not activated by deleting them so that SAS will not mistake them for additional observations or additional columns, respectively.

所以,有可能你的EXCEL文件违反了第二条。

希望能够解决你的问题!

藤椅
路斯菲尓 发表于 2008-7-12 10:30:00

可能是你excel之前的记录是300条,后来把后面的两边条“回车”了!

纯属个人意见,仅供参考!

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-29 07:22