/r-analysis

An R project focused on conducting data analysis and visualization to investigate the impact of psychosocial factors on risky driving

Primary LanguageHTML

Analysis and Visualization of Data using R

This project utilizes the R programming language to conduct in-depth data analysis and visualization on the impact of psychosocial factors on risky driving. The primary goal is to expand on an existing scientific paper and provide further understanding of the topic.

To extract valuable insights from the data, various statistical analysis techniques such as analysis of variance, correlation, and regression analyses were used. The most significant findings from the analysis.R script are presented in the report markdown file.

To view the report in your browser, click on this link: https://raw.githack.com/mileni98/r-analysis/main/report_markdown.html

If the link doesn't work, try opening it in an incognito tab.

Running the project

To use this project, follow these steps:

  1. Create a directory called "dataset" in the root folder of the project.
  2. Download the "Database - DIB-D-17-00369.sav" file from this link: https://www.sciencedirect.com/science/article/pii/S2352340917304638
  3. Place the downloaded file into the "dataset" directory .
  4. Make sure that all the necessary dependencies are installed.
  5. Run the analysis.R script.
  6. Open and knit the report_markdown.Rmd file to view the project report.

Dependencies

This project requires the following dependencies:

  • haven
  • knitr

Make sure you have these packages installed in your R environment before running any scripts related to this project.