Skip to main content

Simple Linear Regression

Simple linear regression.


  • 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 fitted values and residuals. Default: none.


Live Editor
Last updated on by Planeshifter