nhanes.csv

The National Health and Nutrition Examination Survey (NHANES) is a program of studies carried out by the Centers for Disease Control and Prevention (CDC) and is designed to assess the health and nutritional status of adults and children in the United States. These studies are conducted in two-year cycles and the data collected is representative of the non-institutionalized U.S. population. The data comes from interviews and physical examinations of the sampled participants.

The data in nhanes.csv were collected by the CDC in 2017 and includes measures collected from 500 randomly sampled participants.


The attributes included in the data are:


Preview

# Load library
library(tidyverse)

# Import data
nhanes = read_csv(file = "https://raw.githubusercontent.com/zief0002/epsy-5261/main/data/nhanes.csv")

# View data
nhanes
# A tibble: 500 × 9
   sleep_weeknight sleep_weekend trouble_sleeping exercise_hour
             <dbl>         <dbl> <chr>            <chr>        
 1             9             9   NO               <NA>         
 2             9             7   NO               YES          
 3             8             8   YES              YES          
 4             9             8.5 YES              NO           
 5             8.5           8   NO               YES          
 6             7.5           8   YES              YES          
 7             7             9   NO               NO           
 8             8             9   YES              YES          
 9             7.5           7.5 NO               NO           
10             9             9   NO               YES          
   vigorous_exercise pulse recent_depression   age martital_status  
               <dbl> <dbl> <chr>             <dbl> <chr>            
 1                NA    58 NO                   60 Married          
 2               120    80 NO                   36 Divorced         
 3               120    84 NO                   55 Never Married    
 4                15    68 YES                  45 Live with Partner
 5                75    78 YES                  27 Never Married    
 6               240    90 YES                  67 Married          
 7                60    74 NO                   39 Married          
 8               120    82 NO                   30 Live with Partner
 9                20    60 NO                   33 Separated        
10               180    70 NO                   57 Divorced         
# ℹ 490 more rows