Description Usage Arguments Value See Also Examples
Calculate the partial dependence of a predictor variable on the response variable from a random forest classification model. Rather than sequence through values of the predictor variable of interest and keep the other predictors at their median, this partial dependence technique creates replicates of the entire dataset for each level of the x variable of interest from it's min to max. This gives a more realistic idea of the magnitude and direction of the x variable on the response.
1 2 |
model |
model object used to generate predictions. Currently only built and tested for random forest. |
df |
data.frame or data.table used to generate predictions with |
n |
numeric of length one; number of values between the min and max of |
xvars |
character vector; the x variables in |
target.class |
character: Which category (class) of the target variable to use for predictions |
ci |
numeric: specify any confidence intervals around the median response. |
plot |
logical: plot sparklines ( |
data |
logical: return summary table of output. yes ( |
plot.yaxis.fixed |
logical: |
wordy |
logical: print progress to the console |
list of output and plot
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.