27.03.2013 Views

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

722 HILOGLINEAR<br />

• You can specify the name of a variable whose values are cell weights, or provide a matrix<br />

of cell weights enclosed in parentheses.<br />

• If you use a variable to specify cell weights, you are allowed only one CWEIGHT subcommand.<br />

• If you specify a matrix, you must provide a weight for every cell in the contingency table,<br />

where the number of cells equals the product of the number of values of all variables.<br />

• Cell weights are indexed by the values of the variables in the order in which they are specified<br />

on the variable list. The index values of the rightmost variable change the most<br />

quickly.<br />

• You can use the notation n*cw<br />

to indicate that cell weight cw is repeated n times in the<br />

matrix.<br />

Example<br />

HILOGLINEAR V1(1,2) V2(1,2) V3(1,3)<br />

/CWEIGHT=CELLWGT<br />

/DESIGN=V1*V2, V2*V3, V1*V3.<br />

• This example uses the variable CELLWGT to assign cell weights for the table. Only one<br />

CWEIGHT subcommand is allowed.<br />

Example<br />

HILOGLINEAR V4(1,3) V5(1,3)<br />

/CWEIGHT=(0 1 1 1 0 1 1 1 0)<br />

/DESIGN=V4, V5.<br />

• The HILOGLINEAR command sets the diagonal cells in the model to structural zeros. This<br />

type of model is known as a quasi-independence model.<br />

• Because both V4 and V5 have three values, weights must be specified for nine cells.<br />

• The first cell weight is applied to the cell in which V4 is 1 and V5 is 1; the second weight<br />

is applied to the cell in which V4 is 1 and V5 is 2; and so on.<br />

Example<br />

HILOGLINEAR V4(1,3) V5(1,3)<br />

/CWEIGHT=(0 3*1 0 3*1 0)<br />

/DESIGN=V4,V5.<br />

• This example is the same as the previous example except that the n*cw notation is used.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!