Body Mass Index & The right amount of sleep
#Code used for All sleep & BMI (Results and Findings)
plot(x = heart_2020_cleaned\(BMI, y = heart_2020_cleaned\)SleepTime, xlab = “BMI”, ylab = “Sleep Time”)
summary(heart_2020_cleaned$BMI)
#Code used for the Linear Regression (Analysis)
summary(lm(SleepTime ~ BMI + Smoking + AlcoholDrinking + Sex + Diabetic, data = heart_2020_cleaned ))