Example (CSLOGISTIC command)

Suppose that dependent variable Y is binary; factor A has two levels; and factor B has three levels coded 1, 2, and 3.

CSLOGISTIC y BY a b WITH x
  /PLAN FILE='/survey/myfile.csplan'
  /MODEL a b a*b x
  /ODDSRATIOS FACTOR=[a] CONTROL=[b(1)]
  /ODDSRATIOS FACTOR=[a] CONTROL=[b(2)]
  /ODDSRATIOS FACTOR=[a] CONTROL=[b(3)].
  • The default reference category (the highest category) is used for the dependent variable.
  • The model includes the intercept, main effects for factors A and B, the A*B interaction effect, and the covariate X.
  • Odds ratios are requested for factor A. Assuming the A*B interaction effect is significant, the odds ratio for factor A will differ across levels of factor B. The specified syntax requests three odds ratios for factor A; each odds ratio is computed at a different level of factor B.