首页 > 其他 > 详细

数学之路-sas备忘(11)

时间:2015-03-15 23:01:43      阅读:360      评论:0      收藏:0      [点我收藏+]
data heartemp;
   set Sashelp.Heart;
    if BP_Status=‘Normal‘ then delete;*血压正常的不写入数据集,drop排除变量,delete排除观测;
   keep status sex  Weight_Status BP_Status;
   rename BP_Status = Bloodpressure;
   run;
proc print data= heartemp (obs=10);
run;
data mytemp;
    input x y;
z=x+y;
/*分别统计奇偶数,evennumber+1完成累加*/
if mod(z,2)=0 then evennumber+1;
else oddnumber+1;
cards;
12 55
68 6
8 9
788 999
114 86 
28 97 
38 67 
48 97
78 234
;
run;
proc print;

run;

本博客所有内容是原创,如果转载请注明来源

http://blog.csdn.net/myhaspl/


技术分享

数学之路-sas备忘(11)

原文:http://blog.csdn.net/myhaspl/article/details/44281509

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!