GRESID Subcommand (GENLOG command)

GRESID (Generalized Residual) calculates linear combinations of observed and expected cell frequencies as well as simple, standardized, and adjusted residuals.

  • The variables specified must be numeric, and they must contain coefficients of the desired linear combinations.
  • Variables specified as dependent or independent variables in the variable list cannot be specified on GRESID.
  • The generalized residual coefficient is not applied on a case-by-case basis. The weighted coefficient mean of the value for all cases in a cell is applied to that cell.
  • Each variable specified on the GRESID subcommand contains a single linear combination.
  • If multiple GRESID subcommands are specified, the last specification takes effect.

Example

COMPUTE GR_1=(MONTH LE 6).
COMPUTE GR_2=(MONTH GE 7).
GENLOG  MONTH WITH Z
 /GRESID=GR_1 GR_2
 /DESIGN=Z.
  • The first variable, GR_1, combines the first six months into a single effect; the second variable, GR_2, combines the rest of the months.
  • For each effect, GENLOG displays the observed and expected counts as well as the simple, standardized, and adjusted residuals.