qmway.table: Estimate quantiles of maximum statistics on multi-way table...

Description Usage Arguments Value Examples

View source: R/SphereKaji20140527.R

Description

Estimate quantiles of maximum statistics on multi-way table under unll or alternative hypothesis

Usage

1
qmway.table(p, A, tests, lower.tail, x, nc, one.side, n)

Arguments

p

probability vector

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].

x

a vector of K statistic values

nc

Optional. if FALSE (default), random tables are in null hypothesis and otherwise in alternative hypothesis with its ccenter being table A

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
8
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
p <- 0.05
qmway.table(p,A,tests)

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