sim.ratebystate {phytools} | R Documentation |
Conduct simulation of state dependent rate variation
Description
Simulates two characters under a model in which the rate of one depends on the state of the other.
Usage
sim.ratebystate(tree, sig2x=1, sig2y=1, beta=c(0,1), ...)
Arguments
tree |
phylogenetic tree. |
sig2x |
variance of the Brownian process of evolution for x, |
sig2y |
variance of the Brownian process of evolution for y when |
beta |
intercept and slope of the relationship between the value of x and the Brownian rate in y. |
... |
optional arguments which include |
Details
This function attempts to simulate two characters under a model in which the rate of evolution for the second (y) depends on the states for the first (x).
See ratebystate
for more details.
Value
This function returns a matrix.
Author(s)
Liam Revell liam.revell@umb.edu
References
Revell, L. J. (2024) phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). PeerJ, 12, e16505.