Open lizzieinvancouver opened 2 years ago
see also this OSPREE issue
I started on this several weeks okay in an ospree repo commit (see here) ... but I seem just to have recapitulated the issue Luke Harmon mentioned ...
So, next step would be to add the tree transformation to the Stan code, though Will thought you could not pull the whole thing outside of the matrix (as I did, copying Mike B.) ... but I sort of think you can.
Suggested by JD on 12 June 2022:
I asked: Is there still a sigma term that all elements are also multiplied by?
.. and then I pulled together some notes in October when meeting with Mike Betancourt.
"Delta transform: The node heights of the phylogeny are raised to the power delta (Pagel 1999). Delta > 1 increases the length of external nodes and thus models a scenario where rates of evolution increase through time. Conversely, delta < 1 decreases the length of external nodes and thus models a scenario where rates of evolution decrease through time. Delta = 1 is a Brownian motion model (so the tree is returned unchanged)."
From https://wiki.duke.edu/display/AnthroTree/7.3.2+Branch+length+transformations+in+R
And issues with it being correlated with sigma^2: https://github.com/traitecoevo/modeladequacy/issues/58
See tempo of evolution in "Inferring the historical patterns of biological evolution' (Pagel 1999, Nature).
JD explained (over email during this time):
I asked, "Yes, but I can't tell what that means that I need to do to the matrix. Do you think I multiply all the off diagonal values by 1^delta? That's my best guess so far" ... and he replied: