mectx: MEchanistic Clustering - Treatment eXposure Framework
Implements the MEC-TX (MEchanistic Clustering - Treatment
eXposure) framework for encoding, clustering, and survival analysis of
real-world oncology treatment timelines. Provides functions for
normalising medication records, computing treatment intervals, performing
k-means clustering in PCA space, assigning line-of-therapy labels, and
comparing survival outcomes across treatment groups. Designed for use
with registry-based cohorts such as the ORIEN AVATAR dataset. Methods
follow the digital-twin framework described in Dhrubo and Spakowicz (2026)
<https://github.com/spakowiczlab/mec-tx>.
treatment timelines using the MEC-TX digital-twin framework.
| Version: |
1.1.1 |
| Depends: |
R (≥ 4.4.0) |
| Imports: |
magrittr, broom, dplyr, forcats, ggnewscale, ggplot2, patchwork, purrr, stats, stringr, survival, tibble, tidyr, umap |
| Suggests: |
testthat (≥ 3.0.0), devtools, roxygen2 |
| Published: |
2026-05-11 |
| DOI: |
10.32614/CRAN.package.mectx (may not be active yet) |
| Author: |
Dipankor Dhrubo [aut, cre],
Daniel Spakowicz
[aut] |
| Maintainer: |
Dipankor Dhrubo <dhrubo.2 at osu.edu> |
| License: |
MIT + file LICENSE |
| NeedsCompilation: |
no |
| Language: |
en-US |
| Materials: |
README |
| CRAN checks: |
mectx results |
Documentation:
Downloads:
Linking:
Please use the canonical form
https://CRAN.R-project.org/package=mectx
to link to this page.