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 - 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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Generating the age variables4m 18s
-
(Locked)
Generating the smoking variables4m 36s
-
(Locked)
Finalizing the analytic data set5m 46s
-
(Locked)
What is Table 1?4m 26s
-
Reviewing categorical variable distribution6m 15s
-
(Locked)
Reviewing continuous variable distribution6m 29s
-
(Locked)
Challenge: Make a categorical variable from a continuous one5m 40s
-
(Locked)
Solution: Make a categorical variable from a continuous one4m 45s
-
(Locked)
-
-
-