ODS Graphics Graphs made easy Jan Ooghe
Overzicht Wat is ODS Graphics? Hoe gebruiken? Waar kan je informatie vinden?
Overzicht De haat-liefde verhouding van SAS met grafieken Output Delivery System sprong voorwaarts in SAS 8 ODS Statistical Graphics soortgelijke sprong voor grafieken in SAS 9
ODS graphics Toevoeging aan bestaande ODS systeem Experimenteel in SAS 9.1.3 Productie in SAS 9.2 Mooie statistische grafieken automatisch produceren net zoals tabelen Statistische informatie wordt toegevoegd aan de grafiek zonder annotate te gebruiken Gevorderd gebruik
Voorbeelden Hierna volgt alle voorbeeld output. Deze kan aangemaakt met de bijbehorende voorbeeld programma s
Voorbeeld : proc reg
Voorbeeld : proc reg
Voorbeeld : Proc Reg -stepwise
Proc corr - scatterplot
Proc corr scatterplot met diagonaal
Proc ttest summary plot
Proc ttest before after profile plot, agreement plot
Proc logistic ROC curve
Proc logistic effects plot
Proc logistic vergelijkende ROC curves
ODS Graphics Aktiveren ODS GRAPHICS ON; grafieken voor elke open ODS bestemming Output formaten, afhankelijk van ODS bestemming Opties om ODS grafieken aan te passen ods graphics / imagefmt= ps w idth= 4.5in height= 3.5in; ods listing image_dpi= 300; Output aanpassen ODS Style -> alle grafieken Template aanpassen -> individuele grafiek Globale SAS graph statements worden niet gebruikt
Output formaten Output Destination Supported Image File Types Listing: PNG (default), BMP, DIB, EMF, EPSI, GIF, JFIF, JPEG, JPG, PBM, PDF, PS, SASEMF, STATIC, TIFF, WMF HTML : PNG (default), GIF, JPEG, JPG Printer Family: PNG(default), JPEG, JPG, GIF RTF: PNG(default), JPEG, JPG, JFIF LATEX: PS(default), EPSI, GIF, PNG, PDF, JPG
ODS graphics editor Activeren tijdelijk Selecteer Result venster Type het commando Sgedit on Permanent in SAS Registry SAS_REGI STRY-> ODS-> GUI -> RESULTS zet Statistical Graphics Editor op on Gebruik Geen structurele veranderingen (bv. Data punten verschuiven) Aanpassen van titels, labels, kleuren, markers, annoteren
Gevorderd gebruik Specifieke procedures SGPLOT procedure SGSCATTER procedure SGPANEL procedure SGRENDER procedure Aanpasbare templates
Proc SGPLOT 1 cel Verschillende plots over elkaar leggen Verschillende typen scatter plots, series plots, band plots, and needle plots. bar charts, dot plots, and bar-line charts. loess curves, regression curves, penalized B-spline curves, and ellipses. histograms, box plots, and density curves. Insets, legends, and reference lines.
PROC SGPLOT series plot
Proc sgplot scatterplot met elips
PROC SGPLOT - regressie
PROC SGPANEL Panel voor 1 of meerdere classificatie variabelen Meerdere cellen Elke cel 1 of verschillende overlay plots
Proc SGPANEL
PROC SGSCATTER Panel met meerdere scatter plots Verschillende layout types mogelijk
Proc SGSCATTER - compare
Proc SGScatter - plot
Proc SGSCATTER - matrix
SGRENDER Maakt een graph op basis van een template Templates in Graph Template Language (GTL)
Voorbeeld PROC SGRENDER
Informatie SAS Online Doc Product index: http:// support.sas.com/ documentation/ index.html Base -> Output Delivery system http:// support.sas.com/ documentation/cdl/ en/ odsug/59523/ HTML/default/odsgraphic sstmt.htm Stat -> Statistical Graphics Using ODS http:// support.sas.com/ documentation/cdl/ en/ statug/ 59654/ HTML/default/odsgraph_t oc.htm Details sectie bij elke procedure in SAS/ Stat Documentatie template procedure http:// support.sas.com/ rnd/ base/ topics/ statgraph/ proctemplate/
Informatie Papers Getting Started with ODS Statistical Graphics in SAS 9.2 http:// www2.sas.com/ proceedings/ forum2008/305-2008.pdf ODS Graphics editor http:// www2.sas.com/ proceedings/ forum2008/235-2008.pdf SAS Graphics on ODS 9.2 Performance-Enhancing steroids http:// www2.sas.com/ proceedings/ forum2008/254-2008.pdf ODS statistical graphics for clinical research http:// www2.sas.com/ proceedings/ forum2007/094-2007.pdf Introduction to Graph Template Language http:// www2.sas.com/ proceedings/ forum2008/313-2008.pdf Gaining Power from GTL and ODS Style to Control Graphical Output http:// www2.sas.com/ proceedings/ forum2007/092-2007.pdf