Re: [R] user-written splits in rpart

2009-12-17 Thread Verspagen B (ALGEC)
--- begin original message --- I am trying to write my own split function for rpart. The aim is to do, instead of anova, a linear regression to determine the split (minimize some criterion like sum of rss left and right of the split). The regression (lm) should simply use the dependent and independ

Re: [R] user-written splits in rpart

2009-12-16 Thread Terry Therneau
--- begin included message --- Hi, I am trying to write my own split function for rpart. The aim is to do, instead of anova, a linear regression to determine the split (minimize some criterion like sum of rss left and right of the split). The regression (lm) should simply use the dependent and ind