[R] exact trend test

li li hannah.hlx at gmail.com
Thu Jan 7 05:16:51 CET 2016


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]]



More information about the R-help mailing list