edge.pvalue | R Documentation |
Given a pattern, it splits and returns the slot of interest.
edge.pvalue(stat, stat0, pool = TRUE)
stat |
vector of observed statistics. |
stat0 |
matrix of null statistics, where rows are features and columns are iterations. |
pool |
features are interchangeable, e.g. unlist all null statistics. |
A vector of empirical p-values.
Jeffrey T Leek, Leonardo Collado-Torres (examples)
## Vector of statistics
z <- rnorm(100, mean = 2)
## Matrix with one row per element in the vector of statistics
## and one column per permutation (here 100)
z0 <- matrix(rnorm(1e5), nrow = 100)
## Pool all the permutations (default)
edge.pvalue(z, z0, pool = TRUE)
## Or don't pull them
edge.pvalue(z, z0, pool = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.