Hello all,
I have been trying to run BioGeoBEARS using the manual modification of the states list, and I kept getting an error that the likelihood was likely too small, indicating the change in ancestral ranges over time was likely impossible. I redid this and got the code to work, but now the tips are showing to have the wrong states (i.e., I assigned a tip to state P, and the final models say it has a range of B). I have 6 tips in the tree, each tip occupying 1 of 5 ranges (D P C S B). Below is the geo.file
6 5 (D P C S B)
Taxon1 10000
Taxon2 01000
Taxon3 00100
Taxon4 00010
Taxon5 00001
Taxon6 00010
When I check the ranges from the 'tipranges' object, I confirm the above ranges by taxon.
I modified the state list by removing some nonadjacent areas by running the following (along with all the other lines from the tutorial on manual editing of these states):
nonadjacent=c("_","DC","DS","DB","PC","PS","PB","CB","DPC","DPS","DPB","DCS","DCB","DSB","PCS","PSB","CSB")
My question is, would this have occurred when I ran the code block to modify the state list?
Also, I have one other small question:
Do I need to change include_null_range to TRUE or FALSE for all of my models? Because I noticed in the resulting PDFs, there are ranges that should have been omitted in the list above (e.g., CSB). I currently have them set to TRUE, and when I set them to FALSE it seems to fix the issue (which sounds obvious given the name of the option here), but I want to make sure I am not messing anything up with the model, as I noticed in the tutorial this is set to TRUE. Is there a reason for this, or was that just for the sake of the example and I should set all of mine to FALSE?
Thank you in advance! I've attached my script, and a photo with the taxa shown and their correct ranges parenthetically.
Best,
Justin