myroc: Compute ROC and other performance measures for binomial model

Description Usage Arguments Details Value

View source: R/myroc.R

Description

Given a vector of true outcomes and a vector of predictions, returns a list containing performance measures.

Usage

1
myroc(ytest, rit, N = 100)

Arguments

ytest

True test outcome: vector of 0s and 1s.

rit

Predictions for the true outcome. Should be vector of continuous variables between 0 and 1.

N

Number of breakpoints where we evaluate the performance measures. Default is 100.

Details

We currently evaluate the performance measures at 100 quantiles of the predicted values; this can be adjusted via the N option.

Value

A list of performance measures and intermediate computations.

sens

Vector of sensitivity values.

spec

Vector of specificity values.

ppv

Vector of PPV values.

npv

Vector of NPV values

area

Area under ROC curve (AUC).

se

Standard error for AUC.

cutp

Cut points at which the performance measures were computed.

cutp.max

Cut point which maximizes (sens + spec) / 2.


relgam documentation built on Jan. 13, 2020, 5:06 p.m.