Re: [R] Specifying Splits WhenUusing rpart

2011-05-20 Thread Terry Therneau
> I'd like to force rpart to use a specific variable, namely "spec" as > the first split and then allow it to proceed as usual. Is there a way > to do this? You can often get this effect by using the "cost" argument. Make the variable in question have very low cost. Terry Therneau __

[R] Specifying Splits WhenUusing rpart

2011-05-19 Thread Bruce Johnson
I am using the package rpart to explore various classification structures. The call looks like: seekhi1<-rpart(pvol~spec+a1+psize+eppres+numpt+icds+bivalcrt+stents+ppshare+ nhosp+nyrs,data=dat,method="class", control=rpart.control(minsplit=30,xval=10)) The output is 1)