replacing outliers using outforest

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

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.