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.

Box and whisker plot

Box and whisker plot - SAS Tutorial

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

Start my 1-month free trial

Box and whisker plot

- [Instructor] Now we will continue visualizing continuous variables. This time let's make box and whisker plots. You will see I opened code file 215_Box plot from your exercise files. And I have a surprise for you, a new proc. This time we are using proc SG plot instead of proc G chart as we had been using. Let's start by looking at a box plot of average hours of sleep per night. Variable slept time one, in our analytic file. So with proc SG plot, you use the V box command to get the box and whisker plot for your variable. Let's highlight and run this. And here we are. Remember our outliers, those folks who are sleeping 24 hours a day? This is not surprising, because it matches what we saw numerically in the proc univariate output for slept time one. What might be more interesting is looking at box plots of slept time one for different groups. Let's go back to our code. Just as an example, let's say we wondered if different asthma statuses were associated with different patterns of…

Contents