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, each node-level test statistic is divided by the number of imputations M and its p-value recomputed before nodes are pruned (the Stack/M correction), producing a conservative but interpretable single tree that incorporates imputation uncertainty without requiring pooling of structurally different trees. Also exports stack_imputations(), rescale_statistic() and prune_stackM() as standalone utilities. The underlying 'ctree' algorithm is provided by 'partykit' (Hothorn & Zeileis, 2015; Hothorn, Hornik & Zeileis, 2006 <doi:10.1198/106186006X133933>).

Package details

AuthorPhillip Sherlock [aut, cre] (ORCID: <https://orcid.org/0000-0003-0433-3681>)
MaintainerPhillip Sherlock <phillip.sherlock@ufl.edu>
LicenseGPL (>= 3)
Version0.3.0
URL https://github.com/Phillip-Sherlock/ctreeMI
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("ctreeMI")

Try the ctreeMI package in your browser

Any scripts or data that you put into this service are public.

ctreeMI documentation built on July 26, 2026, 1:06 a.m.