Reputation: 11
Here's my model:
revisitsm0 <- glmmTMB(cbind(revisits_per_bout, tot_visits_bout - revisits_per_bout) ~ experiment_type * foraging_bout + (1|colony/bee_id), data=table_training, family=binomial)
My model doesn't fit so well because of dispersion, so I square-rooted my variables "revisits_per_bout" and "tot_visits_bout", hence giving me non-integers.
Since quasibinomial is not available in GLMMTMB, how can I fix this?
Thanks!
Upvotes: 0
Views: 1044
Reputation: 226532
This really belongs on CrossValidated, because it is a question of "what to do" more than "how to do it".
family = "betabinomial"
should be the simplest way to handle overdispersion (I would not recommend transforming the response variable. It is a good rule of thumb that if you have count-type (non-negative integer) responses, it's best to model them on the original scale).sqrt(abs(pearson_resids))
vs. the predictor of interest) to assess this, you can use family = "betabinomial"
plus a dispformula =
argumentUpvotes: 3