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.

Cleaning a continuous variable

Cleaning a continuous variable - SAS Tutorial

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

Start my 1-month free trial

Cleaning a continuous variable

- [Instructor] This movie is an example of how to clean up a continuous variable. The way we are making our analytic data set, we won't need to clean up our continuous variable SLEPTIM1 because we are simply getting rid of all the records that have no value, or an invalid value in that field. So, this is off the beaten path of us making our analytic data set, but I thought I'd show you this demonstration in case you need to clean up a continuous variable in the future. So as you can see, I named this code 148_CleaningExample. Okay, let's start with a PROC FREQ on SLEPTIM1 in the whole data set. The big BRFSS_a data set we originally read in. Remember how we did a PROC FREQ on this variable a few movies ago? Well, this is the same thing, only on the whole data set. Let's run this. So what we are looking for in this output, are values in SLEPTIM1 we wish weren't there. Let's look at the very bottom. Now, you can debate with someone whether or not you want to include the 36 people who…

Contents