lamho86 / phylolm

GNU General Public License v2.0
30 stars 12 forks source link

Phylolm functionality with emmeans/emtrends #34

Open iausprey opened 3 years ago

iausprey commented 3 years ago

Hello!

Is it possible to make phylolm models compatible with emmeans and emtrends? This is necessary to interpret output with multiple categorical variables and interactions.

Thank you, Ian

MarcRieraDominguez commented 1 year ago

Hello! Are there any news on this?

I think adding compatibility with emmeans() is particularly valuable, as it would presumably allow to combine the calculation of contrasts (etc) with multimodel inference, since emmeans() is compatible with objects of class "averaging" (obtained with MuMIn::dredge()).

On a side note, marginaleffects now allows to calculate estimated marginal means (https://github.com/vincentarelbundock/marginaleffects/issues/736). However, marginaleffects is not compatible with models of class "averaging", so the calculation of contrasts cannot currently be combined with model averaging.