|
|
沙发

楼主 |
发表于 2010-1-26 13:50:37
|
只看该作者
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; |
|