Skip to content
Prev 9814 / 20628 Next

optimizers for mixed models

On 3/14/2013 10:08 AM, Ben Bolker wrote:
I'll give that a try.
I'm not sure you want it, since it does involve our hand-rolled 
solution.  You'd have to deal with the code as well as the data.
It got really, really close (e.g., tanh(7) -> rho= 0.9999983), so it's 
probably (1), even though that's hard to believe.  I wish I could 
identify exactly what about the data and the model are driving that.  
The data gave some of the standard mixed effects model (SAS glimmix) 
some trouble, but others (SAS nlmixed) were OK.
Optimization was originally via a custom optimizer using rho.  The 
custom optimizer did not incorporate bounds, and blew up when it got rho 
outside of [-1, 1].  So we switched to atanh(rho) as the target of 
optimization.  However, for some simulated datasets that failed to 
converge, as atanh(rho) marched slowly off toward infinity.  We switched 
to optim with bounds to cut that process off.

So perhaps we should go back to rho, but using optim or the other 
bounded optimizers you suggested.

So the fact that atanh(rho) is unbounded is a feature from some 
perspectives, but a bug from others.
Variances going to zero could also screw up estimates of the 
correlation, but the problem cases I've examined don't seem to have that 
particular problem.