[R] Multivariate Regression Trees: how to identify sample units?

Gavin Simpson gavin.simpson at ucl.ac.uk
Tue Sep 14 19:10:16 CEST 2010


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
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%



More information about the R-help mailing list