Displaying 1 result from an estimated 1 matches for "lmean".
Did you mean:
mean
2007 Jan 03
1
User defined split function in Rpart
...the last element of
the vector).
The thing i really don't understand is the direction vector.
# direction= -1 = send "y< cutpoint" to the left side of the tree
# 1 = send "y< cutpoint" to the right
What does it mean ?
In the example here considered we have
> sign(lmean)
[1] 1 1 -1 -1 -1 -1 -1 1 1 1 -1 -1 -1 -1 -1 -1 -1 -1 -1
Which is the criterion used ?
In my opinion we should have all the values equal to -1 given that they have
to be sent to left side of the tree.
Does someone can help me ?
Thank you
#######################################################
#...