calc_fdr_col: Calculate the empirical false discovery rate (FDR) for a...

Description Usage Arguments Details Value

View source: R/fdr.R

Description

Calculate the empirical false discovery rate (FDR) of a column in a matrix of posterior probabilities given a specified threshold.

Usage

1
calc_fdr_col(post_prob, threshold, col_name = NULL, col_idx = NULL)

Arguments

post_prob

numeric matrix of posterior probabilities.

threshold

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

col_name

character string of the column name.

col_idx

integer of the column index.

Details

At least one of col_name or col_idx must be specified.

Value

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


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