When I typed the command for importance as below importance (model.rf
) I get this error:
Error in UseMethod("importance") : no applicable method for 'importance' applied to an object of class "c('randomForest.formula', 'randomForest')"
How to solve this error?