Package: ctreeMI 1.3.0

ctreeMI: Conditional Inference Trees with Stacked Multiple Imputation

Implements the stacked-imputation workflow for conditional inference trees ('ctree') described in Sherlock et al. (2026) <doi:10.1080/00273171.2026.2661244>. When data contain missing values, multiply imputed datasets (e.g., from 'mice') are stacked vertically and a single 'ctree' is fit on the combined data. To correct for the artificially inflated sample size introduced by stacking, every node-level test statistic is divided by the number of imputations M, the node-level p-values are recomputed from the chi-squared reference distribution 'ctree' uses (including its multiplicity adjustment across candidate splitting variables), and the tree is compressed bottom-up (the Stack/M correction). Degrees of freedom are derived for each node and each candidate variable, so univariate, bivariate and higher-dimensional outcomes are all handled, as are unordered factor predictors, whose degrees of freedom depend on how many levels remain in a node. The result is a single interpretable tree that incorporates imputation uncertainty without requiring pooling of structurally different trees. Also exports stack_imputations(), rescale_statistic(), prune_stackM(), node_table() and report_ctreeMI() as standalone utilities. For data nested in few clusters, a within-cluster design splits participants within every cluster, grows the tree on the outcome centered by cluster, and confirms the partition three ways (confirm_within()). The underlying 'ctree' algorithm is provided by 'partykit' (Hothorn & Zeileis, 2015; Hothorn, Hornik & Zeileis, 2006 <doi:10.1198/106186006X133933>).

Authors:Phillip Sherlock [aut, cre]

ctreeMI_1.3.0.tar.gz
ctreeMI_1.3.0.zip(r-4.7-any)ctreeMI_1.3.0.zip(r-4.6-any)ctreeMI_1.3.0.zip(r-4.5-any)
ctreeMI_1.3.0.tgz(r-4.6-any)ctreeMI_1.3.0.tgz(r-4.5-any)
ctreeMI_1.3.0.tar.gz(r-4.7-any)ctreeMI_1.3.0.tar.gz(r-4.6-any)
ctreeMI_1.3.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
ctreeMI/json (API)

# Install 'ctreeMI' in R:
install.packages('ctreeMI', repos = c('https://phillip-sherlock.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/phillip-sherlock/ctreemi/issues

On CRAN:

Conda:

4.85 score 1 stars 510 downloads 14 exports 70 dependencies

Last updated from:e903d4ab94. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK168
source / vignettesOK209
linux-releaseOK137
macos-releaseOK100
macos-oldrelOK90
windows-develOK129
windows-releaseOK86
windows-oldrelOK102
wasm-releaseOK104

Exports:center_outcomecheck_stackM_extractionconfirm_ctreeMIconfirm_withinctree_stackeddiscover_confirmnode_tableprune_stackMprune_unconfirmedreport_confirmreport_ctreeMIrescale_statisticsplit_holdoutstack_imputations

Dependencies:backportsbitbit64bootbroomclicliprcodetoolscpp11crayondplyrforcatsforeachFormulagenericsglmnetgluehavenhmsinumiteratorsjomolatticelibcoinlifecyclelme4magrittrMASSMatrixmiceminqamitmlmvtnormnlmenloptrnnetnumDerivordinalpanpartykitpillarpkgconfigprettyunitsprogresspurrrR6rbibutilsRcppRcppEigenRdpackreadrreformulasrlangrpartsandwichshapestringistringrstrucchangesurvivaltibbletidyrtidyselecttzdbucminfutf8vctrsvroomwithrzoo

Discover, then confirm
The problem this workflow solves | A worked example | What the confirmation tests | Acting on the result | Outcome types | Clustered data | What to report

Last update: 2026-11-06
Started: 2026-11-06

Few clusters: the within-cluster design
When splitting whole clusters leaves too few to confirm on | Why the extra steps are needed | A worked example | What the claim is | What the design has been checked against | Doing it by hand

Last update: 2026-11-06
Started: 2026-11-06