上一页 1 ··· 60 61 62 63 64 65 66 67 68 ··· 71 下一页

2013年1月28日

【SAS NOTES】data格式

摘要: 阅读全文

posted @ 2013-01-28 16:43 colipso 阅读(206) 评论(0) 推荐(0) 编辑

2013年1月27日

【SAS NOTES】ods

摘要: 1 data mysas.mmsone; 2 infile 'E:\SAS\mysas\MMS1.txt' dlm='09'x firstobs=2; 3 input date city $ wangnei wangjian guoji shangxing wangneid wangjiand 4 guojid alld allwangnei allwangjian allguoji allall upfeetiao downfeetiao; 5 run; 6 proc sort data=mysas.mmsone; 7 by city; 8... 阅读全文

posted @ 2013-01-27 22:46 colipso 阅读(1776) 评论(1) 推荐(0) 编辑

【SAS NOTE】安装注意语言选项

摘要: 在安装sas9.1.3时需要注意安装语言环境同时选中中文和英文,这样在分析数据时就可以支持中文内容。 阅读全文

posted @ 2013-01-27 11:13 colipso 阅读(284) 评论(0) 推荐(0) 编辑

2013年1月26日

【SAS NOTE】proc report

摘要: proc report用来生成报告。1 proc report data=mysas.mms nowindows headskip;2 column date wangnei wangjian guoji;3 define wangnei /analysis;4 define date /group;5 run;define-约定特定变量的组织方式。注意 define 的参数用/analysis等来表示,不要忘记/.1 proc report data=mysas.mms nowindows headskip;2 column date,(wangnei wan... 阅读全文

posted @ 2013-01-26 22:49 colipso 阅读(1589) 评论(0) 推荐(0) 编辑

【SAS NOTE】tabulate

摘要: 1 data mysas.mms; 2 infile 'E:\SAS\mysas\mms.txt' dlm='09'x firstobs=2; 3 input date city wangnei wangjian guoji shangxing wangneid wangjiand guojid 4 alld allwangnei allwangjian allguoji allall upfeetiao downfeetiao; 5 run; 6 proc print data=mysas.mms; 7 run; 8 proc tabulate... 阅读全文

posted @ 2013-01-26 17:55 colipso 阅读(491) 评论(0) 推荐(0) 编辑

【SAS NOTE】FREQ

摘要: 1 data mysas.frequence;2 infile 'E:\SAS\mysas\frequence.txt' firstobs=2;3 input a b c;4 proc freq data=mysas.frequence;5 tables a a*b;6 run;可以从明细中来统计某一类产品的订购数等。 阅读全文

posted @ 2013-01-26 16:47 colipso 阅读(344) 评论(0) 推荐(0) 编辑

【SAS NOTE】sas 9.2 安装

摘要: 见:http://blog.sina.com.cn/s/blog_840b11ae01019333.html一、SAS9.2的下载SAS一般比较大,所以要有好的网才行(我们宿舍联通10M)。网上下载资源虽多,但很多不靠谱,在此我提供一个下载地址:sas9.2版本下载地址ed2k://|file|[SAS.9.2多国语言版(更新9.21.TS2M2版)].SAS9_2_Disk1.iso|4315152384|3b745cacd89fb908859d8a5aa7b8063e|/ed2k://|file|[SAS.9.2多国语言版(更新9.21.TS2M2版)].SAS9_2_Disk2.iso| 阅读全文

posted @ 2013-01-26 15:40 colipso 阅读(2687) 评论(0) 推荐(0) 编辑

2013年1月25日

【SAS NOTE】OUTPUT

摘要: 1 proc means data=mysas.ifthen11;2 var year date gtone shen dong all;3 output out=mysas.tryout max(gtone shen)=a b;4 run;5 proc print data=mysas.tryout;6 run;用output可以将means的结果另存到另一个数据集中。1 proc means data=mysas.ifthen11;2 var year date gtone shen dong all;3 by year;4 output o... 阅读全文

posted @ 2013-01-25 20:37 colipso 阅读(337) 评论(0) 推荐(0) 编辑

【SAS NOTE】MEANS

摘要: 1 data mysas.ifthen11;2 infile 'e:\ifthen.txt' firstobs=2;3 input date yymmn6. gtone shen dong all;4 year=year(date);5 run;6 proc means data=mysas.ifthen11 max min n nmiss sum range ;7 by year;8 where year(date)<=2011;9 run;means过程很适合统计月度或年度数据。在常规分析中会经常用到。其中by字句做归类,where 做筛选。 阅读全文

posted @ 2013-01-25 19:45 colipso 阅读(242) 评论(0) 推荐(0) 编辑

【SAS NOTES】_NULL_

摘要: Data _NULL_;........用于在数据步中执行操作,但不产生数据集。_NULL_ tells sas not to bother writing a sas data set,and makes the program run slightly faster. 阅读全文

posted @ 2013-01-25 19:04 colipso 阅读(362) 评论(0) 推荐(0) 编辑

上一页 1 ··· 60 61 62 63 64 65 66 67 68 ··· 71 下一页

导航