simu_zscores: Simulation of z-scores on branches

Description Usage Arguments Details Value Examples

View source: R/simulations.R

Description

Simulates z-scores

Usage

1
simu_zscores(tree, alphaOU, shifts = NULL, Nshifts = NULL, graph = FALSE, ...)

Arguments

tree

tree.

alphaOU

the parameter for the OU process.

shifts

vector of shifts.

Nshifts

number of shifts. Must be specified if shifts is not.

graph

show the tree, shifts and z-scores be plotted?

...

additional parameters to pass to plot_shifts().

Details

Shifts are sampled from "statistically significant values of z-scores"

Value

a vector of simulated z-scores.

Examples

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)

abichat/zazou documentation built on Sept. 8, 2021, 6:53 a.m.