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.

WLS<br />

Overview<br />

Options<br />

WLS is available in the Regression Models option.<br />

WLS [VARIABLES=]dependent varname WITH independent varnames<br />

[/SOURCE=varname]<br />

[/DELTA=[{1.0** }]]<br />

{value list }<br />

{value TO value BY value}<br />

[/WEIGHT=varname]<br />

[/{CONSTANT**}<br />

{NOCONSTANT}<br />

[/PRINT={BEST}]<br />

{ALL }<br />

[/SAVE = WEIGHT]<br />

[/APPLY[=’model name’]]<br />

**Default if the subcommand or keyword is omitted.<br />

Example<br />

WLS VARY WITH VARX VARZ<br />

/SOURCE=VARZ<br />

/DELTA=2.<br />

WLS (weighted least squares) estimates regression models with different weights for<br />

different cases. Weighted least squares should be used when errors from an ordinary regression<br />

are heteroscedastic—that is, when the size of the residual is a function of the magnitude<br />

of some variable, termed the source.<br />

The WLS model is a simple regression model in which the residual variance is a function<br />

of the source variable, up to some power transform indicated by a delta value. For fuller<br />

regression results, save the weights produced by WLS and specify that weight variable on<br />

the REGWGT subcommand in REGRESSION.<br />

Calculated and Specified Weights. WLS can calculate the weights based on a source variable<br />

and delta values (subcommands SOURCE and DELTA), or it can apply existing weights<br />

contained in a series (subcommand WEIGHT). If weights are calculated, each weight value<br />

is calculated as the source series value raised to the negative delta value.<br />

New Variables. You can change NEWVAR settings on the TSET command prior to WLS to<br />

evaluate the regression coefficients and log-likelihood function without saving the weight<br />

variable, or save the new values to replace the values saved earlier, or save the new values<br />

1665

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

Saved successfully!

Ooh no, something went wrong!