ODS provides many destinations to which you can send output. The topics that follow show the default output for each of these destinations. The rules change when you are running SAS without a terminal. This device driver does not write an image file to disk. To send output to a web page, you simply submit your SAS program that sends your output to the HTML destination, which by default is open.
|Published (Last):||11 March 2015|
|PDF File Size:||3.98 Mb|
|ePub File Size:||20.69 Mb|
|Price:||Free* [*Free Regsitration Required]|
SAS Menu. Main Menu. These SAS statistics tutorials briefly explain the use and interpretation of standard statistical analysis techniques for Medical, Pharmaceutical, Clinical Trials, Marketing or Scientific Research. The examples include how-to instructions for SAS Software.
ODS began with version 8 and is now in production in version 9. ODS can be used to output results using several types of format including:. However, most SAS users should find that the information discussed will cover most output needs. This example shows how you can utilize ODS quickly and simply.
Following this example, we will look at options for using ODS that will give you more control over the output. The graph is in a separate window, and colors available for the graph are limited. Basic Statistical Measures. The graph output is:.
The output is opened in a Microsoft Word document as show here partial output. This output is in standard Word tables for text output, and also includes the previous graph in the same Word file. The syntax of the ODS command is.
This output can be turned on using the command:. To turn on any other output type simply use the command. Usually, when you are using one of the other output types you may want to turn off the default listing first, output to your selected type, then turn the listing option back on.
For example:. HTML output can also be output to frames, but that is not discussed here. HTM you could use the syntax:. In a program you would typically first turn off the default listing, open the ODS output, run procedures, close ODS and reopen the standard listing:.
HTM' ;. If you leave off the destination as in. You will prompted to enter an output filename or the results will go into the SAS Results viewer. To control the style of the SAS output you can specify the option. RUN ;. To produce a list of the current SAS styles available, use the code:. Here is a partial listing of the results:.
And so on Std Dev. In the listing below ODS3a. This output option allows you to create output that can be viewed across computer platforms as long as the have the free Adobe reader. Which produces the following output in Adobe.
Some standard SAS listings output are difficult to read. CARDS ;. Title 'T-Test Example' ;. Produces the following somewhat confusing listing:. Equality of Variances. This output is at least in a table that makes finding each value a little easier. This yields a standard non-interactive SAS plot:.
Here is how you can create a primary graph bar chart where you can click on each bar to reveal more information. HTM"' ;. The following initial bar graph is displayed. Click on the top bar in the graph and the following information appears:.
Summary for Group A. Go back and click on the other bars to see that that also display the summary information for that group. The third group displays the designated web site which you would more logically specify as something pertinent to the meaning of the bar.
For the following program: ODS6. DATA ;. END ;. RUN; ods html close;. Table of A by B. Statistics for Table of A by B. Likelihood Ratio Chi-Square. Continuity Adj. Mantel-Haenszel Chi-Square. Phi Coefficient. Contingency Coefficient. Cramer's V. Fisher's Exact Test. Cell 1,1 Frequency F. Table Probability P. ODS type select list of tables ;.
But how do you know the SAS table names? Run this code: ODS6A. Output Added:. Data Name:. These graphics are initiated with the statements. The produces the following HTML output:. Simple Statistics. Here is an example of creating a scatterplot with fitted line as a part of a regression analysis. This illustrates the default graphics for the REG procedure. QUIT ;. The REG Procedure. Number of Observations Read. Number of Observations Used. Analysis of Variance. Sum of Squares.
Mean Square. F Value. Corrected Total. Root MSE. Dependent Mean. Adj R-Sq. Coeff Var. Parameter Estimates. Parameter Estimate. Standard Error. This produces the follow output some output not shown :. Anova SS. Error Degrees of Freedom.
Error Mean Square. Critical Value of Studentized Range. Minimum Significant Difference. Means with the same letter are not significantly different. You can capture output from procedures and put that information in to a SAS output file.
Resulting output is:. In the SAS Viewtable, the resulting data set looks like this:.
Setting the Size of Your Graph
SAS ODS: html