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 theLMATRIX
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 equivalentLMATRIX
keyword using theALL
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