Skip to content

TSLS

Two-stage least-squares (instrumental variables) regression; SPSS’s 2SLS.

TSLS dep WITH predictors /INSTRUMENTS=varlist [/NOCONSTANT] [/PRINT=COV] [/SAVE=PRED RESID].
Kind Procedure (reads data, produces output)
Body main /SUBCOMMAND[=] …
Changes data yes, undoable
Subcommands /CONSTANT, /INSTRUMENTS, /MISSING, /NOCONSTANT, /PRINT, /SAVE
Menu Analyze ▸ Regression
Slot: Dependent 1–1 variable(s); levels: scale; types: numeric
Slot: Explanatory 1+ variable(s); levels: nominal, ordinal, scale; types: numeric
Slot: Instrumental 1+ variable(s); levels: nominal, ordinal, scale; types: numeric
TSLS demand WITH price income /INSTRUMENTS=cost income /SAVE=PRED RESID.
  • List exogenous predictors on /INSTRUMENTS too. At least as many instruments as predictors are required.
  • SPSS’s 2SLS command converts to TSLS (a command name cannot start with a digit in OrcStat syntax).

REGRESSION, WLS


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