Introduction To Sas Procedures: 3

  • October 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Introduction To Sas Procedures: 3 as PDF for free.

More details

  • Words: 192
  • Pages: 4
SAS Workshop Part III SAS procedures and graphs Department of Computing Services Jie Chen Ph.D. [email protected] 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

1

Output of t-Test

3/13/2003

4

PROC TABULATE proc tabulate data = sample; class region; var fincome; table region, fincome*(sum mean); title ‘region, family income’; run; 3/13/2003

5

PROC GLM proc glm data = sample; class region; model fincome = region ; output out = out1 p = pred1 r = resid1; run;

3/13/2003

6

2

The output of GLM

3/13/2003

7

Checking Normality Assumption proc rank data = out1 normal = blom; var resid1; ranks nscore; proc plot ; plot resid1*pred1; plot resid1*nscore; run;

3/13/2003

8

Horizontal Bar Chart proc chart data = sample; hbar fincome; title 'Bar Chart for Family Invome'; Run;

3/13/2003

9

3

Vertical Bar Chart proc chart data = sample; vbar region; title 'Bar Chart for Region'; Run;

3/13/2003

10

4

Related Documents