Welcome to the Life Expectancy Analysis repository. This project provides a comprehensive framework for analyzing life expectancy data using World Bank indicators. It includes an R package, sample analysis files, and an interactive dashboard for exploring relationships between socioeconomic factors and life expectancy.
Team Error 404: Team Not Found
- Wenqing (Cathy) Zhang
- Guan Gui
- Enrui (Ryan) Wang
- Zixu (Jerry) Luo
The data/
directory contains datasets used for our analyses. These datasets were processed to ensure consistency and reliability for modeling and visualization.
The image/
directory includes visual assets related to the project, such as figures or plots generated during exploratory data analysis.
We provide a sample analysis workflow to demonstrate how to use the tools developed in this project:
final_sample_analysis.Rmd
: An R Markdown file showcasing the complete analysis pipeline, from data preprocessing to predictive modeling.final_sample_analysis.html
: The rendered HTML file from the R Markdown analysis.
The interactive dashboard and its source file are provided for deeper exploration:
dashboard.Rmd
: The R Markdown file used to create the interactive Shiny dashboard.- Life Expectancy Dashboard: Access the live dashboard.
The dashboard allows users to:
- Select target years and predictors.
- Customize train-test splits and modeling parameters.
- Compare results across multiple machine learning models, including linear regression, random forest, support vector machines, and gradient boosting.
The WorldbankAnalysis R package is the backbone of this project. It enables users to fetch, preprocess, and analyze World Bank data seamlessly: WorldbankAnalysis GitHub Repository
To install the development version of the package from GitHub:
# Install the devtools package if not already installed
install.packages("devtools")
# Install WorldbankAnalysis
devtools::install_github("ggui6809/WorldbankAnalysis")
The file Final_Project_Report.pdf
contains a detailed description of the project's objectives, methodology, and findings. This document serves as a comprehensive reference for understanding the analytical approaches and results.
- Clone this repository:
git clone https://github.com/jhu-statprogramming-fall-2024/project4-error-404-team-not-found.git
- Install the WorldbankAnalysis R package as shown above.
- Open the
final_sample_analysis.Rmd
ordashboard.Rmd
file in RStudio to explore the analysis pipeline and dashboard development.
This project is licensed under the MIT License. See the LICENSE
file for more details.