SAS Output Delivery System

Slides:



Advertisements
Similar presentations
HRP Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and.
Advertisements

Final Thoughts HRP 223 – 2013 December 4 th, 2013 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation.
Working with Data in Windows HRP223 – 2010 October 4 th, 2010 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
1 SAS Formats and SAS Macro Language HRP223 – 2011 November 9 th, 2011 Copyright © Leland Stanford Junior University. All rights reserved. Warning:
SAS Output Delivery System. Find heart in the sashelp library Double click.
Working with Data in Windows and Descriptive Statistics HRP223 – Topic 2 October 5 th, 2011 Copyright © Leland Stanford Junior University. All.
1 Merging with SQL HRP223 – 2011 October 31, 2011 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation.
1 Lab 2 HRP223 – 2010 October 18, 2010 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected.
1 Processing Grouped Data HRP223 – 2011 November 14 th, 2011 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
1 Combining (with SQL) HRP223 – 2010 October 27, 2009 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation.
1 Creating and Tweaking Data HRP223 – 2010 October 24, 2011 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
Final Thoughts. When you get data… Check for Viruses Lock the files – Right click> properties>click on read only Assume the data has not been cleaned.
1 Lab 1 HRP223 – 2010 October 6, 2010 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected.
1 Database Theory and Normalization HRP223 – 2010 November 14 th, 2011 Copyright © Leland Stanford Junior University. All rights reserved. Warning:
1 Lab 1 HRP223 – 2011 Oct 10, 2011 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected.
Working with Data in Windows and Descriptive Statistics HRP223 – Topic 2 October 2 nd, 2013 Copyright © Leland Stanford Junior University. All.
1 Windows and Beginning Data Manipulation HRP223 – 2013 Oct 9, 2012 Copyright © Leland Stanford Junior University. All rights reserved. Warning:
SAS for Categorical Data Copyright © 2004 Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright.
1 Data Manipulation (with SQL) HRP223 – 2010 October 13, 2010 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
HPR Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and.
Working with Data in Windows HRP223 – 2009 Sept 28 th, 2009 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
My ODS: Real-World Uses of Modifying Table Templates Steve James Centers for Disease Control and Prevention Atlanta, Ga.
1 Lab 2 and Merging Data (with SQL) HRP223 – 2009 October 19, 2009 Copyright © Leland Stanford Junior University. All rights reserved. Warning:
Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and international.
Introduction to Enterprise Guide Jennifer Schmidt Rhonda Ellis Cassandra Hall.
1 Data Manipulation (with SQL) HRP223 – 2010 October 13, 2010 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
Create the cover page by inserting clip art, WordArt, and text. Triple-click and enter your name here. Do not press the delete key! Triple-click and enter.
HRP Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and.
HRP Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and.
1 Lab 1 HRP223 – 2011 Oct 10, 2011 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected.
1 Lab 1 HRP223 – 2009 October 5, 2009 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected.
HRP Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and.
HRP 223 – 2007 lm.ppt - Linear Models Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected.
1 Data Manipulation (with SQL) HRP223 – 2009 October 12, 2009 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
Beginning Data Manipulation HRP Topic 4 Oct 14 th 2012 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
HRP Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and.
SAS ® 101 Based on Learning SAS by Example: A Programmer’s Guide Chapters 16 & 17 By Tasha Chapman, Oregon Health Authority.
Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and international.
5.2 Microsoft Excel.
Do-more Technical Training
Chapter 5: Enhancing Your Output with ODS
Applied Business Forecasting and Regression Analysis
Customizing the Quick Access Toolbar in Microsoft Office
Using ODS Excel Migrating from DDE to ODS
SAS Programming Introduction to SAS.
Working with Data in Windows
Please play this as a Slide Show – it will be helpful
5.2 Microsoft Excel.
Chapter 1: Introduction to SAS
Instructor: Raul Cruz-Cano
Tamara Arenovich Tony Panzarella
Create Links to STAT!Ref for your Web site
Please log on a computer Open the web and then Open four tabs…
Combining (with SQL) HRP223 – 2013 October 30, 2013
Beautiful PROC CONTENTS Output Using the ODS Excel Destination
Working with Data in Windows and Descriptive Statistics
Lab 3 and HRP259 Lab and Combining (with SQL)
Lab 2 and Merging Data (with SQL)
Combining (with SQL) HRP223 – 2012 November 05, 2011
Lab 2 HRP223 – 2010 October 18, 2010 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected.
Lab 1 HRP223 – 2009 October 5, 2009 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected.
A Bit About SAS/Macro Language Database Theory and Normalization
File Sharing and Processing Grouped Data
Search Demo.
Data Manipulation (with SQL)
Using PowerPoint to Integrate Curriculum
Working with Data in Windows and Descriptive Statistics
Final Thoughts.
Processing Grouped Data
Presentation transcript:

SAS Output Delivery System HRP223 - 2013 Nov 13th, 2013 Copyright © 1999-2013 Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and international treaties. Unauthorized reproduction of this presentation, or any portion of it, may result in severe civil and criminal penalties and will be prosecuted to maximum extent possible under the law.

Find heart in the sashelp library Double click

3x3 with just the Chi-Square I want to have a 3x3 table with a chi-square text. The default output has too many statistics:

I want this.

You set the default output to include HTML pages.

Erase the title and footnote.

Control Say you want only the contingency table and the chi-square statistic… Play with the code.

Not needed Fix the file name. Remove the extra stuff

crosstabfreqs chisq Notice the output is generating two tables. I want to know the names so I can cut down the second table to only include the first Chi-Square.

Request the names of the output tables in the listing output. Turn it off. ods listing ; ods trace on / listing; PROC FREQ DATA = sashelp.heart; TABLES Weight_Status * BP_Status / NOCOL NOPERCENT CHISQ; RUN; ods trace off;

Request the names of the output tables in the log Turn it off.

ODS voodoo For procedures that generate a lot of output-tables you can tell it which to select or exclude. You can tell SAS to save the output of a table into a dataset (usually in the work library).

Same info in work and the report

Print Chi-square Notice the filter

Remember the ;

This works but has an extra table

Don’t display the statistics You can turn off all the output and still have it write the table of statistics into the work library. The ODS destination name (it may be different for you)!

Solution Print the table without doing the statistics. Calculate the chi-square

Cleaning Up Macros (and other SAS programs) often use temporary datasets. It is good form to delete them. This code silently deletes the theChi table from the work library:

The Macro

Pretty Web Pages Text to appear as a title and in the Table of Contents I frequently use the program name as the title.

This sets the titles that will appear on the tabs of your web pages. Add the labels for the table of contents after the label= Copy and paste this block of code before each procedure that makes output.

Notice this and this