Two-way_tables - Two-Way Tables in SAS options nodate pageno= 1 goptions colors =(none title'Age versus College Program class example data one

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Two-Way Tables in SAS options nodate pageno= 1 ; goptions colors =(none); title 'Age versus College Program -- class example' ; data one; input age $ program $ count; datalines ; 18below 2full 36 18below 2part 98 18below 4full 75 18below 4part 37 18to21 2full 1126 18to21 2part 711 18to21 4full 3270 18to21 4part 223 22to34 2full 634 22to34 2part 1575 22to34 4full 2267 22to34 4part 1380 35over 2full 221 35over 2part 1092 35over 4full 390 35over 4part 915 ; run ;- 1 - Two-Way Tables in SAS /*This gchart gives 3 different graphs*/ proc gchart data =one; vbar age / freq =count; /*Marginal graph for age—the first graph below*/ vbar age / group =program freq =count; /*Conditional graphs for age given each program—the second graph below*/ block age / group =program freq =count; /*Joint graph for both variables—the third graph below*/ run ; FREQUENCY 1000 2000 3000 4000 5000 6000 age 18bel ow 18t o21 22t o34 35over- 2 - Two-Way Tables in SAS F REQUENCY 1000 2000 3000 4000 age pr ogr am 2f ul l...
View Full Document

This note was uploaded on 02/20/2012 for the course STAT 501 taught by Professor Staff during the Spring '08 term at Purdue University-West Lafayette.

Page1 / 5

Two-way_tables - Two-Way Tables in SAS options nodate pageno= 1 goptions colors =(none title'Age versus College Program class example data one

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online