rocplot: Calculate and show ROC curve

Description Usage Arguments Details Value

View source: R/confuMat.R View source: R/rocplot.R

Description

Calculate and show ROC curve

ROC figure using pROC package

Usage

1
2
3
4
5
rocplot(ret, title = "ROC", file = NULL, confmat = TRUE, ci = TRUE,
  positive.name = NULL, add = FALSE, ...)

rocplot(ret, title = "ROC", file = NULL, confmat = TRUE, ci = TRUE,
  positive.name = NULL, add = FALSE, ...)

Arguments

reality

a vector of responses (two possible values)

predictor

a vector predicting the response (numeric)

decision

a vector of predicted responses (same values as response)

Details

Calculate and show ROC curve

This is a wrapper around the roc function from the pROC package. It plots the ROC curve, but additionally it also can add information on the confidence interval and a confusion matrix.

Value

rocplot invisibly returns the return value of the roc call

whatever the roc() function returns


january3/myfuncs documentation built on April 1, 2020, 4:42 a.m.