QStat.Calculate: Global test for metabolic pathway differences between...

Description Usage Arguments Value Author(s) References Examples

Description

Calculates the Q statistic of Goeman's global test for metabolomic pathways. Also performs a permutation test, which can either be run for all possible permutations, or for a certain number of random permutations. See references for more details.

Usage

1
  QStat.Calculate(X, y.boolean, permutations = "all")

Arguments

X

matrix with sampling data per row.

y.boolean

boolean. A vector of TRUE/FALSE values on whether each sample adheres to a certain condition.

permutations

argument to determine the type of permutation test. Can be either 'all', in which case all possible permutations are calculated (caution, this might take a long time), or a fixed number of random permutations. Set to 0 in case no permutation test is to be performed.

Value

A list will be returned with the following contents:

y.boolean

The original y.boolean input vector.

X

The original X input vector.

Q

The calculated Q statistic.

p

The p value found after the permutation test.

Author(s)

Diana Hendrickx and Tim Dorscheidt

References

Global test for metabolic pathway differences between conditions. Diana M. Hendrickx, Huub C.J. Hoefsloot, Margriet M.W.B. Hendriks, Andre. Canelas and Age K. Smilde. Analytica Chimica Acta, Volume 719 (2012), pages 8 - 15

Examples

1
2

MetStaT documentation built on May 2, 2019, 1:45 p.m.