pic_stat_cvar: Coefficient of variation of contrasts

View source: R/summary-stats.R

pic_stat_cvarR Documentation

Coefficient of variation of contrasts

Description

Calculates the coefficient of variation on a set of contrasts

Usage

pic_stat_cvar(unit.tree)

Arguments

unit.tree

a unit.tree object

Details

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.

Value

c.var the coefficient of variation of the contrasts

See Also

calculate_pic_stat, default_pic_stat, pic_stat_cvar_plot

Examples

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)


mwpennell/arbutus documentation built on Oct. 6, 2022, 10 a.m.