[R] cutree using a vector for h giving meaningless results

Friedrich.Leisch@ci.tuwien.ac.at Friedrich.Leisch at ci.tuwien.ac.at
Wed Jan 23 14:08:00 CET 2002


>>>>> On Tue, 22 Jan 2002 18:00:22 +0100,
>>>>> Beatrice Kulli Honauer (BKH) wrote:

  > I try to use the routine cutree to cut a tree (created by hclust) into
  > several groups by specifiing the hight of the cut.

  > a<-1:10
  > cutree(tree, h=a*100)

  > The Matrix with group meberships returned is ok for most of the hights, but
  > in some cases (as for example h=800 and h=900) the results don't make sense
  > (group membership=0 or 58965231, it looks like the range of data allowed by
  > the data type was too small). It's interesting that h=1000 gives proper
  > results again. When I run the same for only one value of h (for example
  > 800), the results are ok again. I did not use hights higher than the
  > maximum hight of the tree!

could you give a complete reproducible example, i.e., code to create a
tree where you observe the problem? "in some cases" is a
little bit hard to debug ...

best,

-- 
-------------------------------------------------------------------
                        Friedrich  Leisch 
Institut für Statistik                     Tel: (+43 1) 58801 10715
Technische Universität Wien                Fax: (+43 1) 58801 10798
Wiedner Hauptstraße 8-10/1071      Friedrich.Leisch at ci.tuwien.ac.at
A-1040 Wien, Austria             http://www.ci.tuwien.ac.at/~leisch
-------------------------------------------------------------------

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list