Re: [R] exact trend test (enumerate all possible contingency tables with fixed row and column margins)

2016-01-07 Thread Michael Dewey
You received a number of suggestions about where to look and packages that might be suitable. Did you do that? If you did which ones did you look at and why did you reject them? On 07/01/2016 16:29, li li wrote: Thanks for all the reply. Below is the data in a better format. addmargins(dat)

Re: [R] exact trend test (enumerate all possible contingency tables with fixed row and column margins)

2016-01-07 Thread li li
I did check the coin package before. I did not see a function in that package that can be used to list all the possible contingency tables with fixed margins. Of course I googled "exact trend test using R". There is not enough help there. For up to three groups, I can easily enumerate all the