That error is very common with the log binomial model and occurs because the log link doesn't insure that predicted values are between 0 and 1 as required by the binomial distribution That is why I suggest avoiding this model. This error is discussed in some detail in the note on relative risks that you referred to earlier. See the section on the log binomial model.
... View more
> it doesn't work for subjects who only had 1 ob.
It works exactly as you asked. As @mkeintz said, make sure your requirements are described properly when asking a question.
Glad you got what you need at the end.
... View more
Hello Tom, thank you so much! I just tried your code, it worked perfectly!! Your way is absolutely easy to understand and follow! Thanks a lot!!
... View more