From the course: SAS Essential Training: 1 Descriptive Analysis for Healthcare Research

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Bar chart

Bar chart

- [Instructor] Hi everyone. Please notice that I opened the code 200_Stacked bar plot. I started the code name with two meaning I am now putting the analytic code under the 200's. That way we know the 100's mean transformation code. So if I find any train wrecks in my analysis, I know I need to go back to the 100's code and do some surgery. You'll see the same old libname command up here. Nothing has changed in terms of mapping or directories, just because we are doing the analysis now. Okay, now let's get political. SAS has been around a long time, and therefore there are many different ways to do the same thing. So, there are many ways to make a plot and old time SAS users stay up all night arguing about what the best procs are for this. I don't want to take a side, so I am following a SAS whitepaper by Jeff Cartier that I'm including in your exercise files. Jeff uses proc g chart, so that's what we will do too. First, we are going to plot one categorical group on the bar plot. We…

Contents