DescStatSAS - SAS is one of the most standard and...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
SAS is one of the most standard and comprehensive computer packages for statistical analysis. Two useful procedures for exploratory analysis are: PROC MEANS: calculates basic summary statistics PROC UNIVARIATE: calculates a wide array of summary statistics, plus a limited set of plots. SAS Interface: For most systems (except mainframes), the SAS interface uses three windows: Program Editor: programming statements are written here. To run a program, select “submit” from the “run” menu, or click on the tool bar button with the little running person on it. Output Window: displays results of the analysis. Log Window: displays error messages, warnings, and notes regarding the compilation and execution of the program. 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 Structure of the SAS system: Base SAS: comprises the SAS programming language, the SAS macro facility, the output delivery system, and other basic functions. The data step is part of the SAS programming language, which reads in and stores data in the format of a SAS Data Set. SAS Packages: collections of utilities developed for specific applications. Base SAS Procedures is a package developed for basic statistical analysis. SAS/STAT is a package of advanced statistical procedures. SAS/GRAPH is a package developed for advanced graphics. PROC MEANS and PROC UNIVARIATE are parts of Base SAS Procedures . We will also use PROC GLM and PROC REG, which are part of SAS/STAT . PROC GPLOT and PROC CHART are part of SAS/GRAPH . SAS Procedures: programming structures that control SAS functionality for specific analysis methods.
Background image of page 2
3 An example program: The following program reads in a set of measurements, y 1 , …, y n , generates a new set of measurements, y 1 2 , …, y n 2 , and calculates summary statistics: title 'STAT 5615: Statistics in Research'; title2 'Descriptive Statistics in SAS'; options ls=77 ps=54 nodate nonumber; data demo; input y; y2 = y**2; lines; 5.0 3.0 8.0 5.0 6.0 ; run; proc means data=demo mean var stddev min max; var y; run; proc means data=demo sum; var y y2; run;
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Block 1: Global declarations: title 'STAT 5615: Statistics in Research'; title2 'Descriptive Statistics in SAS'; options ls=77 ps=54 nodate nonumber; The first two statements add titles to the output. The main title is specified by title with no number (an alias is title1 ); title2 specifies a sub-title; title3 would specify a sub-sub-title, etc. Note that every SAS statement ends with a semi-colon (
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 19

DescStatSAS - SAS is one of the most standard and...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online