Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

blr_confusion_matrix

Confusion matrix


Description

Confusion matrix and statistics.

Usage

blr_confusion_matrix(model, cutoff = 0.5, data = NULL, ...)

## Default S3 method:
blr_confusion_matrix(model, cutoff = 0.5, data = NULL, ...)

Arguments

model

An object of class glm.

cutoff

Cutoff for classification.

data

A tibble or a data.frame.

...

Other arguments.

Value

Confusion matix.

See Also

Examples

model <- glm(honcomp ~ female + read + science, data = hsb2,
            family = binomial(link = 'logit'))

blr_confusion_matrix(model, cutoff = 0.4)

blorr

Tools for Developing Binary Logistic Regression Models

v0.3.0
MIT + file LICENSE
Authors
Aravind Hebbali [aut, cre] (<https://orcid.org/0000-0001-9220-9669>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.