加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

【异常值剔除】:与平均值的偏差超过两倍标准差

(2012-10-24 15:13:14)
标签:

杂谈

分类: SAS/EM

proc means data=camel.p mean std noprint;
var pay;
output out=camel.p_cshu0(keep=mean1 std1) mean=mean1 std=std1;
run;
data _null_;
    set camel.p_cshu;
    call symputx('mean0',mean1);
    call symputx('std0',std1);
run;
data camel.chuli;
    set camel.p;
    if abs(pay-&mean1.)>2*&std1. then delete;
run;

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有