Skip to main content

Multiple Linear Regression

Multiple linear regression.

Options#

  • data | object (required): object of value arrays. Default: none.
  • y | string (required): outcome variable. 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.
  • onDiagnostics | function: callback invoked with diagnostic plots. Default: none.
  • onPredict | function: callback invoked with predictions and residuals after model fitting. Default: none.

Examples#

Live Editor
Result
Last updated on by Planeshifter