which_aberrant: Returns which samples are in the aberrant interval defined by...

Description Usage Arguments Value Examples

View source: R/post_analysis.R

Description

Returns index of samples that are in the aberrant interval defined by test.aziz() Can take the same samples or a new set of previously unseen samples

Usage

1
which_aberrant(xi, x, res)

Arguments

xi

Numerical vector. Can be the same as the tested variable x or it can be a new set of unseen samples.

x

Numerical vector of the variable tested by test.aziz()

res

Result of running test.aziz()

Value

indexes of samples in xi that are within the aberrant interval

Examples

1
2
3
4
5
6
7
8
y = c(rep(1,200),rep(0,200))
x = rnorm(400)
#Inducing an aberration enrichment signal by perturbing some of the cases
x[1:20]=x[1:20]-3;
res2 = aziz.test(y,x,rep=20000)
print_summary(res2)
which_aberrant(x,x,res2)
which_aberrant(c(-5,1.5,-2.5,-0.5,2),x,res2)#testing if new values are within the aberrant interval

aziztest documentation built on Nov. 21, 2020, 9:06 a.m.