i have used the example on the link to change outliers. I do not want to remove the outliers nor use mean or median. I would like the outliers to rather be replaced
GitHub - mayer79/outForest: Outlier detection based on random forest models
how does one get the replacement values of outliers to appear on the actual/main data set? my code used is as follows:
library(outForest)
library(outForest)
plot(Root ~Trt, data = all)
ch <- outForest(all)
outliers(ch)
the code shows observed value, predicted and replacement but does not replace on the main datase.how do i go about that?
thanks