tree.bins
0.1.1Recategorization of Factor Variables by Decision Tree Leaves
Overview
Provides users the ability to categorize categorical variables dependent on a response variable. It creates a decision tree by using one of the categorical variables (class factor) and the selected response variable. The decision tree is created from the rpart() function from the 'rpart' package. The rules from the leaves of the decision tree are extracted, and used to recategorize the appropriate categorical variable (predictor). This step is performed for each of the categorical variables that is fed into the data component of the function. Only variables containing more than 2 factor levels will be considered in the function. The final output generates a data set containing the recategorized variables or a list containing a mapping table for each of the candidate variables. For more details see T. Hastie et al (2009, ISBN: 978-0-387-84857-0).
Install
Health
CRAN check results are not tracked yet.
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 0%
- References docs
- 0%
Downloads
Dependencies
Nothing depends on this yet.
Code & Tests
Datasets
People & History
2 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.1.0 released · 2021-05-18
- archivedRemoved from CRAN2020-06-15check problems were not corrected in time
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- 0.1.12018-06-14 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 0.1.02018-02-26
- RR 3.4.0 released · 2017-04-21
Package metadata
- Total releases
- 2
- License
- GPL-2 OSI
- Minimum R
- ≥ 3.4.0
- Bundled data
- 218 KB / 3 files
- Download size
- not tracked yet
- Installed size
- not tracked yet
- With dependencies
- not tracked yet
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("tree.bins")This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-08-13, which the citation names so these numbers can be found later. More on citing and the projects behind them.