Skip to main content

Simple Linear Regression

Simple linear regression.

Options

  • data | object (required): object of value arrays. Default: none.
  • x | string (required): explanatory variable. Default: none.
  • y | string (required): response variable. Default: none.
  • group | (string|Factor): grouping variable. Default: none.
  • omitMissing | boolean: controls whether to omit missing values in model fitting. Default: false.
  • onDiagnostics | function: callback invoked with diagnostic plots. Default: none.
  • 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