semipar.fnr.fpr {TGST}R Documentation

Semiparametric FNR FPR of the rules

Description

This function gives you the semiparametric FNR and FPR associated with a given tripartite rule.

Usage

semipar.fnr.fpr(Z, S, l, u)

Arguments

Z

True disease status (No disease / treatment success coded as Z=0, diseased / treatment failure coded as Z=1).

S

Risk score.

l

Lower cutoff of tripartite rule.

u

Upper cutoff of tripartite rule.

Value

Matrix with 2 columns. Each row is a set of semiparametric (FNR, FPR) on an associated tripartite rule.

Examples

d = Simdata
Z = d$Z # True Disease Status
S = d$S # Risk Score
phi = 0.1 #10% of patients taking viral load test
rules = nonpar.rules( Z, S, phi)
semipar.fnr.fpr(Z,S,rules[1,1],rules[1,2])

[Package TGST version 1.0 Index]