Beatrice Kulli Honauer
2002-Jan-22 17:00 UTC
[R] cutree using a vector for h giving meaningless results
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! Thank you for any help! Beatrice Kulli ---------------------------------------------- Beatrice Kulli Institute of Terrestrial Ecology, Soil Physics ETH Zuerich Grabenstrasse 3, CH-8952 Schlieren Phone: +41 1 633 60 17; Fax: +41 1 633 11 23 http://www.ito.umnw.ethz.ch/SoilPhys/ ---------------------------------------------- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Friedrich.Leisch@ci.tuwien.ac.at
2002-Jan-23 13:08 UTC
[R] cutree using a vector for h giving meaningless results
>>>>> 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Maybe Matching Threads
- ntlm_auth: (pipe \PIPE\NETLOGON) has died or was never started (fd == -1)
- Bug#668162: [INTL: it] Italian translation of debconf messages - xen-api
- Auth problems against Eudora
- different hights & centering in one device region
- Dump Analysis -- when NCR server frozen by rsync