Hi all,
  Is there an R function that does exact randomization trend test?
  For example, consider the 2 by 5 contingency table below:

            dose0    dose 0.15    dose 0.5    dose 1.5    dose 5       row
margin
 Yes          4                3                  4               5
     8                   24
  No          4                5                   4               3
       0                  16
col sum    8                8                   8               8
   8                   40

To do the exact trend test, we need to enumerate all the contingency table
with the
row and column margins fixed. Find the probability corresponding to
obtaining
the corresponding contingency tables based on the multivariate
hypergeometric distribution. Finally the pvalue is obtained by adding
relevant probabilities.

Is there an R function that does this? if not, I am wondering whether it is
possible to
enumerate all possible contingency tables that has column sun and row sum
fixed?

Thanks very much!!

   Hanna

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to