1 / 12

Introduction to ODS Graphics

Introduction to ODS Graphics. Katherine Nicholas. Outline:. What is ODS Basic syntax Saving output to files Built-in graphics Identifying objects in output Outputting to datasets Closing remarks/troubleshooting. What is ODS?. ODS stands for output delivery system

marlis
Download Presentation

Introduction to ODS Graphics

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to ODS Graphics Katherine Nicholas

  2. Outline: • What is ODS • Basic syntax • Saving output to files • Built-in graphics • Identifying objects in output • Outputting to datasets • Closing remarks/troubleshooting

  3. What is ODS? • ODS stands for output delivery system • It is still experimental, so be careful! • This is SAS’s attempt to match the graphing capacities of other packages like R

  4. Basic Syntax: ods html; ods trace on/listing; ods graphics on; proc ods graphics off; ods trace off; ods html close;

  5. Saving output to a file: ods rtf file=‘complete path’; Proc ods rtf close; Alternatives to rtf: ods document ods html ods latex ods listing ods pcl ods pdf ods ps

  6. Styles: http://stat.lsu.edu/SAS_ODS_styles/SAS_ODS_styles.htm

  7. Built in graphics: Example: Proc reg with iris data SAS automatically creates most of what you need to assess the validity of model assumptions, so don’t recreate the wheel! *Disclaimer: ODS graphics is a tool, and not a means to an end. Never publish a graph that you didn’t make!

  8. Identifying Objects: You can pull out only the object that you want if you know what it’s called. ODS trace ODS select

  9. Outputting to a dataset: output out=name var1=name var2=name; Now you have the raw data and can create any graphic or conduct any test that you want!

  10. Need more info? • Check it out in your favorite procs, but not all of them are compatible with ods graphics. • Visit support.sas.com • Read the sugi papers.

  11. Which procs are compatible? • CORR • FREQ • UNIVARIATE • ANOVA • BOXPLOT • CALIS • CLUSTER • CORRESP • FACTOR • GAM • GENMOD • GLM • GLIMMIX • GLMSELECT • KDE • LIFEREG • LOESS • LOGISTIC • MDS • MI • MIXED • MULTTEST • NPAR1WAY • PHREG • PLS • PRINCOMP • PRINQUAL • QUANTREG • REG • ROBUSTREG • RSREG • TRANSREG • TTEST

  12. Closing Remarks/Troubleshooting: • All ODS statements need to be turned on/open and turned off/closed • ODS will not run if you are missing a “quit” or an “end” • SAS will not overwrite a file if it is open • SAS saves graphics options, so try “goptions reset=all” if you are having problems • SAS 9.2 has some issues under a 64-bit operating system – try “options helpbrowser=sas” if you are having problems • ODS produces a lot of files (especially ODS html), so delete what you don’t need after each use

More Related