Random Forests for time-fixed and time-dependent predictors: The DynForest R package
Anthony Devaux (BPH, GIGH, UNSW), C\'ecile Proust-Lima (BPH), Robin, Genuer (BPH)

TL;DR
DynForest is an R package that extends random forests to handle complex time-dependent predictors, including endogenous and error-prone data, for various outcome types, with detailed user guidance.
Contribution
The paper introduces DynForest, a novel R package that models time-dependent predictors in random forests, including endogeneity and measurement error, with flexible feature extraction.
Findings
Handles endogenous and error-prone time-dependent predictors.
Provides variable importance and minimal depth measures.
Supports multiple outcome types including continuous, categorical, and survival.
Abstract
The R package DynForest implements random forests for predicting a continuous, a categorical or a (multiple causes) time-to-event outcome based on time-fixed and time-dependent predictors. The main originality of DynForest is that it handles time-dependent predictors that can be endogeneous (i.e., impacted by the outcome process), measured with error and measured at subject-specific times. At each recursive step of the tree building process, the time-dependent predictors are internally summarized into individual features on which the split can be done. This is achieved using flexible linear mixed models (thanks to the R package lcmm) which specification is pre-specified by the user. DynForest returns the mean for continuous outcome, the category with a majority vote for categorical outcome or the cumulative incidence function over time for survival outcome. DynForest also computes…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsData Analysis with R · Statistical Methods and Inference
