Transcription of Some Tips and Examples for Using PROC TABULATE
{{id}} {{{paragraph}}}
A,2= B RUN;/*Combinetreatmentname(A/B)withtreat menttotal(N=)*//* ,theyarenotincludedintheotherexamples.* ;BYtitsuhj;RUN;DATA tmtf( );SETds_demo;BYtmtsuhj;LENGTSLABEL$8; ;tmtot+l;IFLJ+ ;START=tmt;LABEL=PUT(tmt,trot.)II~=:.#jM t!jTR~(LEFT(~tot))II,),;OUTPUT;FND;RUN;I *CreatetreatmentformatTMTFf4T*IPROCFOFJI ATCNTLIN=tmtf;RUN;TITLE1 ;TITLE2 UseN,MEAN,STD,MIN,andMAXS tatistics,;TITLE3 inPROCTABULATE,;PROCTABULATEDATA=ds_demo FOFJ4 CSAR= FABFACCCBCEB8 FECABCBBB X;/* ,consultSASmanual,2nded.,page134.*/CLASS trnt;VARagewt;TABLES(age=,Age(years),wt= Weight,)l(N=INI*F= Mean * SD *F= ,Min,*F= ,Max,* ),hnt= Treatment,/RTS=3o;RUN;output:TableExampl e1 UseN,MEAN,STD,MIN,andNAXS tatisticsinPROCTABULATET reatmentA(N=1O)B(N=1O)(years) :UsePROCUNIVARIATEforPre-ProcessingtoCal culateSummaryStatisticsTableShellforExam ple2:ITreatmentIIA(N=)]B(N=)1 Lge(years) #eightN9999\ ,thisexamplealsoaddsafewdatastepsandPROC FORMAT tolineupthestatisticsbythedecimalpoint
Some Tips and Examples for Using SAS@ PROC TABULATE Pei Lee Tien, ASG Inc., Stamford, CT Tsung-Hua Lin, Ph. D., Sandoz Pharmaceuticals Corporation, East Hanover, NJ
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}
Tips, Tricks: Using SAS/GRAPH Effectively, Tricks: Using SAS/GRAPH® Effectively, Tips for Handling and Creating Special Characters, Some, Using SAS, To Move Data between Servers, Advanced Tips and Techniques with PROC, Using, Getting Started with ArcGIS, Working with categorical data with, 226 Moving Data and Results Between SAS, Hill-Rom