# mcurban11/ccext architecture

> Architecture diagram of the GitHub repository mcurban11/ccext, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mcurban11/ccext
- Repository: https://github.com/mcurban11/ccext

## Overview

CCExt is a research repository for analyzing climate-change extinction risk, with data files, R/R Markdown analyses, and Stan model definitions. Its documented workflow includes aggregating study-level extinction thresholds and producing analyses and figures; the README also describes separate geographic, taxonomic, ecological, threat, mechanism, and temporal investigations. The README identifies some report outputs and model roles, but no source excerpts were provided, so links between analyses, datasets, and Stan files are shown only where explicitly documented.

Main entry points: [`Code and Markdown files/Aggregate for beta.R`](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/Aggregate%20for%20beta.R) (Threshold aggregation), [`Data/MetaRisk for aggreg 5.txt`](https://github.com/mcurban11/ccext/blob/main/Data/MetaRisk%20for%20aggreg%205.txt) (Raw MetaRisk data), [`Code and Markdown files/Pre Ind model w assumptions.Rmd`](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/Pre%20Ind%20model%20w%20assumptions.Rmd) (Baseline assumptions), [`Code and Markdown files/MetaRisk2 facwtd preind.Rmd`](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2%20facwtd%20preind.Rmd) (Weighted projections)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Research data"]
  node_raw_meta[("Raw MetaRisk data")]
  node_threshold_data[("Aggregated thresholds")]
  node_climate_extinctions[("Climate-linked extinctions")]
  node_iucn_extinctions[("IUCN extinctions<br/>[IUCN ext data.csv]")]
end

subgraph group_models["Statistical models"]
  node_stan_baseline["Baseline beta model"]
  node_stan_intercept["Intercept-only model"]
  node_stan_quad["Quadratic model"]
  node_stan_unweighted["Unweighted model"]
end

subgraph group_analyses["Risk analyses"]
  node_aggregate["Threshold aggregation"]
  node_baseline["Baseline assumptions"]
  node_weighted["Weighted projections"]
  node_through_time["Temporal predictions"]
  node_geography["Geographic risk<br/>[MetaRisk2 geog.Rmd]"]
  node_latitude["Latitudinal risk"]
  node_regional_models["Regional models<br/>[Geog Fig 2.Rmd]"]
  node_taxonomy["Taxonomic risk<br/>[MetaRisk2 taxa.Rmd]"]
  node_ecosystem["Ecosystem risk"]
  node_threats["Threat risk"]
  node_mechanisms["Mechanism risk"]
  node_dispersal["Dispersal modes"]
  node_interactions["Factor interactions"]
  node_observed["Observed extinctions"]
end

subgraph group_results["Reports and figures"]
  node_baseline_pdf["Baseline report"]
  node_weighted_docx["Weighted projections report"]
  node_time_pdf["Temporal report"]
  node_geog_pdf["Geographic report<br/>[MetaRisk2-geog.pdf]"]
  node_latitude_pdf["Latitude report"]
  node_regional_pdf["Regional figure<br/>[Geog-Fig-2.pdf]"]
  node_taxa_pdf["Taxonomic report<br/>[MetaRisk2-taxa.pdf]"]
  node_ecosystem_pdf["Ecosystem report"]
  node_threats_pdf["Threat report"]
  node_mechs_pdf["Mechanism report"]
  node_dispersal_pdf["Dispersal report"]
  node_observed_pdf["Observed extinctions report"]
end

node_raw_meta -->|"aggregates thresholds"| node_aggregate
node_aggregate -->|"creates aggregate data"| node_threshold_data
node_baseline -->|"produces report"| node_baseline_pdf
node_weighted -->|"calculates projections"| node_weighted_docx
node_through_time -->|"tests predictions"| node_time_pdf
node_geography -->|"evaluates risk"| node_geog_pdf
node_latitude -->|"evaluates risk"| node_latitude_pdf
node_regional_models -->|"creates figure"| node_regional_pdf
node_taxonomy -->|"evaluates risk"| node_taxa_pdf
node_ecosystem -->|"evaluates risk"| node_ecosystem_pdf
node_threats -->|"evaluates risk"| node_threats_pdf
node_mechanisms -->|"evaluates risk"| node_mechs_pdf
node_dispersal -->|"evaluates risk"| node_dispersal_pdf
node_observed -->|"creates report"| node_observed_pdf

click node_raw_meta "https://github.com/mcurban11/ccext/blob/main/Data/MetaRisk%20for%20aggreg%205.txt"
click node_threshold_data "https://github.com/mcurban11/ccext/blob/main/Data/MetaRisk2%20aggthres%205.txt"
click node_climate_extinctions "https://github.com/mcurban11/ccext/blob/main/Data/CC%20IUCN%20ext%20risk.csv"
click node_iucn_extinctions "https://github.com/mcurban11/ccext/blob/main/Data/IUCN%20ext%20data.csv"
click node_aggregate "https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/Aggregate%20for%20beta.R"
click node_baseline "https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/Pre%20Ind%20model%20w%20assumptions.Rmd"
click node_weighted "https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2%20facwtd%20preind.Rmd"
click node_through_time "https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2%20thru%20time%20notebook.Rmd"
click node_geography "https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2%20geog.Rmd"
click node_latitude "https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2%20latitude.Rmd"
click node_regional_models "https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/Geog%20Fig%202.Rmd"
click node_taxonomy "https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2%20taxa.Rmd"
click node_ecosystem "https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2%20ecosystem.Rmd"
click node_threats "https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2%20threats.Rmd"
click node_mechanisms "https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2%20Mechs.Rmd"
click node_dispersal "https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2%20Dispersal%20mode.Rmd"
click node_interactions "https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/Factor%20interactions.Rmd"
click node_observed "https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/Observed%20CC%20exts.RMD"
click node_stan_baseline "https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2%20RSTAN%20betareg%202b.stan"
click node_stan_intercept "https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2%20RSTAN%20int%20only%201.stan"
click node_stan_quad "https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2%20RSTAN%20quad%202.stan"
click node_stan_unweighted "https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2%20RSTAN%20betareg%20notwtd%205.stan"
click node_baseline_pdf "https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/Pre-Ind-model-w-assumptions.pdf"
click node_weighted_docx "https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2-facwtd-preind.docx"
click node_time_pdf "https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2-thru-time-notebook.pdf"
click node_geog_pdf "https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2-geog.pdf"
click node_latitude_pdf "https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2-latitude.pdf"
click node_regional_pdf "https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/Geog-Fig-2.pdf"
click node_taxa_pdf "https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2-taxa.pdf"
click node_ecosystem_pdf "https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2-ecosystem.pdf"
click node_threats_pdf "https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2-threats.pdf"
click node_mechs_pdf "https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2-Mechs.pdf"
click node_dispersal_pdf "https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2-Dispersal-mode.pdf"
click node_observed_pdf "https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/Observed%20CC%20exts.pdf"

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_raw_meta,node_threshold_data,node_climate_extinctions,node_iucn_extinctions toneBlue
class node_stan_baseline,node_stan_intercept,node_stan_quad,node_stan_unweighted toneAmber
class node_aggregate,node_baseline,node_weighted,node_through_time,node_geography,node_latitude,node_regional_models,node_taxonomy,node_ecosystem,node_threats,node_mechanisms,node_dispersal,node_interactions,node_observed toneMint
class node_baseline_pdf,node_weighted_docx,node_time_pdf,node_geog_pdf,node_latitude_pdf,node_regional_pdf,node_taxa_pdf,node_ecosystem_pdf,node_threats_pdf,node_mechs_pdf,node_dispersal_pdf,node_observed_pdf toneRose
```

## Components

### Research data

- [Raw MetaRisk data](https://github.com/mcurban11/ccext/blob/main/Data/MetaRisk%20for%20aggreg%205.txt): `Data/MetaRisk for aggreg 5.txt`
- [Aggregated thresholds](https://github.com/mcurban11/ccext/blob/main/Data/MetaRisk2%20aggthres%205.txt): `Data/MetaRisk2 aggthres 5.txt`
- [Climate-linked extinctions](https://github.com/mcurban11/ccext/blob/main/Data/CC%20IUCN%20ext%20risk.csv): `Data/CC IUCN ext risk.csv`
- [IUCN extinctions](https://github.com/mcurban11/ccext/blob/main/Data/IUCN%20ext%20data.csv): `Data/IUCN ext data.csv`

### Statistical models

- [Baseline beta model](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2%20RSTAN%20betareg%202b.stan): `Code and Markdown files/MetaRisk2 RSTAN betareg 2b.stan`
- [Intercept-only model](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2%20RSTAN%20int%20only%201.stan): `Code and Markdown files/MetaRisk2 RSTAN int only 1.stan`
- [Quadratic model](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2%20RSTAN%20quad%202.stan): `Code and Markdown files/MetaRisk2 RSTAN quad 2.stan`
- [Unweighted model](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2%20RSTAN%20betareg%20notwtd%205.stan): `Code and Markdown files/MetaRisk2 RSTAN betareg notwtd 5.stan`

### Risk analyses

- [Threshold aggregation](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/Aggregate%20for%20beta.R): `Code and Markdown files/Aggregate for beta.R`
- [Baseline assumptions](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/Pre%20Ind%20model%20w%20assumptions.Rmd): `Code and Markdown files/Pre Ind model w assumptions.Rmd`
- [Weighted projections](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2%20facwtd%20preind.Rmd): `Code and Markdown files/MetaRisk2 facwtd preind.Rmd`
- [Temporal predictions](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2%20thru%20time%20notebook.Rmd): `Code and Markdown files/MetaRisk2 thru time notebook.Rmd`
- [Geographic risk](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2%20geog.Rmd): `Code and Markdown files/MetaRisk2 geog.Rmd`
- [Latitudinal risk](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2%20latitude.Rmd): `Code and Markdown files/MetaRisk2 latitude.Rmd`
- [Regional models](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/Geog%20Fig%202.Rmd): `Code and Markdown files/Geog Fig 2.Rmd`
- [Taxonomic risk](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2%20taxa.Rmd): `Code and Markdown files/MetaRisk2 taxa.Rmd`
- [Ecosystem risk](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2%20ecosystem.Rmd): `Code and Markdown files/MetaRisk2 ecosystem.Rmd`
- [Threat risk](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2%20threats.Rmd): `Code and Markdown files/MetaRisk2 threats.Rmd`
- [Mechanism risk](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2%20Mechs.Rmd): `Code and Markdown files/MetaRisk2 Mechs.Rmd`
- [Dispersal modes](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2%20Dispersal%20mode.Rmd): `Code and Markdown files/MetaRisk2 Dispersal mode.Rmd`
- [Factor interactions](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/Factor%20interactions.Rmd): `Code and Markdown files/Factor interactions.Rmd`
- [Observed extinctions](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/Observed%20CC%20exts.RMD): `Code and Markdown files/Observed CC exts.RMD`

### Reports and figures

- [Baseline report](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/Pre-Ind-model-w-assumptions.pdf): `Code and Markdown files/Pre-Ind-model-w-assumptions.pdf`
- [Weighted projections report](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2-facwtd-preind.docx): `Code and Markdown files/MetaRisk2-facwtd-preind.docx`
- [Temporal report](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2-thru-time-notebook.pdf): `Code and Markdown files/MetaRisk2-thru-time-notebook.pdf`
- [Geographic report](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2-geog.pdf): `Code and Markdown files/MetaRisk2-geog.pdf`
- [Latitude report](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2-latitude.pdf): `Code and Markdown files/MetaRisk2-latitude.pdf`
- [Regional figure](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/Geog-Fig-2.pdf): `Code and Markdown files/Geog-Fig-2.pdf`
- [Taxonomic report](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2-taxa.pdf): `Code and Markdown files/MetaRisk2-taxa.pdf`
- [Ecosystem report](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2-ecosystem.pdf): `Code and Markdown files/MetaRisk2-ecosystem.pdf`
- [Threat report](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2-threats.pdf): `Code and Markdown files/MetaRisk2-threats.pdf`
- [Mechanism report](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2-Mechs.pdf): `Code and Markdown files/MetaRisk2-Mechs.pdf`
- [Dispersal report](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/MetaRisk2-Dispersal-mode.pdf): `Code and Markdown files/MetaRisk2-Dispersal-mode.pdf`
- [Observed extinctions report](https://github.com/mcurban11/ccext/blob/main/Code%20and%20Markdown%20files/Observed%20CC%20exts.pdf): `Code and Markdown files/Observed CC exts.pdf`

## Connections

- Raw MetaRisk data → Threshold aggregation: aggregates thresholds (evidence: `README.md`)
- Threshold aggregation → Aggregated thresholds: creates aggregate data (evidence: `README.md`)
- Baseline assumptions → Baseline report: produces report (evidence: `README.md`)
- Weighted projections → Weighted projections report: calculates projections (evidence: `README.md`)
- Temporal predictions → Temporal report: tests predictions (evidence: `README.md`)
- Geographic risk → Geographic report: evaluates risk (evidence: `README.md`)
- Latitudinal risk → Latitude report: evaluates risk (evidence: `README.md`)
- Regional models → Regional figure: creates figure (evidence: `README.md`)
- Taxonomic risk → Taxonomic report: evaluates risk (evidence: `README.md`)
- Ecosystem risk → Ecosystem report: evaluates risk (evidence: `README.md`)
- Threat risk → Threat report: evaluates risk (evidence: `README.md`)
- Mechanism risk → Mechanism report: evaluates risk (evidence: `README.md`)
- Dispersal modes → Dispersal report: evaluates risk (evidence: `README.md`)
- Observed extinctions → Observed extinctions report: creates report (evidence: `README.md`)
