全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
2452 2
2008-07-11
我用的是sas 9.1 “import" wizard. Excel2000. 
原来一共有100 个sample, 导入后多出200 行. 原来的sample 读的都是对的. 在这多出来的200行里, 所有格式是character函数都显示的是空格, 而所有格式是numeric的函数都显示的是missing value,  "."
有没有高手指导一下.
多谢多谢

二维码

扫码加我 拉你入群

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

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

全部回复
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条,后来把后面的两边条“回车”了!

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

二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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