1. Learn
  2. /
  3. Courses
  4. /
  5. Analyzing Survey Data in R

Connected

Exercise

Summarizing a categorical variable

The NHANES variable, Depressed, gives the self-reported frequency in which a participant felt depressed. It is only reported for participants aged 18 years or older. Let's explore the distribution of depression in the US.

Instructions 1/4

undefined XP
    1
    2
    3
    4
  • Use the levels command to determine the categories of Depressed.