The rpart model we ran above produced a tree that used just six predictors. Extracting the predictor names is not straightforward, but can be done. If the output of the call to train was fit_rpart, we can extract the names like this:
What is the variable importance in the random forest call for these predictors? Where do they rank?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here