ggparty (version 1.0.0)

get_predictions: Create data.frame with predictions for each node

Description

Create data.frame with predictions for each node

Usage

get_predictions(party_object, ids, newdata_fun, predict_arg = NULL)

Arguments

party_object

object of class party

ids

Id's to plot. Numeric, "terminal", "inner" or "all". MUST be identical to ids of geom_node_plot() used to plot this data.

newdata_fun

function which takes data of node and returns newdata for predict()

predict_arg

list of additional arguments passed to predict()