[R] Compare two correlations matrices

Henrique Dallazuanna wwwhsd at gmail.com
Thu Mar 13 13:33:38 CET 2008


Try:


all.equal(cor(d), cor(e))
identical(cor(d), cor(e))
cor(d) == cor(e)

On 13/03/2008, Martin Kaffanke <technik at roomandspace.com> wrote:
> Hi there,
>
>  When I make two correlations matrices of the same size from
>
>  a <- cor(el[1:20])
>  b <- cor(fl[1:20])
>
>  how can I compare if this matrices are equal?
>
>  Thanks,
>  Martin
>
>
>  --
>  Ihr Partner für Webdesign, Webapplikationen und Webspace.
>  http://www.roomandspace.com/
>  Martin Kaffanke +43 650 4514224
>
> ______________________________________________
>  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.
>
>
>


-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O



More information about the R-help mailing list