evalTstat: Evaluate t statistics and p-value between two conditions.

Description Usage Arguments Value

View source: R/mssc2.R

Description

Evaluate t statistics and p-value between two conditions.

Usage

1
2
3
4
5
6
7
evalTstat(
  mucond,
  twoHotVec,
  alternative = "two.sided",
  paired = TRUE,
  var.equal = FALSE
)

Arguments

mucond

3-dim arrays, nsample by ngene by ncond

twoHotVec

integer vector, like (1,-1) or (0, 0, -1, 1, 0), the two conditions we want to compare, one is 1 and the other is -1.

alternative

string, default "two.sided"

paired

bool, default FALSE

var.equal

bool, default FALSE

Value

matrix, ngene by 2 (t statistics and pvalue in order) NA will be used for t statistics when some troubles happend in t.test, in this case, p-value is 1.0


beyondpie/mssc documentation built on Jan. 8, 2022, 1:30 p.m.