chaidr: CHAID and Exhaustive CHAID Decision Trees

An implementation in base 'R' of the CHAID (Chi-squared Automatic Interaction Detection) decision tree algorithm of Kass (1980) <doi:10.2307/2986296> and the Exhaustive CHAID variant of Biggs, de Ville, and Suen (1991) <doi:10.1080/02664769100000005>, as specified in the 'IBM SPSS' Statistics Algorithms documentation. Supports nominal, ordinal (with floating missing category), and continuous predictors, and nominal, ordinal, and continuous response variables using Pearson chi-squared, Goodman row-effects, and one-way ANOVA F tests respectively. Includes prediction, rule extraction, gains and lift analysis, validation on holdout data, and visualization via base graphics, 'Graphviz' DOT, 'plotly', and conversion to 'partykit' objects.

Version: 0.1.0
Depends: R (≥ 4.5)
Imports: graphics, grDevices, stats, utils
Suggests: DiagrammeR, ggparty, ggplot2, htmlwidgets, knitr, partykit, plotly, rmarkdown, rpart, spelling, testthat (≥ 3.2.0), withr
Published: 2026-08-08
DOI: 10.32614/CRAN.package.chaidr (may not be active yet)
Author: Osamu Morimoto [aut, cre, cph]
Maintainer: Osamu Morimoto <galactic.supermarket at gmail.com>
BugReports: https://github.com/morimotoosamu/chaidr/issues
License: MIT + file LICENSE
URL: https://github.com/morimotoosamu/chaidr, https://morimotoosamu.github.io/chaidr/
NeedsCompilation: no
Language: en-GB
Citation: chaidr citation info
Materials: README, NEWS
CRAN checks: chaidr results

Documentation:

Reference manual: chaidr.html , chaidr.pdf
Vignettes: chaidr detailed tutorial (Japanese) (source, R code)
Introduction to chaidr (source, R code)

Downloads:

Package source: chaidr_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): chaidr_0.1.0.tgz, r-oldrel (arm64): chaidr_0.1.0.tgz, r-release (x86_64): chaidr_0.1.0.tgz, r-oldrel (x86_64): chaidr_0.1.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=chaidr to link to this page.