[R] Correlation between 2 matrices but with subset of variables
chuck.01
CharlieTheBrown77 at gmail.com
Fri Mar 9 02:34:14 CET 2012
Example data would be helpful
A Ezhil wrote
>
> Dear All,
> I have two matrices A (40 x 732) and B (40 x 1230) and would like to
> calculate correlation between them. I can use: cor(A,B, method="pearson")
> to calculate correlation between all possible pairs. But the issue is that
> there is one-many specific mappings between A and B and I just need to
> calculate correlations for those pairs (not all). Some variables in A
> (proteins, say p1) have more than 3 (or 2 or 1) corresponding mapping in B
> (mRNA, say, m1,m2,m3) and I would like calculate correlations between
> p1-m1, p1-m2, and p1-m3 and then for the second variable p2 etc.
> I have the mapping information in another file (annotation file). Could
> you please suggest me how to do that?
> Thanks in advance.
> Kind regards,Ezhil
> [[alternative HTML version deleted]]
>
>
> ______________________________________________
> R-help@ 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.
>
--
View this message in context: http://r.789695.n4.nabble.com/Correlation-between-2-matrices-but-with-subset-of-variables-tp4458073p4458277.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list