Extract a confusion matrix from a binary glm object. An optional cutpoint can be specified, otherwise the cutpoint that maximises the Youden index is used. Returns a confusion matrix from the caret package, with the cut-off added to the output list.
1 | lr_cmat(glm_fit, cutpoint)
|
glm_fit |
an glm object with family - 'binomial' |
cutpoint |
optional cutpoint for categories responses, must be between 0 and 1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.