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 />

WLS 1669<br />

WLS SHARES WITH PRICE<br />

/WEIGHT=WGT_1.<br />

• This WLS command uses the weights contained in variable WGT_1 to weight cases.<br />

CONSTANT and NOCONSTANT Subcommands<br />

Specify CONSTANT or NOCONSTANT to indicate whether a constant term should be estimated<br />

in the regression equation. The specification of either subcommand overrides the CONSTANT<br />

setting on the TSET command for the current procedure.<br />

• CONSTANT is the default and specifies that the constant term is used as an instrument.<br />

• NOCONSTANT eliminates the constant term.<br />

SAVE Subcommand<br />

SAVE saves the weight variable generated during the current session to the end of the working<br />

data file. The default name WGT_n will be generated, where n increments to make the variable<br />

name unique. The only specification on SAVE is WEIGHT. The specification overrides<br />

the NONE or the default CURRENT setting on NEWVAR for the current procedure.<br />

PRINT Subcommand<br />

PRINT can be used to override the PRINT setting on the TSET command for the current procedure.<br />

Two keywords are available.<br />

BEST Display coefficients for the best weight only. This is the default.<br />

ALL Display coefficients for all weights.<br />

APPLY Subcommand<br />

• The APPLY subcommand allows you to use a previously defined WLS model without<br />

having to repeat the specifications.<br />

• The only specification on APPLY is the name of a previous model in quotes. If a model<br />

name is not specified, the model specified on the previous WLS command is used.<br />

• To change one or more model specifications, specify the subcommands of only those<br />

portions you want to change after the APPLY subcommand.<br />

• If no variables are specified on the command, the variables that were originally specified<br />

with the model being reapplied are used.

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

Saved successfully!

Ooh no, something went wrong!