Skip to content
Prev 1882 / 7420 Next

no splits possible - in mvpart

Hi Mike,

You need to carefully read the help for mvpart, rpart, and rpart.control -
this is a complex procedure and there are a lot of possible options
and ways to screw up.

cp is the complexity parameter - a proposed split must be as good or
better than cp to even be considered. If you aren't getting any splits,
then none of the splits possible in your data are good enough at that
level.

More formally, from the help for rpart.control:
cp complexity parameter. Any split that does not decrease the overall
lack of ?t by
a factor of cp is not attempted. For instance, with anova splitting, this means
that the overall Rsquare must increase by cp at each step. The main
role of this
parameter is to save computing time by pruning off splits that are
obviously not
worthwhile. Essentially,the user informs the program that any split which does
not improve the ?t by cp will likely be pruned off by
cross-validation, and that
hence the program need not pursue it.

I believe that classification trees (not clustering) as implemented in R are
covered in some  detail in MASS; you should probably also find and read that.

Sarah
On Fri, Jan 28, 2011 at 8:31 PM, Mike Marsh <swamp at blarg.net> wrote: