ratebystate | R Documentation |
Statistical test of whether the rate of a continuous character might be influenced by the state of another.
ratebystate(tree, x, y, nsim=100, corr=c("pearson","spearman"), ...)
tree |
phylogenetic tree. |
x |
a continuous character - the dependent variable in the model. |
y |
a second continuous trait - the response variable. |
nsim |
number of simulations for hypothesis testing. |
corr |
correlation method to use. Same as in |
... |
optional arguments which include |
This function attempts to ask if the rate of a continuous character, y
, depends on the state of a separate continuous trait, x
. This is accomplished by regressing the squared contrasts in y
on the branch or node ancestral estimates of x
.
This function returns an object of class "ratebystate"
with up to the following four elements:
beta |
value of the regression coefficient for square of the contrasts in |
r |
correlation coefficient for |
corr |
string giving the value of |
method |
string giving the value of |
Liam Revell liam.revell@umb.edu
Revell, L. J. (2024) phytools 2.0: an updated R ecosystem for phylogenetic comparative methods (and other things). PeerJ, 12, e16505.
fastAnc
, pic
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.