Limitations of the data - Viewing the min and max of the age column shows that our youngest participant is 9 years old, but for our purpose of inspecting the relationship between alcohol and sleep this will not be relevant.
summary(mydata)
## ID Age Gender Bedtime ## Min. : 1.0 Min. : 9.00 Length:452 Length:452 ## 1st Qu.:113.8 1st Qu.:29.00 Class :character Class :character ## Median :226.5 Median :40.00 Mode :character Mode :character ## Mean :226.5 Mean :40.29 ## 3rd Qu.:339.2 3rd Qu.:52.00 ## Max. :452.0 Max. :69.00 ## ## Wakeup.time Sleep.duration Sleep.efficiency REM.sleep.percentage ## Length:452 Min. : 5.000 Min. :0.5000 Min. :15.00 ## Class :character 1st Qu.: 7.000 1st Qu.:0.6975 1st Qu.:20.00 ## Mode :character Median : 7.500 Median :0.8200 Median :22.00 ## Mean : 7.466 Mean :0.7889 Mean :22.62 ## 3rd Qu.: 8.000 3rd Qu.:0.9000 3rd Qu.:25.00 ## Max. :10.000 Max. :0.9900 Max. :30.00 ## ## Deep.sleep.percentage Light.sleep.percentage Awakenings ## Min. :18.00 Min. : 7.00 Min. :0.000 ## 1st Qu.:48.25 1st Qu.:15.00 1st Qu.:1.000 ## Median :58.00 Median :18.00 Median :1.000 ## Mean :52.82 Mean :24.56 Mean :1.641 ## 3rd Qu.:63.00 3rd Qu.:32.50 3rd Qu.:3.000 ## Max. :75.00 Max. :63.00 Max. :4.000 ## NA's :20 ## Caffeine.consumption Alcohol.consumption Smoking.status Exercise.frequency ## Min. : 0.00 Min. :0.000 Length:452 Min. :0.000 ## 1st Qu.: 0.00 1st Qu.:0.000 Class :character 1st Qu.:0.000 ## Median : 25.00 Median :0.000 Mode :character Median :2.000 ## Mean : 23.65 Mean :1.174 Mean :1.791 ## 3rd Qu.: 50.00 3rd Qu.:2.000 3rd Qu.:3.000 ## Max. :200.00 Max. :5.000 Max. :5.000 ## NA's :25 NA's :14 NA's :6