nonpar.rules: Nonparametric Rules Set

Description Usage Arguments Value Examples

View source: R/TGSTFunctions.R

Description

This function gives you all possible cutoffs [l,u] for tripartite rules, by applying nonparametric search to the given data.

P(S in [l,u]) ≤ φ

Usage

1
nonpar.rules(Z, S, phi)

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.

Value

Matrix with 2 columns. Each row is a possible tripartite rule, with output on lower and upper cutoff.

Examples

1
2
3
4
5
d = Simdata
Z = d$Z # True Disease Status
S = d$S # Risk Score
phi = 0.1 #10% of patients taking viral load test
nonpar.rules( Z, S, phi)

yizhenxu/TVLT documentation built on Nov. 27, 2020, 2:37 a.m.