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.

610 GENLOG<br />

CSTRUCTURE Subcommand<br />

CSTRUCTURE specifies the variable that contains values for computing cell weights, such as<br />

structural zero indicators. By default, cell weights are equal to 1.<br />

• The specification must be a numeric variable.<br />

• Variables specified as dependent or independent variables in the variable list cannot be<br />

specified on CSTRUCTURE.<br />

• Cell weights are not applied on a case-by-case basis. The weighted mean for a cell is<br />

applied to that cell.<br />

• CSTRUCTURE can be used to impose structural, or a priori, zeros on the model. This<br />

feature is useful in specifying a quasi-symmetry model and in excluding cells from<br />

entering into estimation.<br />

• If multiple CSTRUCTURE subcommands are specified, the last specification takes effect.<br />

Example<br />

COMPUTE CWT=(HUSED NE WIFED).<br />

GENLOG HUSED WIFED WITH DISTANCE<br />

/CSTRUCTURE=CWT<br />

/DESIGN=HUSED WIFED DISTANCE.<br />

• The Boolean expression assigns CWT the value of 1 when HUSED is not equal to WIFED,<br />

and the value of 0 otherwise.<br />

• CSTRUCTURE imposes structural zeros on the diagonal of the symmetric crosstabulation.<br />

GRESID Subcommand<br />

GRESID (Generalized Residual) calculates linear combinations of observed and expected<br />

cell frequencies as well as simple, standardized, and adjusted residuals.<br />

• The variables specified must be numeric, and they must contain coefficients of the desired<br />

linear combinations.<br />

• Variables specified as dependent or independent variables in the variable list cannot be<br />

specified on GRESID.<br />

• The generalized residual coefficient is not applied on a case-by-case basis. The weighted<br />

coefficient mean of the value for all cases in a cell is applied to that cell.<br />

• Each variable specified on the GRESID subcommand contains a single linear combination.<br />

• If multiple GRESID subcommands are specified, the last specification takes effect.<br />

Example<br />

COMPUTE GR_1=(MONTH LE 6).<br />

COMPUTE GR_2=(MONTH GE 7).<br />

GENLOG MONTH WITH Z<br />

/GRESID=GR_1 GR_2<br />

/DESIGN=Z.<br />

• The first variable, GR_1, combines the first six months into a single effect; the second<br />

variable, GR_2, combines the rest of the months.

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

Saved successfully!

Ooh no, something went wrong!