Skip to content
Prev 312569 / 398506 Next

Getting all possible contingency tables

Thanks John for your reply. However still not clear how I should proceed.

My goal is to generate all possible contingency tables. Basically I want 
to see the distribution of Chi-squared Statistic under independence (NULL).

So I was thinking if I can generate all possible permutation of integer 
numbers having sum equal to (8 + 10 + 12 + 6) = 36. Is there any R 
function to do that?

Thanks and regards,
On 01-12-2012 18:39, John Kane wrote: