Skip to content

WLS

Weight estimation: weighted least squares with weights 1/source^power, choosing the power by maximum likelihood.

WLS dep WITH predictors /SOURCE=var /POWER=-2 TO 2 BY .5 | /WEIGHT=var [/NOCONSTANT] [/PRINT=BEST|ALL] [/SAVE=WEIGHT].
Kind Procedure (reads data, produces output)
Body main /SUBCOMMAND[=] …
Changes data yes, undoable
Subcommands /CONSTANT, /MISSING, /NOCONSTANT, /POWER, /PRINT, /SAVE, /SOURCE, /WEIGHT
Menu Analyze ▸ Regression
Slot: Dependent 1–1 variable(s); levels: scale; types: numeric
Slot: Independent(s) 1+ variable(s); levels: nominal, ordinal, scale; types: numeric
Slot: Weight Variable (source) 0–1 variable(s); levels: nominal, ordinal, scale; types: numeric
WLS spending WITH income /SOURCE=income /POWER=0 TO 3 BY 0.5 /SAVE=WEIGHT.
  • The log-likelihood includes the Jacobian of the weights, so powers are directly comparable.

REGRESSION, TSLS


Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.