simuDatRate: simuDatRate

Description Usage Arguments

Description

Simulate data over a phylogeny, or sub section of a phylogeny, in order to reflect variable rates. Based on adding a constant to the tip data branch by branch and weighting by branch length and does not need to stretch the phylogeny.

Usage

1
2
simuDatRate(tree, transtree = NULL, node, a, sig, dat = NULL,
  method = "recursive", standardise = FALSE)

Arguments

tree

The tree that data is simulated on.

transtree

If you want to simulate data using a transformed tree to derive branch lengths, then this is where that tree goes. Defaults to NULL.

node

The node at which to make the changes.

a

The constant that is weighted by branch length and added to the data at the tips. Once the relationship between scalar and this is known, this can be scalar

sig

The standard deviation of the random component of the BM simulation. NOT sigma squared.

dat

If you want to use some data you already have and change it this way, put it here.

method

Either add values recursively by tail branch length (default), or alternative "path" - which adds values proportional to total path length.

standardise

Logical, whether or not to z-standardise the data. Defaults to FALSE.


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