sigdirE2test: Summarize results from 'e2test'

Description Usage Arguments Details Value Author(s) Examples

View source: R/orQA.R

Description

Translate results from e2test into trinomial coding where 1 signifies an upward trend, 0 a none significant result, and -1 a downward trend.

Usage

1
sigdirE2test(o,alpha)

Arguments

o

result object from e2test

alpha

desired alpha level for the test

Details

Translate results from e2test into trinomial coding where 1 signifies an upward trend, 0 a none significant result, and -1 a downward trend.

Value

a vector of length corresponding to the number of tests coding each result as either 1,0, or -1.

Author(s)

Florian Klinglmueller <float_at_lefant.net>

Examples

1
2
3
4
5
6
7
groups <- rep(1:4,each=18)
ind <- rep(rep(1:3,each=6),4)
tdir <- sample((1:3)-2,100,rep=TRUE)
data <- matrix(rnorm(7200),nc=72)+(tdir %*% t(groups))
out <- e2test(data,groups,B=1000,rep=ind)
sigdir <- sigdirE2test(out)
table(sigdir)

orQA documentation built on May 1, 2019, 10:31 p.m.