SAS Workshop Part III SAS procedures and graphs

Department of Computing Services Jie Chen Ph.D. jie.chen@umb.edu March, 2003
3/13/2003 1

Table of Contents
• • • • PROC TTEST PROC TABULATE PROC GLM PROC CHARTS

3/13/2003

2

PROC TTEST
data sample; infile 'a:\sample1.txt'; input age educ $ race sex ptotinc famsize fincome region; run; proc ttest data = sample; class sex; var fincome; run;
3/13/2003 3

class region. 3/13/2003 6 . var fincome. family income’.Output of t-Test 3/13/2003 4 PROC TABULATE proc tabulate data = sample. class region. output out = out1 p = pred1 r = resid1. model fincome = region . run. table region. 3/13/2003 5 PROC GLM proc glm data = sample. fincome*(sum mean). title ‘region. run.

plot resid1*pred1. proc plot .The output of GLM 3/13/2003 7 Checking Normality Assumption proc rank data = out1 normal = blom. var resid1. hbar fincome. ranks nscore. 3/13/2003 9 . title 'Bar Chart for Family Invome'. 3/13/2003 8 Horizontal Bar Chart proc chart data = sample. Run. plot resid1*nscore. run.

Run.Vertical Bar Chart proc chart data = sample. vbar region. 3/13/2003 10 . title 'Bar Chart for Region'.

Sign up to vote on this title
UsefulNot useful