Usage
## S3 method for class 'party':
predict(object, newdata = NULL, \dots)
predict_party(party, id, newdata = NULL, ...)
## S3 method for class 'default':
predict_party(party, id, newdata = NULL, \dots)
## S3 method for class 'constparty':
predict_party(party, id, newdata = NULL,
type = c("response", "prob", "node"), FUN = NULL,
simplify = TRUE, ...)
## S3 method for class 'simpleparty':
predict_party(party, id, newdata = NULL,
type = c("response", "prob", "node"), ...)Arguments
newdata
an optional data frame in which to look for variables with
which to predict, if omitted, the fitted values are used.
id
a vector of terminal node identifiers.
type
a character string denoting the type of predicted value
returned, ignored when argument FUN is given.
For "response", the mean of a numeric response, the predicted
class for a categorical response
FUN
a function to compute summary statistics, i.e., constant
predictions for each node with argument list (y, w)
where y is the response and w are case weights.
simplify
a logical indicating whether the resulting list
of predictions should be converted to a suitable
vector or matrix (if possible).