View source: R/calc_partialR2.r
calc_partialr2 | R Documentation |
This function calculates the partial
R2 of a phylogenetic
regression model. In the context of models for detecting punctuated
evolution, this value represents the proportion of the deviation from the
strict molecular (or morphological) clock that is attributable to net
speciation or gene duplication events. Specifically, the partial
R2 roughly represents
how much the sum of squared errors (SSE) decreases after including node
count in the model. So, the more complex model has node count as the only
additional parameter (e.g., path ~ node
or path ~ time + node
)
compared to the simpler model (e.g., path ~ 1
or path ~ time
).
calc_partialr2(output_simple, output_complex)
output_simple |
A list outputted from the |
output_complex |
A list outputted from the |
This function returns the partial R2 value.
Kevin Surya
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.