Search Results:

Showing results 1 to 10 of 5.


Function tree.bins [tree.bins v0.1.1]
keywords
rpart,
title
Recategorization of Factor Variables by Decision Tree Leaves
description
The function takes in a data set that contains categorical variable(s) and a response variable. It creates a decision tree by using one of the categorical variables (class factor) and the 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 (class factor) variables that is fed into the data component of the function. Only variables containing more than 2 factors 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.
Function bin.oth [tree.bins v0.1.1]
keywords
rpart
title
Recategorization of Variables by Mapping Tables Within a List
description
The functions purpose is to recategorize a data.frame's variables by the elements identified in a list. Each element of the list must contain two columns. The first column contains the original values, and the second column contains the new values. The first column name of each element of the list must be a variable name in the data.frame. Effectively, each element of the list is a mapping table. The list generated from the tree.bins() function can be directly passed as an element to this function.
Function rpart [intubate v1.0.0]
keywords
rpart
title
Interfaces for rpart package for data science pipelines.
description
Interfaces to rpart functions that can be used in a pipeline implemented by magrittr.
Function rpart.plot [rpart.plot v3.0.9]
keywords
rpart
title
Plot an rpart model. A simplified interface to the prp function.
description
Plot an rpart model, automatically tailoring the plot for the model's response type. For an overview, please see the package vignette Plotting rpart trees with the rpart.plot package. This function is a simplified front-end to prp, with only the most useful arguments of that function, and with different defaults for some of the arguments. The different defaults mean that this function automatically creates a colored plot suitable for the type of model (whereas prp by default creates a minimal plot). See the prp help page for a table showing the different defaults.
Function prp [rpart.plot v3.0.9]
keywords
rpart
title
Plot an rpart model.
description
Plot an rpart model. First-time users should use rpart.plot instead, which provides a simplified interface to this function. For an overview, please see the package vignette Plotting rpart trees with the rpart.plot package. The arguments of this function are a superset of those of rpart.plot and some of the arguments have different defaults. In detail the different defaults are: | rpart.plot | prp | type | 2 | 0 | extra | "auto" | 0 | fallen.leaves | TRUE | FALSE | varlen | 0 | -8 | faclen | 0 | 3 | box.palette | "auto" | 0 | The defaults are different for historical reasons: for backwards compatibility the defaults of prp haven't changed, whereas the defaults of rpart.plot were changed when type="auto" and box.palette were introduced in version 2.0.0 of this package.