fitSPVAR(bt, init=c(2, .2, .1))
fitEXVAR(bt, init=c(.3, .01, 1))
fitBOTHVAR(bt, init=c(.3, .5, .1, .5))
optimize
. Numerical integration uses integrate
.
You can use the equations from Rabosky & Lovette (2008) with your parameter estimates to generate a plot of the speciation and extinction
through time curves, or you can use the function plotRate
Rabosky, D. L. and I. J. Lovette. 2008. Explosive evolutionary radiations: decreasing speciation or increasing extinction through time? Evolution, doi:10.1111/j.1558-5646.2008.00409.x
data(warblers)
fitSPVAR(warblers)
fitEXVAR(warblers)
fitBOTHVAR(warblers)
Run the code above in your browser using DataLab