Skip to content

User defined split function in rpart

1 message · R Help

#
I had a similar problem, trying to use lme within a custom rpart
function.  I got around it by passing the dataframe I needed through
the parms option in rpart, and then using the parms option in
evaluation, init and split as a dataset.  It's not the most elegant
solution, but it will work.

Have you (or anyone else) figured out the details of the summary and
text options in the init function?  I know that they are used to fill
out the summary of the model and the text.rpart plotting, but I can't
seem to use any of the variables being passed to them efficiently (or
at all).

Hope that helps,
Sam Stewart
On Feb 20, 2007 2:47 PM, Tobias Guennel <tguennel at vcu.edu> wrote: