p_value {hierBipartite}R Documentation

P-value of Similarity in Gene-drug Associations

Description

Computes p-value as number of null dissimilarities less than or equal to observed dissimilarity.

Usage

p_value(dissimilarity, dissimilarities)

Arguments

dissimilarity

observed dissimilarity

dissimilarities

null distribution of dissimilarities

Value

p-value

Examples

# simulate null distribution of dissimilarities
dissimilarities = runif(100, min = 0, max = 1)

d = 0.10
p_value(d, dissimilarities)


[Package hierBipartite version 0.0.2 Index]