fit.discrete(phy, data, data.names=NULL, lambda=FALSE, delta=FALSE, kappa=FALSE, linearchange=FALSE, exponentialchange=FALSE, tworate=FALSE, start.rate=1.0)
data(geospiza)
attach(geospiza)
gb<-as.factor(geospiza.data[,1]>4.2)
names(gb)<-rownames(geospiza.data)
fit.discrete(geospiza.tree, gb)
fit.discrete(geospiza.tree, gb, lambda=TRUE)
fit.discrete(geospiza.tree, gb, delta=TRUE)
fit.discrete(geospiza.tree, gb, kappa=TRUE)
fit.discrete(geospiza.tree, gb, linearchange=TRUE)
fit.discrete(geospiza.tree, gb, exponentialchange=TRUE)
fit.discrete(geospiza.tree, gb, tworate=TRUE)
Run the code above in your browser using DataLab