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.

Grouping a continuous variable

Grouping a continuous variable - SAS Tutorial

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

Start my 1-month free trial

Grouping a continuous variable

- [Instructor] I noticed in the previous movies I didn't have a chance to show you an example of how you can turn a continuous variable into a grouped variable. First, we are going to look at the distribution of the SLEPTIM1 variable, which is average hours of sleep per night. Then we are going to categorize this continuous variable into a grouping variable in the next movie. You will see I'm using code 147_GroupingContinuousExample. This is not part of your regular code for this project. It's just an example. Whoah, what's this? A new proc we haven't seen yet. Let me introduce you to proc univariate, which is as useful with continuous variables as proc freq is with categorical variables. In fact, it's a lot like proc freq because you can add some terrific options to get different displays. But, for now, we are just going to look at the default output. Proc univariate default output provides many metrics about the continuous variable you choose. Like with proc freq, proc univariate…

Contents