Description Usage Arguments Details Value Examples
Simulates z-scores
1 | simu_zscores(tree, alphaOU, shifts = NULL, Nshifts = NULL, graph = FALSE, ...)
|
tree |
tree. |
alphaOU |
the parameter for the OU process. |
shifts |
vector of shifts. |
Nshifts |
number of shifts. Must be specified if |
graph |
show the tree, shifts and z-scores be plotted? |
... |
additional parameters to pass to |
Shifts are sampled from "statistically significant values of z-scores"
a vector of simulated z-scores.
1 2 3 4 5 | set.seed(42)
tree <- ape::rcoal(5)
shift <- c(0, 0, -3, 0, 0, 0, 0, 0)
simu_zscores(tree, alphaOU = 0.2, shift = shift, graph = TRUE)
simu_zscores(tree, alphaOU = 0.2, Nshifts = 2, graph = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.