SAS中文论坛

标题: 分类变量中会区分大小写吗? [打印本页]

作者: shiyiming    时间: 2006-6-19 20:35
标题: 分类变量中会区分大小写吗?
比如说有些证件类型是0,有些是x,有些是大写X,然后证件长度有些是15位,有些是18位,有些是9位,在分类统计中竟然没有区分大小写,
请教错在那里
proc freq data=sas;
tables idtype*dilength/nocol norow missing;
run;
此程序运行后没有把x和X分类统计,结果为
id         idtype
         9     15     18
0
x
如果我要区分x 和X的分类统计,应该怎么改程序,
谢谢
作者: shiyiming    时间: 2006-6-20 21:49
标题: RE: 怎样写INPUT才能正确输入数据
1. x和X should be 分类统计.  SAS treats it in the case sensitivity.

2.  Ensure that ID is not numeric 类型.  Otherwise, any non-numeric digit will be treated as missing value.




欢迎光临 SAS中文论坛 (http://mysas.net/forum/) Powered by Discuz! X3.2