Skip to content

Improved `predict()` method

Compare
Choose a tag to compare
@jhelvy jhelvy released this 25 Oct 17:44

This package release (v0.4.0) largely affects how predictions are calculated by introducing a new predict.logitr() method, along with other related changes:

  • The predictProbs() and predictChoices() functions were depreciated.
  • Added new fitted.logitr() and residuals.logitr() methods.
  • Added optional predict argument to the main logitr() function which controls whether predicted probabilities, fitted.values, and residuals are included in the returned object. Default setting is TRUE.
  • Changed the name of the coefficients vector in the returned object from "coef" to "coefficients" to be consistent with other packages.
  • Changed the argument name from "choice" to "outcome" to be more general.
  • Fixed bug where the returned object contained the scaled data rather than the original, unscaled data.