Improved `predict()` method
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()
andpredictChoices()
functions were depreciated. - Added new
fitted.logitr()
andresiduals.logitr()
methods. - Added optional
predict
argument to the mainlogitr()
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.