TopK_PermT.test: TopK exact test based on permutation T p-values

Description Usage Arguments Examples

View source: R/TopK_PermT.test.R

Description

This function perform TopK exact test on a two group data set (Case-Control study). The univariate p-values based on permutation t-test.

Usage

1
2
3
TopK_PermT.test(X, nA, nB, Kvals = c(1, 2, 3, 4, 5, 10, 25), B = 0,
  alternative = c("two.sided", "less", "greater"), ties.method = c("random",
  "min", "max", "average"), pval = FALSE, ReturnType = "TopK", vrb = T)

Arguments

X

a data matrix containing features as rows and samples as columns.

nA

number of samples in group 1

nB

number of samples in group 2

Kvals

a numeric vector indicating how many "K" we choose.

B

the number of inner permutation, default is "0" for exact test.

alternative

a character string specifying the alternative hypothesis, must be one of "two.sided" (default), "greater" or "less". You can specify just the initial letter.

ties.method

a character string specifying how ties are treated, see <e2><80><98>Details<e2><80><99>; can be abbreviated.

pval

If TRUE, the permutation matrix will be populated by p-values from t-test. If FALSE, the permutation matrix will be directly populated by t statistics (negative absolute value).

ReturnType

character(1) specify how to return the results. Could be "list", "vector" or rich format "TopK". See detail.

vrb

a logical vector indicating TRUE when show some words while running, FALSE otherwise.

Examples

1

ziqiangc/TopK documentation built on May 4, 2019, 11:23 p.m.