SAS for Elementary Statistics: Getting Started provides an introduction to SAS programming for those who have experience with introductory statistical methods. It is also an excellent programming supplement for an introductory statistics course. It is appropriate for the beginning programmer with no prior SAS experience and the researcher who would like to refresh SAS programming skills. These lessons are those the author has found successful in the classroom. Strengths of this book include the following:
Examples are easy to follow and understand.
Chapters have user-friendly text and objectives.
Each chapter has clear objectives with SAS syntax and output results given.
Objectives are stated as tasks with detailed step-by-step instructions.
Programming notes based on the author's experience occur throughout the book.
The author assists the reader in making sense of the error messages in the SAS log.
Brief reviews of statistical methods are included in chapters accompanying the corresponding SAS procedures.
Easy transition from user terminology to SAS terminology is provided.
The ability to select or suppress results using Output Delivery System (ODS) is made simple.
Reading and writing to external files are among the most used SAS skills, and these concepts are clearly presented. The IMPORT and EXPORT procedures and ODS are used to accomplish these tasks.
Statistical Graphics procedures and SAS/GRAPH can be quite challenging to learn, but these are presented in a very achievable format. Basic graph construction is first introduced then readers learn how to add color, pattern, and other enhancements to graphics images.
Author(s): Carla L. Goad
Publisher: CRC Press
Year: 2020
Language: English
Pages: 398
City: Boca Raton
Cover
Half Title
Title Page
Copyright Page
Dedication
Contents
Preface
About the Author
1. Introduction to SAS Programming Environment
1.1. Initiating a SAS Session
1.2. Entering and Executing a SAS Program
1.3. Results and Explorer
1.4. Editing a SAS Program
1.5. Clearing Log, Results Viewer, and Output Windows
1.6. Saving the Program and Output
1.7. Printing from SAS
1.8. Executing a Stored SAS Program
1.9. Getting Help in SAS
1.10. Exiting SAS
1.11. Chapter Summary
2. DATA Step Information 1
2.1. A Simple Form for a SAS Program
2.2. Creating Data Sets Using INPUT and DATALINES Statements
2.2.1. Column and Line Pointer Controls
2.2.2. Missing Data
2.3. Printing a Data SetThe PRINT Procedure
2.4. TITLE Statement
2.5. FOOTNOTE Statement
2.6. Sorting a Data SetThe SORT Procedure
2.7. Chapter Summary
3. Summarizing Data Basics
3.1. The UNIVARIATE Procedure
3.2. Measures of Central Tendency, Dispersion, and Normality
3.3. Testing Hypotheses and Computing Confidence Intervals
3.4. Recovering Statistics in a Data Set
3.5. The MEANS Procedure
3.6. Chapter Summary
4. DATA Step Information 2
4.1. New Variable Assignment or Data Transformations
4.2. IF - THEN Statement
4.3. WHERE Statement
4.4. SET Statement
4.4.1. Modify an Existing SAS Data Set
4.4.2. Concatenating SAS Data Sets
4.5. MERGE Statement
4.6. Chapter Summary
5. Beginning Charts
5.1. The GCHART Procedure
5.2. Saving Graphics Images
5.3. Chapter Summary
6. One and Two Population Hypothesis Tests about the Means
6.1. The TTEST Procedure
6.2. One Population Test and Confidence Interval for the Mean
6.3. Overview: t-tests Produced by TTEST, UNIVARIATE, and MEANS Procedures
The TTEST Procedure
The UNIVARIATE Procedure
The MEANS Procedure
6.4. Two Populations Tests and Confidence Intervals for the Difference between Means
6.4.1. Dependent or Paired Samples
6.4.2. Independent Samples
6.5. Chapter Summary
7. One-Way ANOVA Methods, Non-Parametric Methods and Ranking Data
7.1. ANOVA: Hypothesis Testing
7.2. The GLM Procedure
7.3. Non-Parametric Tests
7.4. The NPARWAY Procedure
7.5. Ranking Items in a Data Set Using the RANK Procedure
7.6. Chapter Summary
8. Data Step Information 3 – Reading Data Files and Labeling Variables
8.1. The INFILE Statement
8.2. The LABEL Statement
8.3. ViewTable and Table Editor
8.4. DROP, KEEP, and RENAME Statements
8.5. Chapter Summary
9. Frequency Analysis
9.1. Statistical Tests
9.1.1. One-Way Frequency Analysis – Goodness-of-Fit Test for Equal Proportion
9.1.2. One-Way Frequency Analysis – Goodness-of-Fit Test for a Nominal Distribution
9.1.3. Two-Way Frequency Analysis – χ2 Contingency Analysis
9.2. The FREQ Procedure
9.3. A Note about the WEIGHT Statement
9.4. Chapter Summary
10. Summarizing a Data Table in a Formal Report
10.1. Revisiting the PRINT, FREQ, and MEANS Procedures
10.2. The REPORT Procedure
10.3. Chapter Summary
11. Regression and Correlation Analysis
11.1. Simple Linear Regression
11.2. The REG Procedure
11.3. Correlation Coefficient
11.4. The CORR Procedure
11.5. Chapter Summary
12. SAS Libraries and Permanent SAS Data Sets
12.1. The Work Library
12.2. Creating a New SAS Library
12.2.1. The LIBNAME Statement
12.2.2. Toolbar Function: Add New Library
12.2.3. Explorer View
12.2.4. The LIBASSIGN Command
12.3. Creating a Permanent SAS Data Set
12.4. How to Identify the Location of Libraries
12.5. Using a Permanent SAS Data Set in a SAS Program
12.6. Engine – A Quick Note
12.7. Chapter Summary
13. DATA Step Information 4 – SAS Probability Functions.
13.1. Discrete Probability Distributions
13.1.1. The Binomial Distribution
13.1.2. The Poisson Distribution
13.2. Continuous Probability Distributions
13.2.1. The Normal Distribution
13.2.2. The t-Distribution
13.2.3. The χ2-Distribution
13.2.4. The F-distribution
13.3. Chapter Summary
14. Reading and Writing Data Files
14.1. The Import Wizard
14.2. The IMPORT Procedure
14.3. The Export Wizard
14.4. The EXPORT Procedure
14.5. Chapter Summary
15. DATA Step Information 5 – DO Loops, ARRAY, and Random Number Generators
15.1. DO Loops – DO and END Statements
15.2. The OUTPUT Statement
15.3. The ARRAY statement
15.4. Random Number Generators
15.4.1. Seed Values and Standard Normal Random Numbers
15.4.2. Continuous Distributions
15.4.3. Discrete Distributions
15.5. Chapter Summary
16. Statistical Graphics Procedures
16.1. The SGPLOT Procedure
16.1.1. Horizontal and Vertical Bar Charts
16.1.2. Histograms and Density Curves
16.1.3. Box Plots
16.1.4. Scatter Plots and Series Plots
16.2. The SGSCATTER Procedure
16.3. The SGPANEL Procedure
16.4. Saving the Statistical Graphics Images
16.5. Chapter Summary
17. SAS/GRAPH Procedures
17.1. GOPTIONS Statement
17.1.1. Selecting Colors for Graphics
17.1.2. A Few Basic Options
17.2. The GCHART Procedure
17.2.2. PATTERN Statements
17.2.3. Pie Charts
17.3. The GPLOT Procedure
17.3.1. SYMBOL Statements
17.3.3.1 Shapes
17.3.2. Simple (X, Y) Plot
17.3.3. AXIS Statements
17.3.4. (X, Y) Plot by Category
17.3.5. LEGEND Statements
17.3.6. Multiple Plots per Axes
17.4. The GD Procedure
17.5. The GCONTOUR Procedure
17.6. Saving Graph Images
17.7. Chapter Summary
18. Formatting Responses
18.1. The FORMAT Procedure
18.2. The FORMAT Statement
18.3. Chapter Summary
19. Output Delivery System (ODS)
19.1. Enabling Graphics, HTML, and Listing Output
19.2. ODS Table and Graph Names
19.2.1. Using SAS Help and Documentation
19.2.2. Tracing SAS Output
19.3. Controlling the Content of the Output
19.4. Creating SAS Data Sets from the Output
19.5. Creating External Files From the Output
19.6. Chapter Summary
20. Miscellaneous Topics
20.1. Usage of a Double-dash to Specify a Range of Variables
20.2. Annotating Programs
20.2.1. Single-Line Comments
20.2.2. Block Comments
20.3. Strategies for Checking for Data Errors Using SAS Procedures
20.4. DATA Step Information – Indicator Function
20.5. Chapter Summary
References
Index