Yueran016 / Yueran_Cao_final

0 stars 1 forks source link

Yueran_Cao_final

Association between Mental Health & Work Report

Overview

This repository contains the analysis for the project "Association between Mental Health & Work." The project aims to explore the implications of remote work on employees' mental well-being using a dataset of 5,000 records from various industries and regions.

Repository Contents

Generating the Final Report

You can generate the final report by running the Makefile, which will execute the necessary scripts to create the required outputs and render the report.

Step-by-Step Instructions

  1. Ensure Required Packages are Installed:

    • Install the required R packages:
      install.packages(c("here", "readr", "ggplot2", "dplyr", "gtsummary", "rmarkdown"))
  2. Run the Makefile:

    • Navigate to the project directory in your terminal and run the Makefile:
      make

    This will execute the following steps:

    • Run code/01_tabular_analysis.R to generate the summary table and save it as output/table_one.rds.
    • Run code/02_figure_generate.R to create the figure and save it as output/figure_one.rds.
    • Run code/03_render_report.R to render the R Markdown file and generate the final report report.html.
  3. View the Final Report:

    • After running the Makefile, open report.html to view the final report.