Tutorial: Using Random Forest Analysis to Identify Auxiliary Variables of Missing Data
Open Access
- 4 July 2026
- journal article
- Published by Springer Nature in Prevention Science
Abstract
Missing data is a pervasive problem in research; prevention science is particularly vulnerable due to the study designs used and types of data collected. Recommended approaches to address missing data include full information maximum likelihood estimation and multiple imputation, both of which rely on identification of auxiliary variables related to missingness. The methodological literature recommends including as many potential auxiliary variables as possible, but in practice, that is often infeasible and a researcher must select a more limited number. Prior studies have shown that traditional methods for identifying auxiliary variables do not perform well when missingness follows a nonlinear functional form, but machine learning methods such as random forest analysis (RFA) perform well at successfully identifying correlates of missingness across a variety of missing at random patterns. RFA models can also provide measures of variable importance, allowing researchers to prioritize inclusion of the most relevant variables. Methods like RFA are less familiar to prevention researchers, which serves as an impediment for researchers to use RFA to identify auxiliary variables. This paper provides a tutorial to use RFA to identify correlates of missingness using a real data sample of $$n$$ = 215 participants with more than 100 variables measuring demographics, personality, and psychopathology. The tutorial demonstrates how to run an RFA (including using measures of variable importance to select the variables most related to missingness) and how to incorporate the selected auxiliary variables into an analysis.
Keywords
Funding Information
- Cedars-Sinai Medical Center
This publication has 27 references indexed in Scilit:
- Missing data: An update on the state of the art.Psychological Methods, 2025
- Random forest analysis and lasso regression outperform traditional methods in identifying missing data auxiliary variables when the MAR mechanism is nonlinear (p.s. Stop using Little’s MCAR test)Behavior Research Methods, 2024
- Common, uncommon, and novel applications of random forest in psychological researchBehavior Research Methods, 2022
- Conditional permutation importance revisitedBMC Bioinformatics, 2020
- The Downsides of Extreme Conscientiousness for Psychological Well‐being: The Role of Obsessive Compulsive TendenciesJournal of Personality, 2015
- An introduction to recursive partitioning: Rationale, application, and characteristics of classification and regression trees, bagging, and random forests.Psychological Methods, 2009
- Missing Data Analysis: Making It Work in the Real WorldAnnual Review of Psychology, 2009
- Bias in random forest variable importance measures: Illustrations, sources and a solutionBMC Bioinformatics, 2007
- A comparison of inclusive and restrictive strategies in modern missing data procedures.2001
- Bagging predictorsMachine Learning, 1996