data.frame containing all predictor variables. If not
specified, the training data will be used by default.
select
expression indicating predictor variables for which to compute
partial dependence (see subset for syntax)
[default: all].
interaction
logical indicating whether to calculate dependence on the
interacted predictors.
n
number of predictor values at which to perform calculations.
intervals
character string specifying whether the n values are
spaced uniformly ("uniform") or according to variable quantiles
("quantile").
stats
function, one or more function names, or list of named functions
with which to aggregate the response variable over the non-selected predictor
variables.
Value
PartialDependence class object that inherits from
data.frame.