mtukey.test {additivityTests} | R Documentation |
Modified Tukey Additivity Test
Description
Test for an interaction in two-way ANOVA table by the modified Tukey test.
Usage
mtukey.test(Y, alpha = 0.05, correction = 0, Nboot = 1000)
Arguments
Y |
data matrix |
alpha |
level of the test |
correction |
type of small sample size correction (0=none, 1=bootstrap without replacement, 2=sampling), see |
Nboot |
number of simulations to be used for small sample size correction |
Details
The level of the modified Tukey test is unstable for a small sample size. In such cases
either bootstraping (correction=1
) or sampling (correction=2
) should be used to compute the critical value.
Value
A list with class "aTest
" containing the following components:
test statistics stat
, critical value critical.value
and the result of
the test result
, i.e. whether the additivity hypothesis has been rejected.
References
Simecek, Petr, and Simeckova, Marie. "Modification of Tukey's additivity test." Journal of Statistical Planning and Inference, 2012.
See Also
tukey.test
, mandel.test
, johnson.graybill.test
,
lbi.test
, johnson.graybill.test
Examples
data(Boik)
mtukey.test(Boik)
mtukey.test(Boik,correction=2,Nboot=2000)