predict.CART | R Documentation |
Predicts values for numeric outcomes and group membership for categories based on newdata
and a fitted CART object
. A value (which may be NA) is returned for every instance
in newdata
including those with missing data. NA is returned for cases with unfitted factor levels.
## S3 method for class 'CART'
predict(object, newdata = NULL, seed = 1232, ...)
object |
A |
newdata |
Optionally, a data frame including the variables used to fit the model.
If omitted, the |
seed |
A random number seed to ensure stability of predictions. |
... |
Extra parameters. Currently not used. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.