[R] fraction of null deviance explained by each node/variable in regression trees
Kumar Mainali
kpmainali at gmail.com
Thu Oct 5 19:02:02 CEST 2017
I have used packages rpart, mvpart and tree for classification and
regression trees. I want to calculate fraction of null deviance explained
by each node and variable in the tree. For instance, at the first split,
this would be (1 - (sum of residual deviance in each of the two
leaves)/deviance at the root). In the subsequent splits, this formula is
slightly different.
There probably is a function to get this done within R. Any help is
appreciated.
Thank you,
Kumar Mainali
--
Postdoctoral Associate
Department of Biology
University of Maryland, College Park
ᐧ
[[alternative HTML version deleted]]
More information about the R-help
mailing list