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.

Recoding the smoking variable

Recoding the smoking variable - SAS Tutorial

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

Start my 1-month free trial

Recoding the smoking variable

- [Instructor] In this video, we'll continue by making the smoking variable. However, it's a little complicated because it involves two steps. Here, I have the data dictionary open and I've clicked on the smoke 100 tab. You can see the coding for smoke 100. Yes, no, don't know, refused, and missing. The question the respondent is actually asked is have you smoked at least 100 cigarettes in your entire life? Right, 100 cigarettes in your entire life. Please don't ask me, why a hundred? But basically, there are two kinds of people who say yes. People who smoked 100 cigarettes and they are still smoking, and people who smoked 100 cigarettes, and probably a few more than that, and eventually stopped. So we can't tell from this variable who is a current smoker and who is a former smoker. However, there is only one kind of people who say no to this question. People who have never smoked. Therefore, the first step in making a smoking classification variable is to create a flag for never…

Contents