bg__get_stats {M3Drop} | R Documentation

## Calculate Simulation Statistics

### Description

Given significant genes and a ground truth calculates the false discovery rate and false negative rate of the significance calls.

### Usage

    	bg__get_stats(sig, TP, ngenes)

### Arguments

`sig` | vector of gene IDs/names which were called as significant by some method.
`TP` | vector of gene IDs/names which known to be positives (ground truth).
`ngenes` | number of total genes under consideration.

### Details

False discovery rate (FDR) is the proportion of all genes considered significant which are not in the ground truth. False negative rate (FNR) is the proportion of all ground truth genes which are not considered significant.

### Value

vector of two elements: (FDR, FNR).

### Examples

    #	Calls <- c(1,3,5,8,10)
    #	Truth <- c(2,3,5,9)
    #	total=10
    #	stats <- bg__get_stats(Calls, Truth, total)

[Package M3Drop version 1.16.0 Index]