Re: [R] rpart - classification and regression trees (CART)

2009-12-14 Thread Terry Therneau
When two variables have exactly the same figure of merit, they will be listed in the output in the same order in which they appeared in your model statement. Terry Therneau -- begin inclusion --- I had a question regarding the rpart command in R. I used seven continuous predictor variables

Re: [R] rpart - classification and regression trees (CART)

2009-12-14 Thread Katie N
Actually, that's the first thing I thought too, but they weren't listed in that order in my model statement (model that I used is below): fit=rpart(pres ~ TB144 + TB118 + TB129 + TB139 + TB114 + TB131 + TB122, method=class, data=data8) Would the selection of the best split when improvement is

[R] rpart - classification and regression trees (CART)

2009-12-12 Thread Katie N
Hi, I had a question regarding the rpart command in R. I used seven continuous predictor variables in the model and the variable called TB122 was chosen for the first split. But in looking at the output, there are 4 variables that improve the predicted membership equally (TB122, TB139, TB144,