DetPass: determinant of the matrix

Description Usage Arguments Details Value Author(s) References Examples

Description

Calculate the determinant of the matrix and check whether it is positive.

Usage

1
2
	DetPass(phy)
	

Arguments

phy

an object of class 'phylo'

Details

This functon first calculates variance covariance matrix C for the tree. It then calculates the determinant of the C, 0.0001*C, and 1000*C and verifies whether all the three determinants are positive and finite. If yes, a TRUE value is return and the C matrix is good for further use.

Value

a TRUE/FALSE value.

Author(s)

Brian O'Meara, Dwueng-Chwuan Jhwueng.

References

Jhwueng D.C. and O'Meara B.C. 2015. Studying trait evolution in hybrid species on phylogenetic networks. Submitted.

Examples

1
2
3
4
5
6
	library(ape)
	##simulate a tree of 5 taxa
	phy<-rtree(5)
	#check whether the determiant is positve
	DetPass(phy)
	

BMhyd documentation built on May 2, 2019, 8:27 a.m.

Related to DetPass in BMhyd...