On Tue, Jun 24, 2014 at 10:41 AM, Tahira Jamil <tahjamil at gmail.com> wrote: > Hi, > > I am interested in generating all possible contingency table (2 by 2) with fixed row margins and column margins. Can anyone help me. > If the reason you want this is to sample them then r2dtable can do that directly.