[R] exact trend test
Michael Dewey
lists at dewey.myzen.co.uk
Thu Jan 7 12:53:44 CET 2016
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 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 at 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.
>
--
Michael
http://www.dewey.myzen.co.uk/home.html
More information about the R-help
mailing list