Re: [R] User defined split function in rpart

2007-02-20 Thread Tobias Guennel
nel -Original Message- From: Tobias Guennel [mailto:[EMAIL PROTECTED] Sent: Monday, February 19, 2007 3:40 PM To: 'r-help@stat.math.ethz.ch' Subject: [R] User defined split function in rpart Maybe I should explain my Problem a little bit more detailed. The rpart package allows for user

[R] User defined split function in rpart

2007-02-19 Thread Tobias Guennel
Maybe I should explain my Problem a little bit more detailed. The rpart package allows for user defined split functions. An example is given in the source/test directory of the package as usersplits.R. The comments say that three functions have to be supplied: 1. "The 'evaluation' function. Called

[R] User defined split function in rpart

2007-02-18 Thread Tobias Guennel
Dear R community, I am trying to write my own user defined split function for rpart. I read the example in the tests directory and I understand the general idea of the how to implement user defined splitting functions. However, I am having troubles with addressing the data frame used in calling rp

[R] User defined split function in rpart

2007-02-18 Thread Tobias Guennel
Dear R community, I am trying to write my own user defined split function for rpart. I read the example in the tests directory and I understand the general idea of the how to implement user defined splitting functions. However, I am having troubles with addressing the data frame used in calling

[R] User defined split function in Rpart

2007-01-03 Thread Paolo Radaelli
Dear all, I'm trying to manage with user defined split function in rpart (file rpart\tests\usersplits.R in http://cran.r-project.org/src/contrib/rpart_3.1-34.tar.gz - see bottom of the email). Suppose to have the following data.frame (note that x's values are already sorted) > D y x 1 7 0.428 2

[R] User defined split function in rpart

2005-05-18 Thread Wheeler, Bill (IMS)
In the function rpart, users can define their own split function by creating functions init, eval, and split. For method='anova', I have examples of these functions. I would like to create these functions for the case method='class'. Does anyone know how the init, eval, and split functions would be