IRLS fit with the prediction path attached. The 0.5 threshold minimises error rate only under equal misclassification costs and roughly balanced classes; on imbalanced data it will predict the majority class everywhere.
Arguments
- X
Design matrix, n by p.
- y
Binary 0/1 response.
- newdata
Points to predict at; defaults to
X.- threshold
Probability cut-off in (0, 1).
- ...
Passed to
morie_esl_iwls().
