View source: R/partialDependence.R
partialDependence | R Documentation |
Compute the partial dependence of a predictor, or set of predictors, on a model parameter.
partialDependence(
x,
data,
reference.var,
support = 20,
points = NULL,
mc = NULL,
FUN = "median",
...
)
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 |
Caspar J. Van Lissa, , Andreas M. Brandmaier
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.