Implements Dunnett's test (Dunnett, 1955) for many-to-one comparisons.
Usage
dunnett.test(Z = Z, select = rep(1, length(Z)))
Arguments
Z
A vector of test statistics
select
A vector of length Z; to include treatments set values to one and to exclude treatments set values to zero
Value
pvalues
A list of matrices of p-values for all intersection hypotheses
zscores
A list of matrices of z-scores for all intersection hypotheses
hyp.comb
A list of matrices indicating the structure of the intersection hypotheses
Details
A many-to-one comparison test for the the null hypothesis that all the treatment effects are equal to zero against the alternative that at least one is larger than zero.
References
Dunnett CW. A multiple comparison procedure for comparing several treatments with a control. Journal of the American Statistical Association 1955;50:1096-1121.
dunnett.test(c(0.75,1.5,2.25))
# select two treatments onlydunnett.test(c(0.75,1.5,2.25),select=c(1,1,0))
# set test statistic to -Infdunnett.test(c(0.75,1.5,-Inf))