calc_fdr: Calculate the empirical false discovery rate (FDR).

Description Usage Arguments Value

View source: R/fdr.R

Description

Calculate the empirical false discovery rate (FDR) given a vector of posterior probabilities and a specified threshold.

Usage

1
calc_fdr(post_prob, threshold)

Arguments

post_prob

numeric vector of posterior probabilities.

threshold

numeric value of the posterior probability threshold at which to calculate the empirical FDR.

Value

A numeric value of the empirical false discovery rate (FDR).


kjgleason/Primo documentation built on Sept. 7, 2021, 3:58 a.m.