Open fconstancias opened 2 years ago
Hi Florentin!
I fixed this particular bug in a new branch https://github.com/david-barnett/microViz/tree/tax-model-lmer-fix
Feel free to install from there and play around, you'll probably need to load broom.mixed or even explicitly provide a tidier function for the lmer models in the taxatree_models2stats
fun
argument.
I'm reluctant to push this fix to the main branch at the moment as I have not tested out mixed models with tax_model and taxatree_models and don't want to encourage its general use before I do so.
I likely will do this in the next month or so, but I would be grateful to hear more from you if you get this working or encounter further problems 🙂
Hi @david-barnett,
Thanks a lot. I will give it a try when I have a bit of time and will keep you updated.
Best
Hi @david-barnett,
Thanks again for your effort in developping the package. How would you recommend to run mixed models thourgh
taxatree_models
?Following your tutorial, I am not able specify type = lmer
Using the
R
random effect syntax andtype = lm
does not generate any issue.However, the random effect is not evaluated - which is not surprising.
Thanks.