Displaying 2 results from an estimated 2 matches for "relerror".
Did you mean:
regerror
2006 Sep 25
2
rpart
...it is the full tree?
If so, it's up to me to choose a subtree by using the printcp method.
In the technical report from Atkinson and Therneau "An Introduction to recursive partitioning using the rpart routines" from 2000, one can see the following table on page 15:
CP nsplit relerror xerror xstd
1 0.105 0 1.00000 1.0000 0.108
2 0.056 3 0.68519 1.1852 0.111
3 0.028 4 0.62963 1.0556 0.109
4 0.574 6 0.57407 1.0556 0.109
5 0.100 7 0.55556 1.0556 0.109
Some lines below it says "We see that the best tree has 5 termi...
2012 Mar 25
2
avoiding for loops
I have data that looks like this:
> df1
group id
1 red A
2 red B
3 red C
4 blue D
5 blue E
6 blue F
I want a list of the groups containing vectors with the ids. I am
avoiding subset(), as it is
only recommended for interactive use. Here's what I have so far:
df1 <- data.frame(group=c("red", "red", "red", "blue",