Displaying 2 results from an estimated 2 matches for "usesurrogate".
2012 Apr 03
1
rpart error message
...d we use geterrMessage() to retrieve the
error.
When we execute the following command,
cnr_model<-rpart(as.factor(Species)~Sepal Length+Sepal Width+Petal Length,
method="class", parms=list(split="gini",prior=c()),
control=rpart.control(minsplit=2,
na.action=na.pass,cp=0.001,usesurrogate=1,maxsurrogate=2,surrogatestyle=0,maxdepth=20,xval=10))
we get an error message* "Error: unexpected symbol in
"a<-cnr_model<-rpart(as.factor(Species)~Sepal Length""*
The REXP returned in not null and the geterrMessage() call doesnt return an
error message.
But for other...
2009 Jul 26
3
Question about rpart decision trees (being used to predict customer churn)
Hi,
I am using rpart decision trees to analyze customer churn. I am finding that
the decision trees created are not effective because they are not able to
recognize factors that influence churn. I have created an example situation
below. What do I need to do to for rpart to build a tree with the variable
experience? My guess is that this would happen if rpart used the loss matrix
while creating