lr_cmat: Extract a confusion matrix from a binary glm object. An...

Description Usage Arguments

View source: R/main.R

Description

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.

Usage

1
lr_cmat(glm_fit, cutpoint)

Arguments

glm_fit

an glm object with family - 'binomial'

cutpoint

optional cutpoint for categories responses, must be between 0 and 1


Avery-Lisa/myReportRx documentation built on May 23, 2021, 2:30 a.m.