View source: R/summary-stats.R
pic_stat_cvar | R Documentation |
Calculates the coefficient of variation on a set of contrasts
pic_stat_cvar(unit.tree)
unit.tree |
a |
This test statistic is used to evaluate whether the model is sufficiently capturing the variation in rates across the tree. The coefficient of variation is the sd/mean.
The coefficient of variation of the contrasts is included as a default test statistic
in the function calculate_pic_stat
.
The test statistic computed from a single unit.tree
can be visualized
with the function pic_stat_sasr_plot
.
c.var
the coefficient of variation of the contrasts
calculate_pic_stat
, default_pic_stat
, pic_stat_cvar_plot
data(finch) phy <- finch$phy dat <- finch$data[,"wingL"] unit.tree <- make_unit_tree(phy, data=dat) ## estimate variance of contrasts pic_stat_cvar(unit.tree) ## visualization pic_stat_cvar_plot(unit.tree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.