mway.test: Max test

Description Usage Arguments Value Examples

View source: R/SphereKaji20140527.R

Description

Max test

Usage

1
mway.test(A, tests, lower.tail, one.side, n)

Arguments

A

An array or matrix of table that specifies marginal counts

tests

A list of tables

lower.tail

logical; if TRUE (default), probabilities are P[X ?????? x], otherwise, P[X > x].

one.side

Optional. When TRUE, tests are one-sided, otherwise two-sided

n

number of random unit vectors used for estimation

Value

Examples

1
2
3
4
5
6
7
A <- matrix(c(10,20,30,40,50,60),2,3)
t1 <- t2 <- t3 <- matrix(c(1,0,0,0,0,0),byrow=TRUE,2,3)
t2[1,2] <- 0.5
t3[1,2] <- 1
tests <- list(t1,t2,t3)
n <- 1000
mway.test(A,tests,n=10000)

ryamada22/mwaytable documentation built on May 28, 2019, 10:44 a.m.