predict.rpart.prmdt | R Documentation |
Return prediction for a rpart
model.
## S3 method for class 'rpart.prmdt'
predict(object, newdata, type = "class", na.action = na.pass, ...)
object |
a |
newdata |
an optional data frame in which to look for variables with which to predict. |
type |
type of prediction 'prob' or 'class' (default). |
na.action |
a function to determine what should be done with missing values in newdata. The default is to pass them down the tree using surrogates in the way selected when the model was built. Other possibilities are na.omit and na.fail. |
... |
additional arguments affecting the predictions produced. |
a vector or matrix of predictions for rpart model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.