Skip to main content

Naive Bayes

Naive Bayes assuming that the predictors given the class membership follow a normal distribution.


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


Live Editor
Last updated on by Planeshifter