Malik.test: Malik's test for interaction

Description Usage Arguments Value Author(s) References Examples

View source: R/test.R

Description

Repors the exact p-value from Malik et al. (2016).They proposed to partition the residuals(components of residual matrix R of input data matrix under additivity assumption) into three clusters using a suitable clustering method like <e2><80><9c>k-means clustering<e2><80><9d>. The hypothesis of no interaction can be interpreted as the effects of the three clusters are equal.Compute Malik's test statistics and corresponding p-value by Monte Carlo simulation.

Usage

1
Malik.test(x, nsim = 500)

Arguments

x

A b-by-t data matrix, which rows corresponding to b-block effects and columns are t-treatment effects

nsim

Number of simulation for compueting exact p-value. The defaut value is 500

Value

An exact p-value for input

Author(s)

Zahra. Shenavari, ..

References

Malik, W. A., Mo <cc><88>hring, J., Piepho, H. P. (2016). A clustering-based test for non-additivity in an unreplicated two-way layout. Communications in Statistics-Simulation and Computation 45(2):660-670.

Examples

1
2
3
## Not run: this is an example
data(impurity)
Malik.test(impurity,nsim=1000)

sdateam/combinIT documentation built on May 6, 2019, 12:10 p.m.