Employee Satisfaction Analysis Using R
This project analyzes employee satisfaction and workplace dynamics using statistical techniques in R. The analysis examines factors that influence employee job satisfaction across 3,025 survey responses from a fictional company.
π View the Live Report
The full analysis report is available on GitHub Pages: View Employee Satisfaction Analysis Report
Project Overview
This analysis explores relationships between various workplace factors and employee satisfaction using:
- Chi-squared tests for association between categorical variables
- One-way and Two-way ANOVA for comparing means across groups
- Multiple Linear Regression to model predictors of job satisfaction
Dataset
The dataset uses a synthetically made employee survey available on Kaggle.
Sample size: 3,025 employee responses
Key Variables Analyzed
- Demographics: Gender, Age, Job Level, Experience, Department
- Workplace Factors: Work-Life Balance, Work Environment, Work Load, Stress
- Well-being: Sleep Hours, Training Hours Per Year
- Outcome: Job Satisfaction
Required R Packages
Install the required packages before running the analysis:
install.packages(c("readxl", "dplyr", "ggplot2", "corrplot", "knitr", "gridExtra"))
How to Run
- Clone this repository
- Open R or RStudio
- Install required packages (see above)
- Open
Project_Alexandre_Saliba.Rmd in RStudio
- Ensure
employee_survey.xlsx is in the same directory
- Click βKnitβ to generate the HTML report, or run chunks individually
Key Findings
- Stress and Job Satisfaction: Strong statistical association found between stress levels and job satisfaction
- Work Environment: Significant predictor of job satisfaction in regression analysis
- Demographics: Age and experience show positive correlation with training hours received
- Sleep Hours: No significant differences found across gender groups
- Work Load & Environment: No significant interaction effect on stress levels
- Chi-Squared Tests:
- Job Level vs Stress
- Stress vs Job Satisfaction
- ANOVA Tests:
- One-way ANOVA: Sleep Hours across Gender groups
- Two-way ANOVA: Stress levels based on Work Load and Work Environment
- Multiple Linear Regression:
- Predictors of Job Satisfaction (Stress, Work-Life Balance, Work Environment, Training Hours, Gender)
Project Structure
.
βββ Project_Alexandre_Saliba.Rmd # Main analysis file
βββ Project_Alexandre_Saliba.html # Generated HTML report
βββ employee_survey.xlsx # Dataset
βββ README.md # This file
βββ .gitignore # Git ignore file
Author
Alexandre Saliba
License
This project is for educational and portfolio purposes.