simOverTrees: simOverTrees This function will simulate the expected change...

Description Usage Arguments

Description

simOverTrees This function will simulate the expected change over a vector of named trees. It calls cladeChangeSim a bunch of times.

Usage

1
2
simOverTrees(tree, reftrees, nsim, node, sigsq, direction = "non",
  increment = NULL, lead = FALSE)

Arguments

tree

The original tree.

reftrees

A vector of trees that differ to the original tree on which to simulate the change.

nsim

The number of simulations per tree.

node

A node from which to conduct the simulation.

sigsq

A single sigma squared for the simulation, or a vector of them in the order of the trees.

direction

Positive selection ("pos"), negative selection ("neg"), or non directional ("non")?

increment

The size of the time interval each branch is broken down into, if NULL is calculated automatically, but may not be comparable between runs.

lead

Include the leading branch to the node in the simulations?


hferg/hfgr documentation built on May 17, 2019, 3:56 p.m.