View source: R/tree-simulation-functions.R
gen.p.values | R Documentation |
Generate one-sided p-values associated to a given signal with equi-correlated noise
gen.p.values(m, mu = rep(0, length(mu)), rho = 0)
m |
An integer value, the number of hypotheses |
mu |
A vector of |
rho |
A numeric value in |
A vector of m
one-sided p
-values
m <- 100
s <- 10
K1 <- floor(m/(s * 4))
d <- 1
barmu <- 4
dd <- dyadic.from.window.size(m, s, method = 2)
leaf_list <- dd$leaf_list
mu <- gen.mu.leaves(m = m, K1 = K1, d = d, grouped = FALSE,
setting = "const", barmu = barmu, leaf_list =leaf_list)
pvals <- gen.p.values(m = m, mu = mu, rho = 0)
plot(-log(pvals), t = 'b')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.