zoukankan      html  css  js  c++  java
  • 【SAS NOTE】在proc means中根据某变量的范围进行统计+proc format

     1 proc format;
     2     value feegroup
     3     low-500='0~500'
     4     501-1000='500~1000'
     5     1001-5000='1000~5000'
     6     5001-high='>5000';
     7 run;
     8 proc means data=guanhui.buedetail_same_sum_fee;
     9     var serv_number_num;
    10     class sumfee;
    11     format sumfee feegroup.;
    12 run;

    注意:

    1、proc format 后value后面不加分号,直到组别分完。

    2、在means后format的数据类型中需要加上“.”.

    3、proc means的选项(sum n min max)等放在

    1 proc means data=guanhui.buedetail_same_sum_fee sum;
    2     var serv_number_num;
    3     class sumfee;
    4     format sumfee feegroup.;
    5 run;
  • 相关阅读:
    SRM482
    SRM481
    SRM480
    SRM479
    SRM478
    vue-cli 3 is not a modual err
    .vimrc
    css3 导入字体
    class []的用法
    RK61 Keyboard Use
  • 原文地址:https://www.cnblogs.com/colipso/p/2891860.html
Copyright © 2011-2022 走看看