自动生成标准的统计表格(配合ods)的macro(Automatic generation of standard statistical tables (along with ODS) macro).docVIP
- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
自动生成标准的统计表格(配合ods)的macro(Automatic generation of standard statistical tables (along with ODS) macro)
自动生成标准的统计表格(配合ods)的macro(Automatic generation of standard statistical tables (along with ODS) macro)
Automatic generation of standard statistical tables (along with ODS) macro
[url=mailto:wmqy2004@acrp]wmqy2004@acrp[/url]
The program runs through sas9.13.
%macro, comdts (J, K, dataname);
%do i=j%to k;
datanamei
%end;
%mend comdts;
%macro, comparison (data=, vars=, vg1=, vg2=, vg3=, vg4=, class=, par=1, format=6.1, total=1, where=);
Should be the name of a variable that contains the / * scanning macro parameter, and assign them to a series of macro variables.
ODS select none;
%let i=1;
%do,%while (%scan (vars, i) ne);%let, vari=%scan (vars, i);%let, i=%eval (i+1);%end;
Gets the number of variables should be / * * /
%let vnum=%eval (i-1);
Access to the specified number of packet level / * * / variable
Proc freq data=data; tables class/out=freout; run;
Data _null_; set freout end=last; if, last, then, call, symput ( lvnum _n_; compress ());
Run;
/ * level grouping variable number is less than 2 warning, and out of macro operation process.
%if lvnum2%then%do;
%put, Warning:, Level, number, of, class, variable, is,, less, than;
%goto exitmacro;
%end;
/ * * / data description
%do i=1%to vnum;
Proc, means, data=data, N, nmiss, mean, STD, min, Max, lclm,, uclm, median, maxdec=2;
Output, out=tmpmeani, n=n, nmiss=nmiss, mean=mean, min=min, max=max, lclm=lclm, uclm=uclm, median=median, class, class;%if, where, NE,%then,%do;, std=std; where, where;%end;
Var vari;
Run;
Data tmpmeani; set tmpmeani;
Nnmiss=compress (put (n, 6) || ( ||left (put (nmiss, 6)) || ));
Ms=put (mean, format) || + ||left (put (STD, format));
Minax=put (min, format) || ~ ||left (put (max, format));
Luclm=put (lclm, format) || ~ ||left (put (uclm, format));
Med=put (median, format);
Run;
%if lvnum=2%then%do;
T-test / * * /;
%if par=1%then%do;
ODS output ttests=ttests equality=equality;
Proc ttest data=data; VAR vari; class class;
%if, where, NE,%then,%do; where where;%end;
Data test2; merge ttests equality;
您可能关注的文档
- 联想一键还原问题(Lenovo key reduction problem).doc
- 联想一键还原系统(Lenovo key to restore system).doc
- 联想s415双显卡!-联想问吧_有问题,来问吧!-联想中国(lenovo china)_服务频道(Lenovo s415 Lenovo dual graphics card! Ask _ have problems to ask! - Lenovo China (Lenovo China) _ service channel).doc
- 职场警示录办公室不可深交的五种人(Workplace warning note five kinds of office can not be the Shenzhen Stock Exchange).doc
- 联想常用显示器进入工厂模式方法(Lenovo commonly used display mode into factory mode).doc
- 联合制碱(Combined alkali production).doc
- 联想还原卡(Lenovo Restore Card).doc
- 联想还原键的安装操作(Installation operation of Lenovo restore key).doc
- 联磺甲氧苄啶片(Sulfamethoxazole,Sulfadiazine and Trimethoprim Tablets).doc
- 联苯双酯(Biphenyl diester).doc
- 自发大腿肌间血肿1例(Spontaneous thigh muscle hematoma in 1 cases).doc
- 自发性细菌性腹膜炎(Spontaneous bacterial peritonitis).doc
- 自古英雄相惜还是相轻(The ancient hero Xiangxi or light).doc
- 自动化设备维修技术资料(Technical data of automatic equipment maintenance).doc
- 自在人生浅淡写(Free life).doc
- 自学考试_学前卫生学考试复习重点(The self-study exam _ preschool health examination review focus).doc
- 自己做小菜(Make yourself a side dish).doc
- 自己作词说唱(Sing and rap by yourself).doc
- 自己克服了强迫症的心得(Overcome the obsession with their own experience).doc
- 自己做黑木耳粉(Black fungus powder made by yourself).doc
最近下载
- 2025年舞蹈教师资格证考试模拟试卷:舞蹈教学法与课程设计案例分析.docx VIP
- 学校食品安全事故应急演练实施方案(含演练脚本).docx
- 湖南省师德师风教育读本.pptx VIP
- 2025秋教科版(2024)科学三年级上册第一单元天气《2.docx VIP
- ISO∕IEC 20000-1:2018《信息技术服务管理第一部分:服务管理体系要求》之17-“8.1运行的策划与控制”理解与应用指导材料.docx VIP
- 验收标准内装 .pdf VIP
- 像医生一样思考(完全版).pptx VIP
- 北大附中学生家长写给高二同学的一封信导论.doc VIP
- 2025年白酒酿造工试题题库.pdf VIP
- 关于进一步加强公司在职员工学历提升的通知(专业完整模板).docx VIP
文档评论(0)