My response variable is a proportion of time spent in an activity. My original dataset looks like this:
name jdate start duration touristeffort feeding fp 1 ANUBIS 24 11.23333 20.00000 9.483333 16.683333 N 2 ANUBIS 26 15.53333 20.00000 2.466667 9.716667 N 3 ANUBIS 27 7.25000 12.16667 0.000000 2.616667 N 4 ANUBIS 30 9.70000 20.00000 48.000000 14.300000 N 5 ANUBIS 30 10.15000 20.00000 19.200000 6.600000 N 6 ANUBIS 30 12.64167 20.00000 2.500000 14.616667 N
The model code I thought would be appropriate was following the centring and scaling of the fixed effects (ie. touristeffortc, jdatec, startc, fpc) was:
cm1<-glmer(feeding/duration~touristeffortc+jdatec+startc+fpc+(1|name), weights=duration, family=binomial, data=turtleF)
However, I can't seem to fix my model in any way to remove the warning message:
Warning message: In eval(family$initialize, rho) : non-integer #successes in a binomial glm!
I've tried using the quasibinomial family or including
as my response instead of including weights, but neither of these changes resolves the error message problem.
Is binomial the family to use or is this error message telling me to consider a different family type? If anyone can tell me how to fix my code or data to get around this issue it would be so appreciate!
Thanks for your help in advance.