| augment.caretx | R Documentation |
The augment() method for caretx objects derives the
predictions for the training, resample (CV), and, optionally, test
data set appended with the explanatory variables.
## S3 method for class 'caretx'
augment(x, newdata = NULL, ...)
x |
a |
newdata |
an optional data frame with the test data. |
... |
extra arguments, currently none. |
a list of data frames. Each of them contains the
observation number (.observation),
resample ID (only for resample/CV, .resample),
outcome (.outcome), fitted values/classes (.fitted).
For classification models, class assignment probabilities are returned
as well (columns named after levels of the .outcome variable).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.