Fitting mixture of binomials

Thanks cluhmann. I hadn’t thought to do the mixture in the p variable itself, though I have done it in other cases. This is very helpful.

My last question is – is there a way to do your second setup with a Mixture instead of within a binomial? The reason i ask is that a mixture is so generic you could change the example to any two types of distributions whereas this approach is only valid for 2 binomials. Thinking forward to the future, at some point these two distributions may expand in my model to something more complex.

Or, is the Mixture object not set up for this and it has to be done this way?

Thanks!