Hello list,

I'm having a problem with custom functions in rpart, and before I tear my
hair out trying to fix it, I want to make sure it's actually a problem.  It
seems that, when you write custom functions for rpart (init, split and eval)
then rpart no longer cross-validates the resulting tree to return errors.  A
simple test is to use the usersplits.R function to get a simple, custom
rpart function, and then change fit1 and fit2 so that the both have xvals of
10.  The problem occurs in that the cptable for fit1 doesn't have xerror or
xstd, despite the fact that the cross-validation is set to 10-fold.

I guess I just need conformation that cross-validation doesn't work with
custom functions, and if someone could explain to me why that is the case it
would be greatly appreciated.

Thanks,
Sam Stewart

-- 
Sam Stewart, MMath
Research Statistician, Diagnostic Imaging
Rm 3016, 3 South Victoria Building
VG Site, QEII Health Sciences Centre
1278 Tower Rd, Halifax, NS, B3H 2Y9

	[[alternative HTML version deleted]]

