Re: [R] Compare two correlations matrices

From: Henrique Dallazuanna <wwwhsd_at_gmail.com>
Date: Thu, 13 Mar 2008 09:33:38 -0300

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

______________________________________________
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.
Received on Thu 13 Mar 2008 - 12:41:05 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 13 Mar 2008 - 13:30:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive