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 plotRatedata(warblers)
fitSPVAR(warblers)
fitEXVAR(warblers)
fitBOTHVAR(warblers)
Run the code above in your browser using DataLab