The SAS Workbook
Preface
Acknowledgments
SECTION 1 - Data Step Programming
1 Inputting Raw Data
2 Reading and Writing from External Files
3 Using Logical Structures: IF-THEN/ELSE, WHERE, and SELECT
4 Combining SAS Data Se
ts
5 Using Numerical Functions
6 Using Character Functions
7 Working with Dates
8 Using Arrays
9 Looking Back and Ahead Across Observations
10 Working with Longitudinal Data: Multiple Observations per Subject
11 Writing Simple DATA Step Reports
SECTION 2 - Procedures (Non-statistical Problems)
12 The FORMAT Procedure
13 The PRINT Procedure
14 The SORT Procedure
15 The FREQ Procedure
16 The MEANS Procedure
17 The TABULATE
Procedure
18 The CHART Procedure
19 The PLOT Procedure
SECTION 3 - SAS Programming Techniques
20 Efficient Programming
21 Longer and More Advanced Problems
SECTION 4 - Statistics Problems
22 Basic Descriptive St
atistics
23 Tests of Proportions
24 Comparing Means: Two Groups
25 Analysis of Variance
26 Parametric and Nonparametric Correlations
27 Simple, Multiple, and Logistic Regression
28 Random Assignment and Random Selection
of Subjects
29 More Advanced Statistics Projects
SECTION 5 - SAS Puzzles to Test Your Skills
30 SAS Puzzles
SECTION 6 - Appendix
Appendix 205
Index