# ezzio11/statistical-modeling-for-blood-pressure-on-r architecture

> Architecture diagram of the GitHub repository ezzio11/statistical-modeling-for-blood-pressure-on-r, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ezzio11/statistical-modeling-for-blood-pressure-on-r
- Repository: https://github.com/ezzio11/statistical-modeling-for-blood-pressure-on-r

## Overview

##### Project type and purpose
- This is an R-based data analysis project (“Blood Pressure Analysis Project”) that ingests a tabular dataset, performs statistical modeling (regression and marginal effects), visualizes results, and produces a report (PDF). It is not a multi-tier application but a data‐science pipeline implemented as a single script (REG_CODE.R).

##### File structure
- Top‐level files:
- REG_CODE.R – the main R script orchestrating data loading, cleaning, analysis, and plotting
- bloodpress.txt – the raw data input file
- Regression Analysis Project.pdf – the final output/report
- README.md – project description and instructions
- No separate “src” or “lib” directories; dependencies are loaded at the top of REG_CODE.R via library() calls.

##### README for additional insights
- Purpose: study relationships between blood pressure and factors (Age, BSA, Weight, DUR, Pulse, Stress)
- Techniques: regression analysis, marginal effects, plots (ggplot2, GGally, car)
- Output: visual and tabular summaries, final PDF report

##### Diagramming recommendations
[bloodpress.txt] → [Data Processing] → [Statistical Analysis] → [Visualization] → [PDF Report]
- Blue for data components
- Green for processing modules
- Orange for visualization/reporting

## Diagram (Mermaid)

```mermaid
flowchart TB
    classDef data fill:#D0E8F2,stroke:#4A90E2,color:#000
    classDef process fill:#DFF2D8,stroke:#3C763D,color:#000
    classDef visual fill:#FDEBD0,stroke:#E67E22,color:#000
    classDef doc fill:#F9EBEA,stroke:#C0392B,color:#000
    classDef repo fill:#ECECEC,stroke:#95A5A6,color:#000

    DataSource["bloodpress.txt"]:::data
    Repo["README.md\n(and source files)"]:::repo
    subgraph "R Environment (R 4.x + packages)"
        DataProcessing["Data Processing\n(ingest & clean)"]:::process
        StatisticalAnalysis["Statistical Analysis\n(modeling & marginal effects)"]:::process
        Visualization["Visualization\n(plots: ggplot2, GGally, car)"]:::visual
        ReportGen["Report Generation\n(compile report)"]:::visual
    end
    Output["Regression Analysis Project.pdf"]:::doc

    DataSource -->|"raw data"| DataProcessing
    DataProcessing -->|"cleaned data frame"| StatisticalAnalysis
    StatisticalAnalysis -->|"model object"| Visualization
    Visualization -->|"plot objects"| ReportGen
    ReportGen -->|"PDF report"| Output

    ggplot2["ggplot2"]:::repo
    GGally["GGally"]:::repo
    car["car"]:::repo

    ggplot2 --> Visualization
    GGally --> Visualization
    car --> Visualization

    Repo --> DataProcessing

    click DataSource "https://github.com/ezzio11/statistical-modeling-for-blood-pressure-on-r/blob/main/bloodpress.txt"
    click DataProcessing "https://github.com/ezzio11/statistical-modeling-for-blood-pressure-on-r/blob/main/REG_CODE.R"
    click StatisticalAnalysis "https://github.com/ezzio11/statistical-modeling-for-blood-pressure-on-r/blob/main/REG_CODE.R"
    click Visualization "https://github.com/ezzio11/statistical-modeling-for-blood-pressure-on-r/blob/main/REG_CODE.R"
    click ReportGen "https://github.com/ezzio11/statistical-modeling-for-blood-pressure-on-r/blob/main/REG_CODE.R"
    click Output "https://github.com/ezzio11/statistical-modeling-for-blood-pressure-on-r/blob/main/Regression Analysis Project.pdf"
    click Repo "https://github.com/ezzio11/statistical-modeling-for-blood-pressure-on-r/blob/main/README.md"
```
