Re: [R] setting pairwise comparisons of columns

2011-04-14 Thread peter dalgaard
On Apr 13, 2011, at 21:32 , Louis Plough wrote: > Hi, > I have a number of genes (columns) for which I want to examine pairwise > associations of genotypes (each row is an individual)...For example (see > data below), I would like to compare M1 to M2, M2 to M3, and M1 to M3 (i.e. > does ac from M

Re: [R] setting pairwise comparisons of columns

2011-04-14 Thread Tal Galili
Hi Louis, You pose an interesting question. Bellow is my take on a solution. It is a function named "compare.all.column.pairs" which gets as input the original data (as a data.frame or a matrix, with all the columns you'd want to compare). And also the function you would like to use on each pair

[R] setting pairwise comparisons of columns

2011-04-13 Thread Louis Plough
Hi, I have a number of genes (columns) for which I want to examine pairwise associations of genotypes (each row is an individual)...For example (see data below), I would like to compare M1 to M2, M2 to M3, and M1 to M3 (i.e. does ac from M1 tend to be found with bc from M2 more often than expected.

[R] setting pairwise comparisons of columns (genes)

2011-04-13 Thread Louis Plough
Hi, I have a number of genes (columns) for which I want to examine pairwise associations of genotypes (each row is an individual)...For example (see data below), I would like to compare M1 to M2, M2 to M3, and M1 to M3 (i.e. does ac from M1 tend to be found with bc from M2 more often than expected.