phylosig(tree, x, method="K", test=FALSE, nsim=1000, se=NULL, start=NULL,
control=list())
"phylo"
format."K"
or "lambda"
."K"
or "lambda"
.method="K"
, number of simulations in randomization test.method="lambda"
and se!=NULL
.optim
. Only used in method="lambda"
and se!=NULL
.(method="K")
, a list with the following components:
(method="lambda")
, a list with the following components:
lambda=0.0
.optim
).optim
, for estimation with sampling error only.optimize
with the range of lambda set between 0 and the theoretical upper limit of lambda (determined by the relative height of the most recent internal node on the tree).
Ives, A. R., P. E. Midford, T. Garland Jr. (2007) Within-species variation and measurement error in phylogenetic comparative biology. Systematic Biology, 56, 252-270.
Pagel, M. (1999) Inferring the historical patterns of biological evolution. Nature, 401, 877-884.
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.
tree<-pbtree(n=100)
x<-fastBM(tree)
phylosig(tree,x,method="lambda",test=TRUE)
Run the code above in your browser using DataLab