tpr_nfp: Calculate accuracy rates given a set of regions or a list of...

Description Usage Arguments Value

View source: R/tpr_nfp.R

Description

Calculates tpr, number of true positives, number of false positives, and the false discovery proportion.

Usage

1
tpr_nfp(signal, discoveries = NULL, x = NULL, z = NULL, z0 = NULL)

Arguments

signal

Intervals object giving regions of true signal

discoveries

Intervals object giving discoveries

x

vector of statistics. Provide with z and z0 in lieu of discoveries

z

vector of thresholds. Should be length of x

z0

reference level for merging

Value

A list with elements:

tpr

True positive rate

nfp

Number of false positives

ntp

Number of true positives

fdp

False discover proportion nfp/(nfp + ntp)


jean997/cfdrSims documentation built on May 18, 2019, 11:43 p.m.