{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

two-way_tables - Two-Way Tables in SAS options nodate...

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

View Full Document Right Arrow Icon
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 -
Image of page 1

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

View Full Document Right Arrow Icon
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 ; F R E Q U E N C Y 0 1 0 0 0 2 0 0 0 3 0 0 0 4 0 0 0 5 0 0 0 6 0 0 0 a g e 1 8 b e l o w 1 8 t o 2 1 2 2 t o 3 4 3 5 o v e r - 2 -
Image of page 2
Two-Way Tables in SAS F R E Q U E N C Y 0 1 0 0 0 2 0 0 0 3 0 0 0 4 0 0 0 a g e p r o g r a m 2 f u l l 2 p a r t 4 f u l l 4 p a r t 1 8 b e l o w
Image of page 3

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

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern