View source: R/summary-stats.R
pic_stat_svar | R Documentation |
Fits a linear model between the absolute value of constrasts and their expected variances
pic_stat_svar(unit.tree)
unit.tree |
a |
This test statistic estimates the slope from fitting a linear model between the contrasts and their expected variance. It is used to evaluate whether the model is adequately capturing variation relative to branch lengths. If the model is adequate, we expect there not to be a relationship between the contrasts and their variances (i.e. slope ~ 0).
The slope of the contrasts and their variances 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_svar_plot
.
s.var
the estimated slope paramter
calculate_pic_stat
, default_pic_stat
,
pic_stat_svar_plot
, lm
data(finch) phy <- finch$phy dat <- finch$data[,"wingL"] unit.tree <- make_unit_tree(phy, data=dat) ## estimate slope pic_stat_svar(unit.tree) ## visualization pic_stat_svar_plot(unit.tree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.