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.

Example<br />

Example<br />

Example<br />

Example<br />

LOGLINEAR 819<br />

• All subcommands can be used more than once and, with the exception of the DESIGN<br />

subcommand, are carried from model to model unless explicitly overridden.<br />

• If the last subcommand is not DESIGN, LOGLINEAR generates a saturated model in addition<br />

to the explicitly requested model(s).<br />

LOGLINEAR JOBSAT (1,2) ZODIAC (1,12) /DESIGN=JOBSAT, ZODIAC.<br />

• The variable list specifies two categorical variables, JOBSAT and ZODIAC. JOBSAT has<br />

values 1 and 2. ZODIAC has values 1 through 12.<br />

• DESIGN specifies a model with main effects only.<br />

LOGLINEAR DPREF (2,3) RACE CAMP (1,2).<br />

• DPREF is a categorical variable with values 2 and 3. RACE and CAMP are categorical variables<br />

with values 1 and 2.<br />

• This is a general loglinear model because no BY keyword appears. The design defaults to<br />

a saturated model that includes all main effects and interaction effects.<br />

LOGLINEAR GSLEVEL (4,8) EDUC (1,4) SEX (1,2)<br />

/DESIGN=GSLEVEL EDUC SEX.<br />

• GSLEVEL is a categorical variable with values 4 through 8. EDUC is a categorical variable<br />

with values 1 through 4. SEX has values 1 and 2.<br />

• DESIGN specifies a model with main effects only.<br />

LOGLINEAR GSLEVEL (4,8) BY EDUC (1,4) SEX (1,2)<br />

/DESIGN=GSLEVEL, GSLEVEL BY EDUC, GSLEVEL BY SEX.<br />

• The keyword BY on the variable list specifies a logit model in which GSLEVEL is the dependent<br />

variable and EDUC and SEX are the independent variables.<br />

• DESIGN specifies a model that can test for the absence of joint effect of SEX and EDUC<br />

on GSLEVEL.

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

Saved successfully!

Ooh no, something went wrong!