This section applies to the following procedures: GLIMMIX and LOGISTIC.
The MARGINS statement computes predictive margins of fixed effects. You can compute predictive margins for any effect in the MODEL statement that involves only classification variables.
The predictive margin for a specific level (group) of a fixed effect represents the average predicted response if all the observations in the data set were in that group (Lane and Nelder 1982; Chang, Gelman, and Pagano 1982). You compute the predictive margin by fixing this effect at the specified level for all observations and averaging the predicted responses. The standard error of the predictive margin is computed by using the delta method.
For example, consider the model
where g is the link function; ,
, is the effect of the ith level of the classification effect
; and
is the covariate for the jth observation in the ith level of the effect
,
. Denote the number of observations in the ith level as
, denote the frequency of the jth observation in the ith level as
and the total frequency as
, and denote the estimated model parameters at level k of effect
as
. Then the predictive margin for level k of effect
is
Note that when the USEWEIGHT=TRUE option is in effect, is the product of the frequency and weight of the observation.
By definition, predictive margins are covariate-adjusted marginal means, as are LS-means. These two approaches are discussed in the section Predictive Margins Compared with LS-Means.
Lane and Nelder (1982) and Chang, Gelman, and Pagano (1982) discuss how to use predictive margins to standardize predictions that are based on nonlinear regression models. Graubard and Korn (1999) show the computation of predictive margins in survey analysis.