Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. require(randomForest)
  2.  
  3. require(randomForestExplainer)
  4.  
  5. randomF <- randomForest(max_intensity ~ nrgroups + GDPlog_lag + logPopulation + Polity_lag + Asia + Africa + MiddleEast + Europe + Americas, data=MAR_regressions, na.action=na.exclude)
  6.  
  7. plot(randomF, type="l", main= "Random Forest Protest and Rebellion")
  8.  
  9. varImpPlot(randomF, main="Variable Importance Random Forest Prot & Reb", col="blue")
  10.  
  11. plot_min_depth_distribution(randomF)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement