ttestvector: T-test vector

Description Usage Arguments Value See Also

View source: R/ttestvector.R

Description

Runs t.test for each column in the two input sets

Usage

1
ttestvector(x, y = NULL, adjust = TRUE, ...)

Arguments

x

First group. Samples in rows

y

Second group. Samples in rows. If y=NULL (default), a one-sample test is performed exactly as in t.test

adjust

Adjust for multiple testing? Boolean indicating whether the FDR should be controlled by Benjamini-Hochberg correction using p.adjust.

...

Additional arguments passed to t.test

Value

an object of class "ttestvector" that contains the following elements:

tests

a list that contains the htest objects corresponding to each call to t.test

pvalues

an array of the adjusted p-values corresponding to each test. If adjust was FALSE, these will be the same as rawpvalues

rawpvalues

an array of the unadjusted p-values corresponding to each test.

adjusted

logical indicating whether p-values were adjusted

See Also

t.test, p.adjust


3inar/einr documentation built on May 5, 2019, 10:43 a.m.