The GLIMMIX procedure forms the log likelihoods of generalized linear models as

where is the log likelihood contribution of the ith observation with weight and is the value of the frequency variable. For the determination of and , see the WEIGHT and FREQ statements. The individual log likelihood contributions for the various distributions are as follows.






. See Ferrari and CribariNeto (2004).

.




where and are the events and trials in the events/trials syntax, and . .

.

.




.

.

.If you specify DIST=LOGNORMAL with response variable Y
, the GLIMMIX procedure assumes that . Note that the preceding density is not the density of Y.

.




. For a given k, the negative binomial distribution is a member of the exponential family. The parameter k is related to the scale of the data, because it is part of the variance function. However, it cannot be factored from the variance, as is the case with the parameter in many other distributions. The parameter k is designated as “Scale” in the “Parameter Estimates” table of the GLIMMIX procedure.

.

.






.
Define the parameter vector for the generalized linear model as , if , and as otherwise. denotes the fixedeffects parameters in the linear predictor. For the negative binomial distribution, the relevant parameter vector is . The gradient and Hessian of the negative log likelihood are then

The GLIMMIX procedure computes the gradient vector and Hessian matrix analytically, unless your programming statements involve functions whose derivatives are determined by finite differences. If the procedure is in scoring mode, is replaced by its expected value. PROC GLIMMIX is in scoring mode when the number n of SCORING=n iterations has not been exceeded and the optimization technique uses second derivatives, or when the Hessian is computed at convergence and the EXPHESSIAN option is in effect. Note that the objective function is the negative log likelihood when the GLIMMIX procedure fits a GLM model. The procedure performs a minimization problem in this case.
In models for independent data with known distribution, parameter estimates are obtained by the method of maximum likelihood. No parameters are profiled from the optimization. The default optimization technique for GLMs is the NewtonRaphson algorithm, except for Gaussian models with identity link, which do not require iterative model fitting. In the case of a Gaussian model, the scale parameter is estimated by restricted maximum likelihood, because this estimate is unbiased. The results from the GLIMMIX procedure agree with those from the GLM and REG procedure for such models. You can obtain the maximum likelihood estimate of the scale parameter with the NOREML option in the PROC GLIMMIX statement. To change the optimization algorithm, use the TECHNIQUE= option in the NLOPTIONS statement.
Standard errors of the parameter estimates are obtained from the inverse of the (observed or expected) second derivative matrix .