Conduct simulation of state dependent rate variation
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.
sim.ratebystate(tree, sig2x=1, sig2y=1, beta=c(0,1), ...)
tree |
phylogenetic tree. |
sig2x |
variance of the Brownian process of evolution for x, σ_x^2. |
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 |
This function returns a matrix.
Liam Revell liam.revell@umb.edu
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.