Description Usage Arguments Value Examples
View source: R/post_analysis.R
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
1 | which_aberrant(xi, x, res)
|
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 |
res |
Result of running |
indexes of samples in xi
that are within the aberrant interval
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.