The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

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
Author: Dipankor Dhrubo [aut, cre], Daniel Spakowicz ORCID iD [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:

Reference manual: mectx.html , mectx.pdf

Downloads:

Package source: mectx_1.1.1.tar.gz
Windows binaries: r-devel: mectx_1.1.1.zip, r-release: mectx_1.1.1.zip, r-oldrel: mectx_1.1.1.zip
macOS binaries: r-release (arm64): mectx_1.1.1.tgz, r-oldrel (arm64): mectx_1.1.1.tgz, r-release (x86_64): mectx_1.1.1.tgz, r-oldrel (x86_64): mectx_1.1.1.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=mectx to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.