compute.sqrt.dist: Compute the vector of branch scaling parameters

Description Usage Arguments Value

View source: R/brownian_motion_package.r

Description

This function computes the square root of the phylogenetic distance between each species in the tree and one other specified species. Assuming the true model is Brownian motion with no rate shifts, the distributions of trait change from a given species to any other species should be identical when divided by the square root of the distance between the two species.

Usage

1
compute.sqrt.dist(phy, norm = 1, species = phy$tip.label[-norm])

Arguments

phy

ape format phylogeny

norm

the species to which distances are computed

species

a vector of species names for which to compute distances

Value

A vector of square root of the distance between each species and norm


PIGShift documentation built on May 2, 2019, 9:02 a.m.