Open vfincke opened 1 year ago
From the help file:
If outcome="test", the predictor is calculated by using
y-outcomes from the test data (outcome information must be
present). Terminal nodes from the trained forest are recalculated
using y-outcomes from the test set. This yields a modified
predictor in which the topology of the forest is based solely on
the training data, but where predicted values are obtained from
test data. Error rates and VIMP are calculated by bootstrapping
the test data and using out-of-bagging to ensure unbiased
estimates.
So the optionoutcome="test"
replaces the training data with the test data outcomes so it now becomes possible to obtain an OOB predicted value for test data.
Hello,
I split my data into training (varimp.out) and test data set (varimp.test). As far as I understood, I should not get a predicted oob value when I set outcome="test" for the test data set, is that true? Can someone help me with this issue?
Best regards!
train <- sample(1:nrow(varimp4), round(nrow(varimp4) * 0.70))
testing step