fftrees_apply applies a fast-and-frugal tree (FFT, as an FFTrees object)
to a dataset and generates corresponding accuracy statistics.
fftrees_apply is called internally by the main FFTrees function
(with mydata = "train" and --- if test data exists --- mydata = "test")
and when predicting outcomes for new data by predict.FFTrees.
fftrees_apply(x, mydata = NULL, newdata = NULL, allNA.pred = FALSE)A modified FFTrees object (with lists in x$trees containing information on FFT decisions and statistics).
An FFT to apply (as an FFTrees object).
The type of data to which the FFT should be applied (as character, either "train" or "test").
New data to which an FFT should be applied (as a data frame).
What should be predicted if all cue values in tree are NA (as logical)?
Default: allNA.pred = FALSE.
FFTrees for creating FFTs from and applying them to data.