Hi all,



What parameter do I normally change in the rpart function? How do I set the
"cp" option?



Is there a way to read off error rate directly from the "rpart" function for
training data; I imagine for testing data I have to apply a "predict", but
for training data I guess the error count would be somewhere existing once
the "rpart" function is finished. Looks like it is related to expressions
such as "expected loss=0.8362365" when using "summary" function.

Now I have to do this manually, and when it came to compare the correct vs.
wrong and count the errors, it was always very tedious...



Thanks a lot!



M.

	[[alternative HTML version deleted]]


