runs, but gives an estimate larger than 0 for the variance component. Also, the intercept estimate is slightly off (it should be log(1/9)), although that difference only shows up in the 4th decimal place, so I would consider that negligible.
Switching to Nelder-Mead gives the expected result:
I just noticed the following when trying to fit a model where the response is constant:
Throws error (
Error: Response is constant
). But:runs, but gives an estimate larger than 0 for the variance component. Also, the intercept estimate is slightly off (it should be
log(1/9)
), although that difference only shows up in the 4th decimal place, so I would consider that negligible.Switching to Nelder-Mead gives the expected result:
Now the variance component is estimated to be =~ 0.
This is obviously a degenerate case, but reporting it regardless in case you are interested.