You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A visualization of the ancestral states estimated under the BiSSE model. Code for this plot can be found in [the BiSSE tutorial]({{ base.url }}/tutorials/sse/bisse).
318
+
{% endfigcaption %}
319
+
{% endfigure %}
339
320
340
-
{{ hisse_script | snippet:"block#", "8" }}
321
+
These ancestral states largely agree with the ancestral state estimation in {% cite Slater2015 %}, which is a good
322
+
sign. The clusters of hypercarnivory are sensible considering the tree in question, and there are not a lot of
323
+
confounding nodes.
341
324
342
-
Now the character in `data_exp` has four states.
343
-
By default, RevBayes sets up state numbers to follow the order of observed, then hidden.
344
-
So here, states 1 and 2 correspond to 0A and 1A, and states 3 and 4 to 0B and 1B.
325
+
Note that there are reasonably few transitions to and from hypercarnivory (state 0), which should spell caution
326
+
when interpreting the results of the model. This illustrates an important point about the signal for state-dependent
327
+
diversification: the sample size for these analyses is not the number of species in a tree, but the number of state
328
+
transitions present in that group's history {% cite Maddison2006 %}. This should be considered, together with our
329
+
remarks on sampled ancestors in the introduction, by any researcher hoping to implement a serially-sampled SSE
330
+
analysis for their data. We reiterate that this tutorial should be seen as illustrative only, and the conclusions
331
+
drawn herein about the history of diet (or the effect of diet on diversification) in Canidae should not be
345
332
346
-
To set up our speciation, extinction, and fossil sampling rates, we follow the exact same procedure as in the
347
-
BiSSE case, but with `num_rates` rates instead.
333
+
All that said, let us take a look at our rate estimates. Note that given the naming convention in our tutorial,
334
+
and our desire to also plot fossil sampling rate `psi`, the call to `processSSE` should be something like
348
335
349
-
{{ hisse_script | snippet:"block#", "9-13" }}
350
-
351
-
Note that this sets each rate to be independent.
352
-
While that is the most flexible set up, some analyses might run into "label-swapping" issues.
353
-
Label-swapping occurs because the likelihood of the model does not change if the states A and B are switched,
354
-
since there is no data associated with those states.
355
-
As such, the assignment of each state might switch throughout the MCMC, making it so that each rate parameter's
356
-
posterior distribution is actually a mixture between the corresponding rates.
357
-
If you encounter such problems in your analyses, see [the HiSSE tutorial]({{ base.url }}/tutorials/sse/hisse) for
358
-
a way to set rates that guarantees there will be no label-swapping (sacrificing a small amount of flexibility in
359
-
the process).
360
-
361
-
To set up the rate matrix, we can create variables for `q_obs` and `q_hidden`, corresponding to $q_{01}$ and \
362
-
$q_{10}$, and $q_{AB}$ and $q_{BA}$ respectively.
363
-
We can then use `fnHiddenStateRateMatrix` to build the full rate matrix.
Visualizing posterior samples of diversification and sampling rates associated with diet in Canidae. Code for this plot can be found in [the BiSSE tutorial]({{ base.url }}/tutorials/sse/bisse).
349
+
{% endfigcaption %}
350
+
{% endfigure %}
351
+
352
+
We do not recover a strong signal of trait-dependent diversification, but the diversification rate for
353
+
non-hypercarnivorous canids (state $1$) seems to be slightly higher (posterior probability of
354
+
$\lambda_1 - \mu_1 > \lambda_2 - \mu_2$ is around 0.65). So there is no support one way or the other for
355
+
the hypothesis that hypercarnivorous canids have higher extinction and speciation rates. A more complete
356
+
dataset is likely to provide better grounds for testing this and other complex patterns.
357
+
358
+
In this tutorial, you learned how to set up, run, and visualize the results of a serially-sampled BiSSE
359
+
analysis. While we only explored the BiSSE model, you can make use of the many SSE functions in RevBayes
360
+
to apply any SSE model to your dataset by modifying the code in the appropriate tutorial to reflect the
0 commit comments