标题: 数据标准化 [打印本页] 作者: shiyiming 时间: 2010-1-25 17:09 标题: 数据标准化 [size=200:1p7kaai4][color=#FF0000:1p7kaai4][b:1p7kaai4]1.两个数据变量同时同方向变化,如果要对这两个变量作差以后的值标准化,该用什么方法(平均值、方差这个方法不算)?
2.在SAS中,如何实现对读入的数据进行计算,比如对一个班级数据成绩中,统计及格学生的人数。[/b:1p7kaai4][/color:1p7kaai4][/size:1p7kaai4]作者: shiyiming 时间: 2010-1-26 13:50 标题: Re: 数据标准化 1.没看懂问题,不知道变量啥叫同时同方向变化(you'd better give some examples to help us to understand what you really want to ask). in general, z value is the standard values for normal data: (x2-x1)/(s/srt(n))
2.可以用sql,也可以用sas data step, 方法很多.
比如,rawdata 中score 是学生的成绩
proc sql;
create table grades as
select *, (score>60) as flag from rawdata
having calculates flag=1
order by score;
quit;