[R-sig-phylo] Comparing DIC of phylogenetic and non-phylogenetic GLMM run with MCMC (MCMCglmm)

2018-06-21 Thread jonnations
Hi Liam, I don't have the exact answer you are looking for, but I would highly recommend the brms package in R. It is incredibly flexible and has excellent diagnostic tools like LOO and WAIC that are easy to use and interpret for model selection. I think it would work well for the models you prese

Re: [R-sig-phylo] phylogenetic correction for multiple samples per species along an ecological gradient

2018-08-01 Thread jonnations
You will want to try Bayesian mixed modeling which can handle your species # problem by using “species” as a group level (i.e. “random”) effect. I would recommend r packages brms and MCMCglmm and their vignettes. Both have detailed “phylo” examples. Maybe check out the r-sig-mixed-model listserv a

Re: [R-sig-phylo] PGLS-like model proportional data & zero inflation

2019-10-08 Thread jonnations
Hi, The great package brms has zero and zero-one inflated distributions available (poisson and beta I believe). There is a phylogenetic vignette with the package, and you can run those models with any available distribution. Jon Nations On Tue, Oct 8, 2019 at 5:02 AM wrote: > Send R-sig-phylo

Re: [R-sig-phylo] R-sig-phylo Digest, Vol 148, Issue 1

2020-05-07 Thread jonnations
Hi Charles, I’m sorry... I don’t have a solution to your plotting issues, but here are a couple of ideas. I know there are two ggplot2 extension packages that plot or wrangle node based graphs: ggraph and tidygraph. Both were written by the same developer. ggraph plots relational or network data i

Re: [R-sig-phylo] hurdle models

2021-08-24 Thread jonnations
Hi Ted, The R library brms had many distributional families including a log-normal hurdle distribution. I think this is the one you want as it sounds like you have a continuous, positive horn length measurement along with your animals that lack horns. It looks like this family has an extra “hu” pa