ACC.FUN: Calculate the accuracy measures

ACC.FUNR Documentation

Calculate the accuracy measures

Description

Calculate the (i) AUC, and (ii) TPR, PPV, and NPV at the cut-off value that leads to FPR being the given value, or FPR, PPV, and NPNV at the cut-off value that leads to TPR being the given value.

Usage

ACC.FUN(yk, ck, wgtk, type = "FPR", u0 = 0.05)

Arguments

yk

a vector of binary outcomes.

ck

a vector of risk scores.

wgtk

a vector of weights.

type

a character which could be "FPR" or "TPR", and the default value is "FPR".

u0

a numerical value for the accuracy measure specified in type, and the default value is 0.05.

Value

a vector of IPW estimates of the accuracy measures.


michellezhou2009/NCCIPW documentation built on April 25, 2022, 3:39 p.m.