From the course: Descriptive Healthcare Analytics in R

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Challenge: Make a categorical variable from a continuous one

Challenge: Make a categorical variable from a continuous one - R Tutorial

From the course: Descriptive Healthcare Analytics in R

Challenge: Make a categorical variable from a continuous one

(bright music) - [Lecturer] In this challenge, we're going to practice making a categorical variable based on values from a continuous variable, which is one of the many things we learned in this chapter. But this time we're going to spice it up a bit by using a different dataset, the NHANES dataset. You might remember me mentioning the National Health and Nutrition Examination Survey, or NHANES, earlier in the course. Please look at the handout for this challenge and you'll see the links to access this dataset and documentation. NHANES is like the BRFSS, the dataset you are working with in this course, in that respondents answer a lot of the same questionnaire questions as the ones in BRFSS. But a big difference between the BRFSS and the NHANES is that the NHANES is done in person and the BRFSS is done over the phone. Because of that, the NHANES includes data on the results of physical examinations and the BRFSS doesn't. In fact, we will be using some of that examination data in this…

Contents