I am trying to deduce why my data set is producing the error from line 614 throw(ErrorException("number of averaging steps > 10"))
I suspect it is due to my random structure (nested individuals in months) having sparse representation of the fixed factors in a Bernoulli GLMM.
Does 10 'mean' anything or is it just a suitable number of times to be certain that random values for u produce a deviance that is greater than the previously estimated deviance?
I don't understand Julia language very well, so I likely misunderstand how the code functions. But, inside the while-loop starting line 610, I don't see how obj varies across the 10 iterations of nhalf. I see where each value of u is averaged and mapped to beta but not where they are reassigned. It looks like obj would be the same for each iteration.
Unfortunately, I am running my Julia model via JuliaCall so I don't think I get the verbose output to verify.