Hello,
I want to write a function to do pairwise calculation, but I don' know how
to write it. Could anyone help?
i.e. I have A (2*3), B(3*3), C(4*3) three matrices. I want to calculate
distance correlation between each pair of matrices using code "dcor". How
do I write a function so that I can get the result as a matrix integrating
all the pairwise results?
Thanks in advance for your help!
Best,
Amanda
[[alternative HTML version deleted]]
______________________________________________
[email protected] 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.