Skip to content

Compare two correlations matrices

2 messages · Martin Kaffanke, Henrique Dallazuanna

#
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
#
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: