# LOGISTIC REGRESSION

`LOGISTIC REGRESSION` is available in SPSS® Statistics Standard Edition or the Regression Option.

`LOGISTIC REGRESSION` regresses a dichotomous dependent variable on a set of independent variables. Categorical independent variables are replaced by sets of contrast variables, each set entering and leaving the model in a single step.

``````LOGISTIC REGRESSION VARIABLES = dependent var
[WITH independent varlist [BY var [BY var] ... ]]

[/CATEGORICAL = var1, var2, ... ]

[/CONTRAST (categorical var) = [{INDICATOR [(refcat)]    }]]
{DEVIATION [(refcat)]    }
{SIMPLE [(refcat)]       }
{DIFFERENCE              }
{HELMERT                 }
{REPEATED                }
{POLYNOMIAL[({1,2,3...})]}
{metric  }
{SPECIAL (matrix)        }

[/METHOD = {ENTER**       }   [{ALL    }]]
{BSTEP [{COND}]}    {varlist}
{LR  }
{WALD}
{FSTEP [{COND}]}
{LR  }
{WALD}

[/SELECT = {ALL**                 }]
{varname relation value}

[/{NOORIGIN**}]
{ORIGIN    }

[/ID = [variable]]

[/PRINT = [DEFAULT**] [SUMMARY] [CORR] [ALL] [ITER [({1})]] [GOODFIT]]
{n}
[CI(level)]

[/CRITERIA = [BCON ({0.001**})] [ITERATE({20**})] [LCON({0**   })]
{value  }            {n   }         {value }

[PIN({0.05**})] [POUT({0.10**})] [EPS({.00000001**})]]
{value }         {value }        {value      }

[CUT[{O.5**  }]]
[value  }

[/CLASSPLOT]

[/MISSING = {EXCLUDE **}]
{INCLUDE   }

[/CASEWISE = [tempvarlist]  [OUTLIER({2    })]]
{value}

[/SAVE = tempvar[(newname)] tempvar[(newname)]...]

[/OUTFILE = [{MODEL    }(filename)]]
{PARAMETER}

[/EXTERNAL]``````

**Default if the subcommand or keyword is omitted.

This command reads the active dataset and causes execution of any pending commands. See the topic Command Order for more information.

Syntax for the LOGISTIC REGRESSION command can be generated from the Logistic Regression dialog box.

Release History

Release 13.0

• `OUTFILE` subcommand introduced.

Release 14.0

• Modification to the method of recoding string variables.

Example

``LOGISTIC REGRESSION VARIABLES = PROMOTED WITH AGE, JOBTIME, JOBRATE.``