Skip to content

Kendall heat map

4 messages · Shane Carey, Jim Lemon, Bob Rudis

#
Hi,

I was hoping someone could help me. I was wondering are there any libraries
available to undertake a kendall correlation on a matrix of data, in the
same way as what can be undertaken with the rcorr function:

cormatrix = rcorr(as.matrix(A), type='spearman')
cordata = melt(cormatrix$r)
ggplot(cordata, aes(x=Var1, y=Var2, fill=value)) +
  geom_tile() + xlab("") + ylab("")

Thanks
#
Hi Shane,
Try the "Kendall" package.

Jim
On Fri, Jun 17, 2016 at 7:47 PM, Shane Carey <careyshan at gmail.com> wrote:
#
Did you try:

    cor(mat, method="kendall", use="pairwise")

That only provides the matrix (so the equiv of the $r list component),
but that seems to be all you need.
On Fri, Jun 17, 2016 at 5:47 AM, Shane Carey <careyshan at gmail.com> wrote:
#
I also need the significance value

Thanks
On Fri, Jun 17, 2016 at 11:11 AM, boB Rudis <bob at rudis.net> wrote: