partialDependence {semtree} | R Documentation |
Compute partial dependence
Description
Compute the partial dependence of a predictor, or set of predictors, on a model parameter.
Usage
partialDependence(
x,
data,
reference.var,
support = 20,
points = NULL,
mc = NULL,
FUN = "median",
...
)
Arguments
x |
An object for which a method exists |
data |
Optional |
reference.var |
Character vector, referring to the (independent) reference variable or variables for which partial dependence is calculated. Providing two (or more) variables allows for probing interactions, but note that this is computationally expensive. |
support |
Integer. Number of grid points for interpolating the
|
points |
Named list, with elements corresponding to |
mc |
Integer. If |
FUN |
Character string with function used to integrate predictions
across all elements of |
... |
Extra arguments passed to |
Author(s)
Caspar J. Van Lissa, , Andreas M. Brandmaier