I am using this code:
library(datasets)
library(quantregForest)
library(dplyr)
library(ggplot2)
library(randomForest)
Xtrain <- iris %>%
select(
Sepal.Length
, Petal.Length
)
Ytrain <- iris$Petal.Width
model <- quantregForest(
x = Xtrain
, y = Ytrain
)
plot.partial = function() {
partialPlot(model, Xtrain, x.var = "Sepal.Length")
partialPlot(model, Xtrain, x.var = "Petal.Length")
}
class(model) <- "randomForest"
plot.partial()
What does the partial dependence plot actually show? Is this the mean prediction (rather than for example the median)?