View source: R/EasyTreeVarImp.R
EasyTreeVarImp | R Documentation |
Variable importance for partykit
conditional inference trees, using various performance measures.
EasyTreeVarImp(ct, nsim = 1)
ct |
A tree of class |
nsim |
Integer specifying the number of Monte Carlo replications to perform. Default is 1. If nsim > 1, the results from each replication are simply averaged together. |
If the response variable is a factor, AUC (if response is binary), accuracy, balanced accuracy and true predictions by class are used. If the response is numeric, r-squared and Kendall's tau are used.
A data frame of variable importances, with variables as rows and performance measures as columns.
Nicolas Robette
Hothorn T, Hornik K, Van De Wiel MA, Zeileis A. "A lego system for conditional inference". The American Statistician. 60:257–263, 2006.
Hothorn T, Hornik K, Zeileis A. "Unbiased Recursive Partitioning: A Conditional Inference Framework". Journal of Computational and Graphical Statistics, 15(3):651-674, 2006.
ctree
data(iris)
iris2 = iris
iris2$Species = factor(iris$Species == "versicolor")
iris.ct = partykit::ctree(Species ~ ., data = iris2)
EasyTreeVarImp(iris.ct, nsim = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.