Hi

 

Hoping someone can help me (a newbie).

 

I am trying to construct a tree using tree() in package tree. One of the
fields is a factor field (owner), with many levels. In the resulting tree, I
see many NA's (see below), yet in the actual data there are none.

 

> rr200.tr <- tree(backprof ~ ., rr200)

> rr200.tr

1) root 200 1826.00 -0.2332  

...

[snip]

...

    5) owner: Cliveden Stud,NA,NA,NA,NA,NA,NA,NA,NA 10   14.25  1.5870 *

  3) owner: B E T Partnership,Flaming Sambuca
Syndicate,NA,NA,NA,NA,NA,NA,NA,NA 11  384.40 10.5900  

    6) decodds < 12 5   74.80  6.3000 *

    7) decodds > 12 6  140.80 14.1700 *

 

Can anyone tell me why this happens and what I can do about it?

 

Regards

 

Amnon

 


	[[alternative HTML version deleted]]

