I am trying to model the number of successes in data where the number of trials is not fixed. I am trying to fit a binomial generalised mixed effects model, with the number of trials as an 'offset' variable, like so:
glmer(cbind(number of successes, number of failures) ~
offset(number of trials) + other fixed and random
effects, data = data, family = binomial())
Is this the correct way to use offset?