标签:
1、缺失值有数值缺失,字符缺失;
2、问题:PROC TABULATE制表CLASS有缺失,目的将缺失值域某个非缺失值归属为一类,其他的按照实际操作,剩余用OTHER.
PROC FORMAT; VALUE BASEFMT ‘‘, ‘0‘ = "01. Missing" ‘1‘ = "02. A CLASS"
‘2‘ = "03. B CLASS"
OTHER = "04. OTHERS"
;
RUN;
/* 结果,‘‘归在了"04. OTHER"*/
/* 经试验,将(‘‘)改成(‘ ‘)即可正确,即缺失归在了"01. Missing"*/
标签:
原文地址:http://www.cnblogs.com/ightar/p/5178558.html