partialDependence_data {semtree} | R Documentation |
Create dataset to compute partial dependence
Description
Create a dataset with fixed values for reference.var
for all other
values of data
, or using mc
random samples from data
(Monte Carlo integration).
Usage
partialDependence_data(
data,
reference.var,
support = 20,
points = NULL,
mc = NULL,
keep_id = FALSE
)
Arguments
data |
The |
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 |
keep_id |
Boolean. Default is false. Should output contain a row id column? marginal dependency using Monte Carlo integration. This is less computationally expensive. |
Author(s)
Caspar J. Van Lissa