PIC.test: Kharrati-Kopaei and Miller's test for interaction

Description Usage Arguments Value Author(s) References Examples

View source: R/test.R

Description

Computes the test statistics and corresponding p-value based on inspecting all Pairwise Interaction Contrasts (PICs) for testing interaction proposed by Kharrati-Kopaei and Miller(2016).

Usage

1
PIC.test(x, nsim = 1000, nc0 = 10000, ...)

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 1000

Value

An exact p-value for input

Author(s)

Zahra. Shenavari, ...

References

Kharrati-Kopaei, M., Miller, A. (2016). A method for testing interaction in unreplicated two-way tables: using all pairwise interaction contrasts. Statistical Computation and Simulation 86(6):1203-1215.

Examples

1
2
3
## Not run: this is an example
data(ratio)
PIC.test(ratio,nsim=10000,nc0=10000)

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