acc_plot: Plot Model Accuracy

Description Usage Arguments Value Examples

View source: R/acc_plot.R

Description

only supports binary logistic regression at this time

Usage

1
acc_plot(accuracy_data, y = "correct")

Arguments

accuracy_data

data generated by mcguiR::accuracy.log()

y

desired value to be plotted - could be "correct", "incorrect", or "both"

Value

a plot of accuracy at each probability threshold

Examples

1
2
3
4
5
6
## Not run: 
iris2 <- iris[stringr::str_detect(Species, "setosa", negate = T), ]
irismodel <- glm(Species ~ ., data = iris2, family = binomial)
acc_data <- accuracy(irismodel, iris2, iris2$Species, "virginica", "versicolor")
acc_plot(acc_data, y = "both")
## End(Not run)

bmcguir8/mcguiR documentation built on Jan. 7, 2021, 8:40 p.m.