Someone asked a question on Stack Overflow where they noted a difference between Minitab and R (glm
) results for the variance-covariance matrix of the parameters, for a probit-link binomial model.
- Minitab's algorithm is not well described, but fitting the same model in
glmmTMB
(which uses general MLE rather than IRLS, and inverts the Hessian estimated from finite differences of the (automatically generated) gradient at the MLE) gives very close answers to the Minitab result. - The coefficient estimates are very similar
glm()
instead uses the QR decomposition based on the weighted least-squares solution at the last step of an IRLS algorithm (see here, here).- The data set is very small (2 parameters estimated from 4 observations), so I'd expect any asymptotic assumptions to be pretty poor
- refitting the same model with the canonical logit link instead of the probit gives very similar answers between
glm
(IRLS) andglmmTMB
(MLE/Hessian)
I know that the Fisher information matrix is equivalent to the Hessian only in the case of a canonical link (see here); I believe that optimization based on these two approaches reaches the same point, but perhaps the estimate of the covariance matrices still differs?
glm()
vsglmmTMB()
differences in point estimates for the logit case, where the covariance matrices are very similar ...) $\endgroup$episolon=1e-20
forglm
, and while this moves the point estimates significantly closer to Minitab's in terms of relative difference, it moves the the vcov differences in a very minimal amount in terms of relative difference. So I don't think it's just differences in precision. $\endgroup$