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 conti

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

2016-01-07 Thread Michael Dewey
Have you tried Google? exact randomisation trend test r finds what look like clearly relevant packages On 07/01/2016 04:16, li li wrote: Hi all, Is there an R function that does exact randomization trend test? For example, consider the 2 by 5 contingency table below: dose0

[R] exact trend test

2016-01-06 Thread li li
Hi all, Is there an R function that does exact randomization trend test? For example, consider the 2 by 5 contingency table below: dose0dose 0.15dose 0.5dose 1.5dose 5 row margin Yes 43 4 5 8