Learn R Programming

⚠️There's a newer version (2.0.0) of this package.Take me there.

FFTrees

An R package to create and visualize fast and frugal decision trees (FFTrees)

Package updates

1.1.7

  • Trees can now use the same cue multiple times within a tree. To do this, set rank.method = "c" and repeat.cues = TRUE.

  • Bug-fixes

    • You can (and should!) now have a column of NAs for the criterion in test datasets to represent data where the criterion is unknown.
    • FFTrees() now supports a single predictor (e.g.; formula = diagnosis ~ age) which previously did not work.

1.1.6

  • Streamlined code to improve cohesion between functions. This may cause issues with FFTrees objects created with earlier versions of the package. They will need to be re-created.

  • Updated, clearer print.FFTrees() method to see important info about an FFTrees object in matrix format.

  • Training and testing statistics are now always in seperate objects (e.g.; data$train, data$test) to avoid confusion.

  • Bug-fixes

    • predict.FFTrees() now works much better by passing a new dataset (data.test) as a test dataset for an existing FFTrees object.

1.1.5

  • Bug-fixes
    • Plotting parameters mar and layout are now reset after running plot.FFTrees()

1.1.4

  • Bug-fixes
    • Plotting no longer fails when there is only one branch in the tree.
    • Changed which.tree argument in plot.FFTrees() to tree to conform to blog posts.
    • predict.FFTrees() now works better with tibble inputs.
  • Changed the fft label to FFTrees throughout the package to avoid confusion with fast fourier transform. Thus, the main tree building function is now FFTrees() and the new tree object class is FFTrees

Copy Link

Version

Install

install.packages('FFTrees')

Monthly Downloads

373

Version

1.1.8

License

CC0

Maintainer

Nathaniel Phillips

Last Published

October 8th, 2016

Functions in FFTrees (1.1.8)

classtable

Calculates several classification statistics from binary prediction and criterion (e.g.; truth) vectors
car

Car acceptability data
auc

Calculates AUC (Area under the Curve) using trapezoidal approximation
creditapproval

Credit approval data
cart.pred

Calculates predictions from CART using the rpart package
contraceptive

Contraceptive use data
cuerank

Calculate the marginal accuracy of all cues in a dataframe. For each cue, the threshold that maximizes the criterion is selected.
bank

A bank marketing dataset
heartdisease

Heart disease dataset
fft

Deprecated functions
FFTrees

Create Fast and Frugal Trees (FFTrees)
income

Income dataset
forestfires

forestfires
iris

Iris data set
grow.FFTrees

Grows fast and frugal trees
factclean

Does miscellaneous cleaning of prediction datasets
fertility

Fertility data set
FFTrees.guide

Opens the FFTrees package guide
mushrooms

Mushrooms dataset
plot.FFTrees

Draws a FFTrees object.
print.FFTrees

Prints summary information from an FFTrees object
predict.FFTrees

Applies an existing FFTrees object to a new (test) data set
lr.pred

Calculates predictions from logistic regression
voting

Voting data set
showcues

Visualizes cue accuracies in a ROC space
titanic

Titanic dataset
summary.FFTrees

Returns a summary of an fft object
sonar

Sonar data set
wine

Wine tasting dataset
breastcancer

Dataset: Physiological dataset for 699 patients tested for breast cancer.
blood

Blood donation dataset