factorMerger
factorMerger copied to clipboard
Meaning of numbers tree
Hi,
I've read the documentation and I'm not able to understand the meaning of numbers appearing in each tree leaf... In the example within the documentation (figure 2) appears that:
Numbers displayed on the right side of country names stand for country averages.
But average values for each group in the veteran dataset are different between code and tree:
> for(i in c("squamous", "smallcell", "adeno", "large")) cat(i, "\n", mean(veteran$time[veteran$celltype == i]), "\n")
squamous
200.2
smallcell
71.66667
adeno
64.11111
large
166.1111
Any idea what's happening or what I'm missing, please? Thanks in advance.
The same doubt here, specifically for regression problems.
I also calculated the mean of predicted values by category and i didn't get the same shown values on the graphics, even i got closely values for some cases


Do you have some news about this issue?