CalculateEnrichmentPValue: calculates an enrichment p-value

Description Usage Arguments Value Examples

View source: R/CalculateEnrichmentPValue.r

Description

Calculate a enrichment p-value for a given hypothesis by comparing the corresponding predicted and observed gene changes

Usage

1
CalculateEnrichmentPValue(predictions, results)

Arguments

predictions

predictions of changes from the CCG for a particular hypothesis

results

gene changes observed in the experimental data

Value

an enrichment p-value

Examples

1
2
3
predictions <- matrix(c(1,2,3,1,1,-1), ncol = 2)
results<- matrix(c(1,2,3,4,1,1,-1,1), ncol = 2)
CalculateEnrichmentPValue(predictions, results)

Example output

[1] 1

CausalR documentation built on Nov. 8, 2020, 5:25 p.m.