Skip to main content

Logistic Regression

Logistic regression.

Options

  • data | object (required): object of value arrays. Default: none.
  • y | (string|Factor) (required): outcome variable. Default: none.
  • success | any (required): success category of y. Default: none.
  • x | (array<(string|Factor)>|string|Factor) (required): one or more predictor variables. Default: none.
  • quantitative | array<string> (required): array of variables in data that are quantitative. Default: none.
  • omitMissing | boolean: controls whether to omit missing values. Default: false.
  • intercept | boolean: controls whether to fit a model with an intercept term. Default: true.
  • onPredict | function: callback invoked with a predict function to make predictions for new data. Default: none.

Examples

Live Editor
Result
ReferenceError: Provider is not defined