1。建表

   /*************************************/
   /* create the second input data set  */
   /*************************************/

data patients;
   input ID $ 1-4 Name $ 6-16 Sex $ 18 Age 20-21
         Date 23-24 Height 26-27 Weight 29-31
         ActLevel $ 33-36 Fee 38-43;
   format fee 6.2;
   datalines;
2458 Murray, W   M 27  1 72 168 HIGH  85.20
2462 Almers, C   F 34  3 66 152 HIGH 124.80
2523 Johnson, R  F 43 31 63 137 MOD  149.75
2539 LaMance, K  M 51  4 71 158 LOW  124.80
2544 Jones, M    M 29  6 76 193 HIGH 124.80
2552 Reberson, P F 32  9 67 151 MOD  149.75
2555 King, E     M 35 13 70 173 MOD  149.75
2563 Pitts, D    M 34 22 73 154 LOW  124.80
2571 Nunnelly, A F 44 19 66 140 HIGH 149.75
2572 Oberon, M   F 28 17 62 118 LOW   85.20
2574 Peterson, V M 30  6 69 147 MOD  149.75
2575 Quigley, M  F 40  8 69 163 HIGH 124.80
2578 Cameron, L  M 47  5 72 173 MOD  124.80
2586 Derber, B   M 25 23 75 188 HIGH  85.20
2588 Ivan, H     F 22 20 63 139 LOW   85.20
2589 Wilcox, E   F 41 16 67 141 HIGH 149.75
2595 Warren, C   M 54  7 71 183 MOD  149.75
;
run;

2. 使用

 /*************************************/
   /* specify HTML output               */
   /*************************************/
ods html body='table.htm' style=default;

   /*************************************/
   /* create a two-dimensional table    */
   /* with style elements specified     */
   /*************************************/
   proc tabulate data=patients
    style=[font_weight=bold];                   /*字体设置*/
        class actlevel;                           /*要分类的字段名*/
    classlev actlevel / style=[just=left];      /*指定样式元素*/
    var age height weight / style=[font_size=3];/**/
    keyword all sum / style=[font_width=wide];
    keylabel all="All Patients";
    table (actlevel="Activity Level"
         all*[style=[background=yellow]]),
         (age height weight*f=best10.2)*mean /
         style=[background=white]
         misstext=[label="Missing"
         style=[font_weight=light]]
         box=[label="Patient Info by Activity Level"
         style=[font_style=italic]];
    title 'Enhanced Table';
    run;
       /*************************************/
     /* close the HTML destination        */
     /*************************************/
       ods html close;
     /*************************************/
     /* clear any titles in effect        */
     /*************************************/
        title;
    

proc means data = patients n;
var height;
class actlevel;
run;

sas的使用的更多相关文章

  1. 根据osdid 查询磁盘是ssd盘还是sas盘

    前置条件: 1.安装LSI的Megacli软件包 Megacli64 2.安装scsi设备的查询工具lsscsi apt-get install lsscsi   步骤: 1.根据osdid 查找 盘 ...

  2. 选盘秘籍:用户如何选择SSD/SATA/SAS?

    先学习下一些专业词汇 IDE (Integrated Drive Electronics) 电子集成驱动器 它的本意是指把"硬盘控制器"与"盘体"集成在一起的硬 ...

  3. sas编程-日期相差计算函数 intnx

    sas编程-日期相差计算函数 intnx 示例代码: data _null_;    lastdate=intnx('year',today(),-100);    format lastdate  ...

  4. SAS提供的机器学习算法

    SAS graphical user interfaces help you build machine-learning models and implement an iterative mach ...

  5. SAS 画折线图PROC GPLOT

    虽然最后做成PPT里的图表会被要求用EXCEL画,但当我们只是在分析的过程中,想看看数据的走势,直接在SAS里画会比EXCEL画便捷的多. 修改起来也会更加的简单,,不用不断的修改程序然后刷新EXCE ...

  6. SAS实验室之PROC TRANSPOSE

    首先,抛开SAS,回忆我们在数学课本上学习的转置是什么概念,转置如下图: 以上就是数学中的转置. 那么在SAS里该如何转置呢? 先看语法格式: PROC TRANSPOSE <DATA=inpu ...

  7. SAS零散知识总结

    1,变量名命名规范:以字母或者下划线开始,可包含字母.下划线.数字,且不超过32个字符: 2,INFILE用于读取外部数据文件,一般于FILENAME(和LIBNAME用户一致,但路径要精确到文件名( ...

  8. Azure China (10) 使用Azure China SAS Token

    <Windows Azure Platform 系列文章目录> 本文介绍的是国内由世纪互联运维的Azure China 注意:本文介绍的是Azure China Storage Priva ...

  9. SAS学习笔记<一>

    三个周末的SAS课程宣告结束, 总结下来 第一周的统计原理简介 第二周/第三周讲解SAS的基本操作. 总体下来,对自己的知识结构有了一个新的梳理,对比大学时期,某个老师一上来就教我们SAS编程,而未考 ...

  10. IDE、SATA、SCSI、SAS、FC、SSD硬盘类型介绍[zz]

    目前所能见到的硬盘接口类型主要有IDE.SATA.SCSI.SAS.FC等等. IDE是俗称的并口,SATA是俗称的串口,这两种硬盘是个人电脑和低端服务器常见的硬盘.SCSI是"小型计算机系 ...

随机推荐

  1. linux和aix内核参数检查

    安装oracle软件时需要设置操作系统级别的用户限制,后期检查可以使用如下命令,方便问题的排查工作 linux: tail -15 /etc/security/limits.conf tail -30 ...

  2. July 04th 2017 Week 27th Tuesday

    Nothing is really beautiful but truth. 只有真理才是真美. Truth can be beautiful, but it also can be cruel. W ...

  3. SkyWalking 为.NET Core

    SkyWalking 为.NET Core https://www.cnblogs.com/liuhaoyang/p/skywalking-dotnet-v02-release.html Apache ...

  4. std::vector的内存释放

    先上一段代码 using namespace std; class A{ public: ~A(){ cout << "deconstruct"; }; }; #inc ...

  5. 用jq给link和script标签加随机的版本号(兼容IE5)

    $("link,script").each(function(){ var t=Math.random().toFixed(4); /*var $tag=$(this).prop( ...

  6. Intellij IDEA 代码提示忽略大小写

    1.0 File >>Settings 2.0 Editor >> General >> Code Completion 如下图 选择 None

  7. 类图(Rose) - Windows XP经典软件系列

    版权声明:本文为xiaobin原创文章.未经博主同意不得转载. https://blog.csdn.net/xiaobin_HLJ80/article/details/24584625         ...

  8. BZOJ5301:[CQOI2018]异或序列(莫队)

    Description 已知一个长度为 n 的整数数列 a[1],a[2],…,a[n] ,给定查询参数 l.r ,问在 [l,r] 区间内,有多少连续子 序列满足异或和等于 k . 也就是说,对于所 ...

  9. php-------面向对象详解

    php面向对象详解 面向对象 对象概念是面向对象技术的核心.在显示世界里我们所面对的事情都是对象,如计算机.电视机.自行车等.在面向对象的程序设计中,对象是一个由信息及对信息进行处理的描述所组成的整体 ...

  10. 个人开源Git地址

    开源Git地址 序号 Git地址 描述 1 https://github.com/winds-june 各种源码.直接调用的jar包          2