Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

tTestAllVal

t.test on all individual values against all other values


Description

Run t.test on each indiv value of x against all its neighbours (=remaining values of same vector) in order to test if tis value is likely to belong to vector x. This represents a repeated leave-one-out testing. Mutiple choices for multiple testing correction are available.

Usage

tTestAllVal(x, alph = 0.05, alternative = "two.sided", p.adj = NULL)

Arguments

x

matrix or data.frame

alph

(numeric) threshold alpha (passed to t.test)

alternative

(character) will be passed to t.test as argument 'alternative', may be "two.sided",..

p.adj

(character) multiple test correction : may be NULL (no correction), "BH","BY","holm","hochberg" or "bonferroni" (but not 'fdr' since this may be confounded with local false discovery rate), see p.adjust

Value

numeric vector with p-values or FDR (depending on argument p.adj)

See Also

Examples

set.seed(2016); x1 <- rnorm(100)
allTests1 <- tTestAllVal(x1)
hist(allTests1,breaks="FD")

wrMisc

Analyze Experimental High-Throughput (Omics) Data

v1.5.4
GPL-3
Authors
Wolfgang Raffelsberger [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.