Package: chaidr 0.1.0.9000
chaidr: CHAID and Exhaustive CHAID Decision Trees
An implementation 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.
Authors:
chaidr_0.1.0.9000.tar.gz
chaidr_0.1.0.9000.zip(r-4.7-any)chaidr_0.1.0.9000.zip(r-4.6-any)chaidr_0.1.0.9000.zip(r-4.5-any)
chaidr_0.1.0.9000.tgz(r-4.6-any)chaidr_0.1.0.9000.tgz(r-4.5-any)
chaidr_0.1.0.9000.tar.gz(r-4.7-any)chaidr_0.1.0.9000.tar.gz(r-4.6-any)
chaidr_0.1.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
chaidr/json (API)
| # Install 'chaidr' in R: |
| install.packages('chaidr', repos = c('https://morimotoosamu.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/morimotoosamu/chaidr/issues
Pkgdown/docs site:https://morimotoosamu.github.io
Last updated from:ee3556c8ba. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 148 | ||
| source / vignettes | OK | 183 | ||
| linux-release | OK | 128 | ||
| macos-release | OK | 201 | ||
| macos-oldrel | OK | 223 | ||
| windows-devel | OK | 103 | ||
| windows-release | OK | 135 | ||
| windows-oldrel | OK | 97 | ||
| wasm-release | OK | 103 |
Exports:chaidchaid_as_partychaid_controlchaid_dotchaid_gainschaid_graphvizchaid_importancechaid_plotlychaid_ruleschaid_tablechaid_validate
Dependencies:
Last update: 2026-07-29
Started: 2026-07-29
Last update: 2026-07-29
Started: 2026-07-29
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Fit a CHAID or Exhaustive CHAID decision tree | chaid |
| Convert a CHAID tree to a partykit constparty | as.party.chaid chaid_as_party |
| Control parameters for CHAID tree growing | chaid_control |
| Render a CHAID tree as Graphviz DOT | chaid_dot chaid_graphviz print.chaid_dot |
| Gains and lift table for a CHAID tree | chaid_gains plot.chaid_gains print.chaid_gains |
| Heuristic variable importance for a CHAID tree | chaid_importance |
| Interactive CHAID tree plot with plotly | chaid_plotly |
| Extract decision rules from a CHAID tree | chaid_rules |
| Summary table of CHAID terminal nodes | chaid_table |
| Evaluate a CHAID tree on holdout data | chaid_validate print.chaid_validation |
| Plot a CHAID tree with base graphics | plot.chaid |
| Predict from a fitted CHAID tree | predict.chaid |
| Print and summarise a CHAID tree | print.chaid summary.chaid |