Re: [R] Error in text.rpart(fit) : fit is not a tree, just a root

2009-11-25 Thread Terry Therneau
I've tried to make a decision tree for the following data set: I don't get a tree... The rpart routine has decided that the best model it can find is the intercept only model, i.e., a tree with no branches at all. Stepwise regression can have the same outcome, by the way, if no variables

[R] Error in text.rpart(fit) : fit is not a tree, just a root

2009-11-24 Thread Joel Fürstenberg-Hägg
Hi all, I've tried to make a decision tree for the following data set: Level X Response 279 C 2.4728646 -9.445 341 B 0.5986398 -9.413 343 B 1.1786271 -9.413 384 D 1.4797870 -9.413 390 C 2.0364569 -9.133 391 D