sig_sq | R Documentation |
Sigma squared values for a single niche summary statistic
are calculated using fitContinuous
.
sig_sq(tree_data, model = "BM")
tree_data |
a list of two elements (phy and data) resulted from using
the function |
model |
model to fit to comparative data; see
|
the sigma squared value (evolutionary rate) for the data, given the tree.
# a simple tree
data("tree5", package = "nichevol")
# simple data
data <- rnorm(n = length(tree5$tip.label))
names(data) <- tree5$tip.label
# tree with data
treeWdata <- geiger::treedata(tree5, data)
# Estimating sigma squared for the dataset
sig_sq(treeWdata)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.