# dasagniva/cpd-shrinkage architecture

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

- Interactive diagram: https://gitdiagram.com/dasagniva/cpd-shrinkage
- Repository: https://github.com/dasagniva/cpd-shrinkage

## Overview

The tree indicates an R package organized around data-generation code, two named front ends, and prior-mapping and utility modules. With no README or source excerpts, the product’s precise purpose, runtime entry point, and interactions among these modules cannot be verified. The graph therefore shows the identifiable code areas without implying a workflow or call relationships. Raw data files are present, but their role in runtime behavior is not documented.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_generation["Data generation"]
  node_dgp["DGP<br/>[10_dgp.R]"]
end

subgraph group_frontends["Front ends"]
  node_nsp["NSP front end<br/>[20_frontend_nsp.R]"]
  node_capa["CAPA front end<br/>[21_frontend_capa.R]"]
end

subgraph group_support["Supporting modules"]
  node_prior["Prior mapping<br/>[22_prior_map.R]"]
  node_utils["Utilities<br/>[00_utils.R]"]
end

click node_dgp "https://github.com/dasagniva/cpd-shrinkage/blob/main/R/10_dgp.R"
click node_nsp "https://github.com/dasagniva/cpd-shrinkage/blob/main/R/20_frontend_nsp.R"
click node_capa "https://github.com/dasagniva/cpd-shrinkage/blob/main/R/21_frontend_capa.R"
click node_prior "https://github.com/dasagniva/cpd-shrinkage/blob/main/R/22_prior_map.R"
click node_utils "https://github.com/dasagniva/cpd-shrinkage/blob/main/R/00_utils.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_dgp toneBlue
class node_nsp,node_capa toneAmber
class node_prior,node_utils toneMint
```

## Components

### Data generation

- [DGP](https://github.com/dasagniva/cpd-shrinkage/blob/main/R/10_dgp.R): `R/10_dgp.R`

### Front ends

- [NSP front end](https://github.com/dasagniva/cpd-shrinkage/blob/main/R/20_frontend_nsp.R): `R/20_frontend_nsp.R`
- [CAPA front end](https://github.com/dasagniva/cpd-shrinkage/blob/main/R/21_frontend_capa.R): `R/21_frontend_capa.R`

### Supporting modules

- [Prior mapping](https://github.com/dasagniva/cpd-shrinkage/blob/main/R/22_prior_map.R): `R/22_prior_map.R`
- [Utilities](https://github.com/dasagniva/cpd-shrinkage/blob/main/R/00_utils.R): `R/00_utils.R`
