[R] rank correlation and distance between two different matrices
Prof Brian Ripley
ripley at stats.ox.ac.uk
Mon May 12 09:28:03 CEST 2003
Apply these to c/rbind(A,B) and extract the part of the result which you
On Mon, 12 May 2003, Luca De Benedictis wrote:
> in package Hmisc `rcorr' computes a matrix of Spearman's `rho' rank
> correlation coefficients for all possible pairs of columns of a matrix.
> What if I want a matrix of rank correlation coefficients for pair of
> columns of two different matrices?
> I have the same question about distance metrics in package Vegan. The
> function 'vegdist' computes distance indexes for all possible pairs of
> row of a matrix. What if I am interested in comparing each single row of
> matrix A with the correspondent row of matrix B?
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help