Skip to content

A comprehensive statistical analysis of sleep patterns, exploring the impact of age, smoking, and lifestyle habits using R and Quarto.

Notifications You must be signed in to change notification settings

Farslan-x/Sleep-Efficiency-Health-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Sleep Efficiency & Health Analysis πŸ’€

This project involves the detailed statistical analysis and visualization of sleep patterns, efficiency, and the impact of lifestyle habits (smoking, alcohol, caffeine) on sleep quality, based on the "Krizantem" dataset.

πŸ‘₯ Project Author

  • Ferhat ARSLAN

πŸ“Š Project Summary

Using a dataset comprising 450 subjects, this study examines the relationship between physiological characteristics (Age, Gender) and sleep stages (REM, Deep, Light). The project specifically focuses on how behavioral changes, such as smoking cessation, affect sleep duration.

The objectives of this study are:

  • To analyze the impact of lifestyle choices (smoking, alcohol) on sleep efficiency,
  • To investigate the correlation between age and deep sleep percentages,
  • To determine if gender plays a significant role in sleep architecture (Light vs. Deep sleep).

πŸ› οΈ Technologies and Libraries Used

The project was prepared in Quarto format using the R programming language.

  • Data Processing: tidyverse, readxl, dplyr, dlookr
  • Visualization: ggplot2, ggpubr, skimr
  • Reporting: knitr, kableExtra, flextable
  • Statistical Analysis: stats (t-test, ANOVA, Shapiro-Wilk)

πŸ”Ž Key Findings

  1. Smoking Impact: A Paired T-Test analysis revealed a statistically significant increase in sleep duration after subjects quit smoking (comparing 2022 vs. 2023 data).
  2. Age Correlation: A strong relationship was observed between Age and Deep Sleep Percentage, suggesting that sleep depth changes as individuals age.
  3. Gender Differences: ANOVA results indicated that Light Sleep Percentage varies significantly between male and female subjects.
  4. Sleep Distribution: Normality tests (Shapiro-Wilk) showed that REM sleep percentages do not follow a normal distribution across the population.

πŸ“‚ Setup and Execution

To run this project on your own computer:

  1. Clone this repository:
   git clone https://github.com/ferhatarslan/Sleep-Efficiency-Health-Analysis.git

About

A comprehensive statistical analysis of sleep patterns, exploring the impact of age, smoking, and lifestyle habits using R and Quarto.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages