Example (CSLOGISTIC command)

Suppose that dependent variable Z and factor A each have three levels.

CSLOGISTIC z BY a
  /PLAN FILE='/survey/myfile.csplan'
  /MODEL a
  /CUSTOM LABEL = ‘Effect A’
     LMATRIX = a 1 0 -1; 
               a 0 1 -1
  • The dependent variable Z has three categories, so there will be two logits.
  • The syntax specifies a model with an intercept and a main effect for factor A and a custom hypothesis test of effect A.
  • Because the ALL option is not used on the LMATRIX keyword, the same set of contrast coefficients for the parameters will be used across both logits. That is, the resulting L matrix is block diagonal with the same 2-by-4 matrix of coefficients in each block. The equivalent LMATRIX keyword using the ALL option is as follows:
     LMATRIX = ALL 0 1  0 -1 0 0  0  0;
               ALL 0 0  1 -1 0 0  0  0;
               ALL 0 0  0  0 0 1  0 -1;
               ALL 0 0  0  0 0 0  1 -1