data(Anolis.data)
geography.object<-Anolis.data$geography.object
pPC1<-Anolis.data$data
phylo<-Anolis.data$phylo
#Fit three models without biogeography to pPC1 data
MC.fit<-fit_t_comp(phylo,pPC1,model="MC")
DDlin.fit<-fit_t_comp(phylo,pPC1,model="DDlin")
DDexp.fit<-fit_t_comp(phylo,pPC1,model="DDexp")
#Now fit models that incorporate biogeography, NOTE these models take longer to fit
MC.geo.fit<-fit_t_comp(phylo,pPC1,model="MC",geography.object=geography.object)
DDlin.geo.fit<-fit_t_comp(phylo,pPC1,model="DDlin",geography.object=geography.object)
DDexp.geo.fit<-fit_t_comp(phylo,pPC1,model="DDexp",geography.object=geography.object)
Run the code above in your browser using DataLab