# alexvmrk/cjars-data-study architecture

> Architecture diagram of the GitHub repository alexvmrk/cjars-data-study, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/alexvmrk/cjars-data-study
- Repository: https://github.com/alexvmrk/cjars-data-study

## Overview

The repository appears to contain an R-based data-analysis workflow for boundary and demographic processing, estimation exploration, rural/urban tables, regression-data generation, and mapping. The numbered filenames suggest stages, but with no README or source excerpts, their data transfers and call relationships cannot be verified; the graph therefore shows capabilities without inferred links.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_prep["Data preparation"]
  node_data_processing["Data processing"]
  node_date_boundaries["Date boundaries"]
  node_demographic_boundaries["Demographic boundaries"]
end

subgraph group_analysis["Analysis exploration"]
  node_window_exploration["Two-year window"]
  node_estimation_exploration["Estimation groups"]
end

subgraph group_tables["Rural-urban tables"]
  node_table_builder["Table builder<br/>[06_table_builder.R]"]
  node_econ_tables["Economic tables"]
  node_health_tables["Health tables"]
  node_new_tables["Additional tables"]
end

subgraph group_outputs["Analysis outputs"]
  node_regression_data["Regression data"]
  node_map_generation["Map generation"]
end

click node_data_processing "https://github.com/alexvmrk/cjars-data-study/blob/main/scripts/01_data_processing.R"
click node_date_boundaries "https://github.com/alexvmrk/cjars-data-study/blob/main/scripts/02_date_boundaries.R"
click node_demographic_boundaries "https://github.com/alexvmrk/cjars-data-study/blob/main/scripts/03_demographic_boundaries.R"
click node_window_exploration "https://github.com/alexvmrk/cjars-data-study/blob/main/scripts/04_two_year_window_exploration.R"
click node_estimation_exploration "https://github.com/alexvmrk/cjars-data-study/blob/main/scripts/05_estimation_group_exploration.R"
click node_table_builder "https://github.com/alexvmrk/cjars-data-study/blob/main/scripts/06_table_builder.R"
click node_econ_tables "https://github.com/alexvmrk/cjars-data-study/blob/main/scripts/06A_rural_vs_urban_econ_tables.R"
click node_health_tables "https://github.com/alexvmrk/cjars-data-study/blob/main/scripts/06B_rural_vs_urban_health_tables.R"
click node_new_tables "https://github.com/alexvmrk/cjars-data-study/blob/main/scripts/06C_rural_vs_urban_new_tables.R"
click node_regression_data "https://github.com/alexvmrk/cjars-data-study/blob/main/scripts/07_generate_regression_data.R"
click node_map_generation "https://github.com/alexvmrk/cjars-data-study/blob/main/scripts/09_map_generation.R"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_data_processing,node_date_boundaries,node_demographic_boundaries toneBlue
class node_window_exploration,node_estimation_exploration toneAmber
class node_table_builder,node_econ_tables,node_health_tables,node_new_tables toneMint
class node_regression_data,node_map_generation toneRose
```

## Components

### Data preparation

- [Data processing](https://github.com/alexvmrk/cjars-data-study/blob/main/scripts/01_data_processing.R): `scripts/01_data_processing.R`
- [Date boundaries](https://github.com/alexvmrk/cjars-data-study/blob/main/scripts/02_date_boundaries.R): `scripts/02_date_boundaries.R`
- [Demographic boundaries](https://github.com/alexvmrk/cjars-data-study/blob/main/scripts/03_demographic_boundaries.R): `scripts/03_demographic_boundaries.R`

### Analysis exploration

- [Two-year window](https://github.com/alexvmrk/cjars-data-study/blob/main/scripts/04_two_year_window_exploration.R): `scripts/04_two_year_window_exploration.R`
- [Estimation groups](https://github.com/alexvmrk/cjars-data-study/blob/main/scripts/05_estimation_group_exploration.R): `scripts/05_estimation_group_exploration.R`

### Rural-urban tables

- [Table builder](https://github.com/alexvmrk/cjars-data-study/blob/main/scripts/06_table_builder.R): `scripts/06_table_builder.R`
- [Economic tables](https://github.com/alexvmrk/cjars-data-study/blob/main/scripts/06A_rural_vs_urban_econ_tables.R): `scripts/06A_rural_vs_urban_econ_tables.R`
- [Health tables](https://github.com/alexvmrk/cjars-data-study/blob/main/scripts/06B_rural_vs_urban_health_tables.R): `scripts/06B_rural_vs_urban_health_tables.R`
- [Additional tables](https://github.com/alexvmrk/cjars-data-study/blob/main/scripts/06C_rural_vs_urban_new_tables.R): `scripts/06C_rural_vs_urban_new_tables.R`

### Analysis outputs

- [Regression data](https://github.com/alexvmrk/cjars-data-study/blob/main/scripts/07_generate_regression_data.R): `scripts/07_generate_regression_data.R`
- [Map generation](https://github.com/alexvmrk/cjars-data-study/blob/main/scripts/09_map_generation.R): `scripts/09_map_generation.R`
