Check accuracy of a randomForest model in R

r
random_forest

#1

Hello,

I’ve created a model using randomForest and I want to check how accurate it is. How can I do this task in R?

Thanks


#2
  1. OOB error rate/OOB percentage of variance explained: This can be viewed when you print the random forest model object.
  2. Perform a cross validation/out-of-sample forecast. You may want to look at rfcv function in randomForest package.