factorMerger icon indicating copy to clipboard operation
factorMerger copied to clipboard

Meaning of numbers tree

Open jgarces02 opened this issue 6 years ago • 1 comments

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 

image Any idea what's happening or what I'm missing, please? Thanks in advance.

jgarces02 avatar Apr 01 '19 09:04 jgarces02

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

image

image

Do you have some news about this issue?

Bustami avatar Mar 02 '20 10:03 Bustami