Skip to content
Prev 171570 / 398503 Next

Simulating contingency table (Basic question, help please)

On Tue, 24 Feb 2009, bbbnc wrote:

            
If you want a two-way table with certain fixed margins, you can use 
r2dtable() which implements the Patefield algorithm. For testing 
(conditional) independence of two variables based on r2dtable(), you can 
use coindep_test() in package "vcd".
Z