afsouza at unisinos.br
2010-Sep-07 22:23 UTC
[R] Multivariate Regression Trees: how to identify sample units?
Dear friends, I am sudying the mvpart package, that implements Multivariate Regression Trees, aiming at applying it to a biogeographical dataset of tree speces in southern South America. My doubt is how to access plot identities after the tree is produced. For us it is rather important, but I could not find them with neither 'summary(fit)'[where fit is the object containing the mvpart(...) command] nor just 'fit'. This piece of information is likely to be somewhere in the package documentation (Package 'mvpart' or ?mvpart), but I did not succeed in finding it. Do anyone knows how to solve this? Thank you in advance and all the best, Alexandre Dr. Alexandre F. Souza Programa de P??s-Gradua????o em Biologia: Diversidade e Manejo da Vida Silvestre Universidade do Vale do Rio dos Sinos (UNISINOS) Av. UNISINOS 950 - C.P. 275, S??o Leopoldo 93022-000, RS - Brasil Telefone: (051)3590-8477 ramal 1263 Skype: alexfadigas afsouza at unisinos.br http://www.unisinos.br/laboratorios/lecopop -- Esta mensagem foi verificada pelo sistema de antiv?rus e acredita-se estar livre de perigo.
Gavin Simpson
2010-Sep-14 17:10 UTC
[R] Multivariate Regression Trees: how to identify sample units?
On Tue, 2010-09-07 at 19:23 -0300, afsouza at unisinos.br wrote:> Dear friends, > > I am sudying the mvpart package, that implements Multivariate > Regression Trees, aiming at applying it to a biogeographical dataset of > tree speces in southern South America. > > My doubt is how to access plot identities after the tree is produced. > For us it is rather important, but I could not find them with neither > 'summary(fit)'[where fit is the object containing the mvpart(...) > command] nor just 'fit'. This piece of information is likely to be > somewhere in the package documentation (Package 'mvpart' or ?mvpart), > but I did not succeed in finding it.[Apologies for the delayed reply to this, I was busy at the time and what was required was not very clear from the question.] I've answered, in longer form, a similar post on ECOLOG, but for the archive: with(fit, where) The numbers in 'where' pertain the to ID of the terminal node to which each sample has been assigned. See ?rpart.object for details of the objects returned by rpart (which mvpart is a wrapper to). HTH G> > Do anyone knows how to solve this? > > Thank you in advance and all the best, > > Alexandre > > Dr. Alexandre F. Souza > Programa de P?s-Gradua??o em Biologia: Diversidade e Manejo da Vida > Silvestre > Universidade do Vale do Rio dos Sinos (UNISINOS) > Av. UNISINOS 950 - C.P. 275, S?o Leopoldo 93022-000, RS - Brasil > Telefone: (051)3590-8477 ramal 1263 > Skype: alexfadigas > afsouza at unisinos.br > http://www.unisinos.br/laboratorios/lecopop > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.-- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Dr. Gavin Simpson [t] +44 (0)20 7679 0522 ECRC, UCL Geography, [f] +44 (0)20 7679 0565 Pearson Building, [e] gavin.simpsonATNOSPAMucl.ac.uk Gower Street, London [w] http://www.ucl.ac.uk/~ucfagls/ UK. WC1E 6BT. [w] http://www.freshwaters.org.uk %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%