getPvalZscore: getPvalZscore

View source: R/utility.R

getPvalZscoreR Documentation

getPvalZscore

Description

Calculate a p-value and z-score based on observed value and random evaluation values.

Usage

getPvalZscore(orig.ev, rand.ev, pval_t = FALSE)

Arguments

orig.ev

Observed value.

rand.ev

Random evaluation values.

pval_t

Boolean. Default is FALSE. If FALSE, the p-value is calculated based on the number of random evaluations is larger or less than the initial evaluation. If TRUE, the p-value is calculated based on a t-test.

Value

A p-value and a z-score.


yue-wang-biomath/RgnTX documentation built on Aug. 24, 2023, 1:12 p.m.