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

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 >>

Re: [R] pairwise cross tabulation tables

2008-01-10 Thread AndyZon
should I use "crossprod()"? Should I just apply this function on these 2*n columns (originally I have n variables), and then operate on the generated cell counts? I am confused about this. Your input will be greatly appreciated. Andy Charles C. Berry wrote: > > On Wed, 9 J

[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