# denisrustand/inlajoint architecture

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

- Interactive diagram: https://gitdiagram.com/denisrustand/inlajoint
- Repository: https://github.com/denisrustand/inlajoint

## Overview

INLAjoint is an R package for fitting joint models of multivariate longitudinal markers and time-to-event outcomes using INLA. The documented entry point is `joint()`: a user initiates model fitting, which uses INLA’s inference technique and covers longitudinal distributions and survival settings including competing risks and multi-state outcomes. The tree contains additional model and result methods, but no source excerpts document their runtime connections, so those are not expanded into an unsupported call graph.

Main entry points: [`R/joint.R`](https://github.com/denisrustand/inlajoint/blob/main/R/joint.R) (joint())

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["Model entry"]
  node_joint["joint&#40;&#41;<br/>[joint.R]"]
end

subgraph group_domains["Outcome domains"]
  node_longitudinal["Longitudinal markers<br/>[joint.R]"]
  node_survival["Time-to-event<br/>[joint.R]"]
  node_competing["Competing risks<br/>[joint.R]"]
  node_multistate["Multi-state<br/>[joint.R]"]
end

subgraph group_inference["Inference"]
  node_inla["INLA inference"]
end

node_user(("R user"))

node_user -->|"calls"| node_joint
node_joint -->|"models"| node_longitudinal
node_joint -->|"models"| node_survival
node_joint -->|"uses inference"| node_inla
node_survival -->|"can account for"| node_competing
node_survival -->|"can account for"| node_multistate

click node_joint "https://github.com/denisrustand/inlajoint/blob/main/R/joint.R"
click node_longitudinal "https://github.com/denisrustand/inlajoint/blob/main/R/joint.R"
click node_survival "https://github.com/denisrustand/inlajoint/blob/main/R/joint.R"
click node_competing "https://github.com/denisrustand/inlajoint/blob/main/R/joint.R"
click node_multistate "https://github.com/denisrustand/inlajoint/blob/main/R/joint.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_joint,node_user toneBlue
class node_longitudinal,node_survival,node_competing,node_multistate toneAmber
class node_inla toneMint
```

## Components

### Model entry

- [joint()](https://github.com/denisrustand/inlajoint/blob/main/R/joint.R): `R/joint.R`

### Outcome domains

- [Longitudinal markers](https://github.com/denisrustand/inlajoint/blob/main/R/joint.R): `R/joint.R`
- [Time-to-event](https://github.com/denisrustand/inlajoint/blob/main/R/joint.R): `R/joint.R`
- [Competing risks](https://github.com/denisrustand/inlajoint/blob/main/R/joint.R): `R/joint.R`
- [Multi-state](https://github.com/denisrustand/inlajoint/blob/main/R/joint.R): `R/joint.R`

### Inference

- **INLA inference**

### Other components

- **R user**

## Connections

- R user → joint(): calls (evidence: `README.md`)
- joint() → Longitudinal markers: models (evidence: `README.md`)
- joint() → Time-to-event: models (evidence: `README.md`)
- joint() → INLA inference: uses inference (evidence: `README.md`)
- Time-to-event → Competing risks: can account for (evidence: `README.md`)
- Time-to-event → Multi-state: can account for (evidence: `README.md`)
