Opt.nonpar.rule {TGST}R Documentation

Optimal Nonparametric Rule

Description

This function gives you the optimal nonparametric tripartite rule that minimizes the min-\lambda rules.

Usage

Opt.nonpar.rule(Z, S, phi, lambda)

Arguments

Z

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

S

Risk score.

phi

Percentage of patients taking viral load test.

lambda

A user-specified weight that reflects relative loss for the two types of misdiagnoses, taking value in [0,1]. Loss=\lambda*I(FN)+(1-\lambda)*I(FP).

Value

Optimal nonparametric rule and its associated misclassification rates (FNR, FPR), optimal lambda risk, and total misclassification rate (TMR).

Examples

d = Simdata
Z = d$Z # True Disease Status
S = d$S # Risk Score
phi = 0.1 #10% of patients taking viral load test
lambda = 0.5
Opt.nonpar.rule( Z, S, phi, lambda)

[Package TGST version 1.0 Index]