Re: [R] pairwise cross tabulation tables

2008-01-12 Thread Charles C. Berry
On Fri, 11 Jan 2008, AndyZon wrote: > > > Another question: > > Is it possible to make 3-variable cross tabulations (I mean, plus another > dichotomous variable), such as 2*3*3, 3*2*3, or 3*3*2? Can we do it in > similar ways as just 2-variables? If you mean to stratify all of the other variables

Re: [R] pairwise cross tabulation tables

2008-01-11 Thread AndyZon
Another question: Is it possible to make 3-variable cross tabulations (I mean, plus another dichotomous variable), such as 2*3*3, 3*2*3, or 3*3*2? Can we do it in similar ways as just 2-variables? Thank you very much! Andy Charles C. Berry wrote: > > On Thu, 10 Jan 2008, AndyZon wrote: >

Re: [R] pairwise cross tabulation tables

2008-01-11 Thread AndyZon
Thanks a million, Chuck! I think I got it. Have a good weekend! Andy Charles C. Berry wrote: > > On Thu, 10 Jan 2008, AndyZon wrote: > >> >> Thank you so much, Chuck! >> >> This is brilliant, I just tried some dichotomous variables, it was really >> fast. > > > Yes, and if you are on a mu

Re: [R] pairwise cross tabulation tables

2008-01-10 Thread Charles C. Berry
On Thu, 10 Jan 2008, AndyZon wrote: > > Thank you so much, Chuck! > > This is brilliant, I just tried some dichotomous variables, it was really > fast. Yes, and if you are on a multicore system with multithreaded linear algebra, crossprod() will distribute the job across the cores making the e

Re: [R] pairwise cross tabulation tables

2008-01-10 Thread AndyZon
Thank you so much, Chuck! This is brilliant, I just tried some dichotomous variables, it was really fast. Most categorical variables I am interested in are 3 levels, they are actually SNPs, I want to look at their interactions. My question is: after generating 0-1 codings, like 00, 01, 10, how s

Re: [R] pairwise cross tabulation tables

2008-01-09 Thread Charles C. Berry
On Wed, 9 Jan 2008, AndyZon wrote: > > Hi, > > I have a huge number of categorical variables, say at least 1, and I put > them into a matrix, each column is one variable. The question is: how can I > make all of the pairwise cross tabulation tables efficiently? The > straightforward solution i

[R] pairwise cross tabulation tables

2008-01-09 Thread AndyZon
Hi, I have a huge number of categorical variables, say at least 1, and I put them into a matrix, each column is one variable. The question is: how can I make all of the pairwise cross tabulation tables efficiently? The straightforward solution is to use for-loops by looping two indexes on the