# Learning SAS in the Computer Lab

Learning SAS in tihe Computer Lab, Rebecca J. Elliott
INTRODUCTION
CHAPTER 1 THE BASICS
• DATA STEPS AND PROC STEPS
• THE DATA STEP
• PROC PRINT
• THE INPUT STATEMENT
• COMPARISON OF CHARACTER FORMATS
• SAS PROGRAM, LOG, AND LIST FILES
• PROBLEMS
CHAPTER 2 MORE SAS BASICS
• SUBSETTING IF STATEMENTS
• IF...THEN...ELSE STATEMENTS
• USING DATA FROM OUTSIDE FILES
• PROC SORT
• SET STATEMENT
• PROBLEMS
CHAPTER 3 DATA MANAGEMENT
• HOW SAS "THINKS"
• LAG FUNCTION
• DROP AND KEEP STATEMENTS
• COMBINING DATA SETS
• COMMENT LINES
• LIMITING THE NUMBER OF OBSERVATIONS READ FROM EXTERNAL FILES
• SETTING THE SIZE OF THE OUTPUT
• THE PUT STATEMENT
• PROBLEMS
CHAPTER 4 SAS FUNCTIONS
• NUMERIC FUNCTIONS
• CHARACTER FUNCTIONS
• PROBABILITY FUNCTIONS
• PROBLEMS
CHAPTER 5 DESCRIPTIVE STATISTICS I
• LABEL STATEMENTS
• TITLE STATEMENTS
• PROC UNIVARIATE
• PROBLEMS
CHAPTER 6 PROC CHART
• PROC CHART
• PROBLEMS
CHAPTER 7 DESCRIPTIVE STATISTICS II
• PROC MEANS
• PROC FREQ
• PROBLEMS
CHAPTER 8 GENERATIVE RANDOM OBSERVATIONS
• SAS DISTRIBUTIONAL FUNCTIONS
• DO LOOPS
• PROBLEMS
CHAPTER 9 X-Y PLOTS
• PROC PLOT
• PROBLEMS
CHAPTER 10 ONE-SAMPLE TESTS FOR u,p
• ONE-SAMPLE T-TESTS
• PROBLEMS
CHAPTER 11 TWO-SAMPLE T-TESTS
• PROC TTEST
• T-TESTS: TWO-SAMPLE, POOLED, AND PAIRED
• PROBLEMS
CHAPTER 12 ONE-WAY ANOVA
• ANALYSIS OF VARIANCE-PROC GLM AND PROC ANOVA
• PROBLEMS
CHAPTER 13 TWO-WAY ANOVA
• TWO-WAY ANOVA
• PROBLEMS
CHAPTER 14 CORRELATIONS
• PROC CORR
• PROBLEMS
CHAPTER 15 SIMPLE LINEAR REGRESSION
• PROC REG
• PROBLEMS
CHAPTER 16 MODEL CHECKING IN REGRESSION
• PLOTS FOR MODEL CHECKING
• MORE ON PROC REG
• PROBLEMS
CHAPTER 17 MULTLIPLE LINEAR REGRESSION
• MULTIPLE REGRESSION
• PROBLEMS
CHAPTER 18 MULTIPLE REGRESSION; CHOOSING THE BEST MODEL
• PROC REG SELECTION= OPTION
• PROBLEMS
CHAPTER 19 CHI-SQUARE TESTS
• CHI-SQUARE TESTS
• PROBLEMS
CHAPTER 20 NONPARAMETRIC ONE-WAY ANOVA
• PROC NPAR1WAY
• PROBLEMS
CHAPTER 21 ANALYSIS OF COVARIANCE
• USING PROC GLM FOR ANCOVA
• PROBLEMS
APPENDIX: DESCRIPTION OF DATA SETS 157

INDEX