split.caretx | R Documentation |
The split()
method for the caretx
class generates predictions
for the training, resample (CV) and, optionally, test data set and splits
them by the levels of an explanatory factor present in the training data.
## S3 method for class 'caretx'
split(x, f, drop = FALSE, newdata = NULL, ...)
x |
a |
f |
a splitting factor, in quoted or unquoted form. |
drop |
logical, should unused levels of the splitting factor f be dropped? |
newdata |
an optional data frame with the test data. |
... |
extra arguments, currently none. |
This method may be used to investigate quality of prediction in a particular
subset or subsets of the data set. The method returns a plain list of
predx
objects, whose properties can be further explored
with the specific summary.predx
and plot.predx
methods.
a plain list of predx
objects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.