ec.mto: Exact conditional test for many-to-one comparisons of...

Description Usage Arguments Value Author(s) References Examples

Description

This function calculates the exact distribution of the maximum of test statistics with unpooled variance estimators for the difference of many-to-one comparisons of proportion. Using this, p-values for the max-test are computed.

Usage

1
ec.mto(n, x, alternative = "less")

Arguments

n

vector of integers specifying the number of trials in each group, where the first value is taken as control

x

vector of integers specifying the number of successes in each group, where the first value is taken as control

alternative

a character string, one of "two.sided", "greater", "less"

Value

a single numeric value, the p.value of the maximum test

Author(s)

Frank Schaarschmidt

References

Koch, H.F. and Hothorn, L.A. (1999): Exact unconditional distributions for dichotomous data in many-to-one comparisons. Journal of Statistical Planning and Inference 82, 83-99 (section 2.1)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# Example from Koch and Hothorn (1999), Table 5:
# Chronic toxicity study in mice over six months.


ec.mto(n=c(40,20,20,20), x=c(4,1,6,8),
 alternative= "two.sided")

ec.mto(n=c(40,20,20,20), x=c(4,1,6,8),
 alternative= "less")

ec.mto(n=c(40,20,20,20), x=c(4,1,6,8),
 alternative= "greater")


binMto documentation built on May 20, 2017, 3:24 a.m.
Search within the binMto package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.