Skip to content

mectx

1.1.1

MEchanistic Clustering - Treatment eXposure Framework

0packages depend
989downloads / year
73.4%test coverage
13/13checks pass

Overview

About
Maintained by Dipankor DhruboFirst published 2026-05-111 releasesCRAN page ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 4.4 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.26
73.4%
Coverage · measured lines
100%
Documentation · exports
14
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-05-12
    8 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 224 wordsVignettesNopkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
97%
Return-value docs
100%
References docs
0%

Downloads

989
CRAN downloads in the past year
Rank #10,112 · ~3/day · ~82/mo
Daily download trend is not available in this view yet.
11730 days
98990 days
9891 year
Compare downloads with other packages →
Also on16 r2u

Dependencies

Declared dependencies
15 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.4.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (2)
Author, Maintainer
Package Timeline

1 release. R releases are shown for context.

  • 1.1.1Latest
    2026-05-11 · current release
  • R
    R 4.6.0 released · 2026-04-24

Package metadata

First published
2026-05-11
Total releases
1 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.4.0
Download size
not tracked yet
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Start here. This is the citation for the package itself.

citation("mectx")

CRAN DOI

https://doi.org/10.32614/CRAN.package.mectx

BibTeX, derived from DESCRIPTION

@Manual{mectx,
  title  = {mectx: MEchanistic Clustering - Treatment eXposure Framework},
  author = {Dhrubo, Dipankor and Spakowicz, Daniel},
  year   = {2026},
  note   = {R package version 1.1.1},
  doi    = {10.32614/CRAN.package.mectx},
  url    = {https://CRAN.R-project.org/package=mectx}
}

Derived from the package DESCRIPTION, not from a citation file the authors wrote. If they publish one later, prefer it.

This is the citation for the package. It is not a citation for the R Observatory.

Cite this page

Use this when the claim is about a measurement on this page.

BibTeX

@misc{robservatorymectx,
  author    = {Balamuta, James Joseph},
  title     = {{R} {Observatory}: Metrics for {mectx} version 1.1.1},
  year      = {2026},
  publisher = {HJJB, LLC},
  url       = {https://r-observatory.thecoatlessprofessor.com/packages/mectx},
  note      = {Data set. Data release v2026-08-05}
}

APA

Balamuta, J. J. (2026). R Observatory: Metrics for mectx version 1.1.1 [Data set]. HJJB, LLC. Data release v2026-08-05. https://r-observatory.thecoatlessprofessor.com/packages/mectx

RIS

TY  - DATA
AU  - Balamuta, James Joseph
TI  - R Observatory: Metrics for mectx version 1.1.1
PY  - 2026
PB  - HJJB, LLC
N1  - Data release v2026-08-05
UR  - https://r-observatory.thecoatlessprofessor.com/packages/mectx
ER  - 

In prose

These package metrics were obtained from the R Observatory (Balamuta, 2026), data release v2026-08-05, https://r-observatory.thecoatlessprofessor.com/packages/mectx.

Bound to data release v2026-08-05, which is what makes the numbers on this page reproducible. See how to cite.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy