calc_fdr_multi: Calculate the empirical false discovery rate (FDR) for each...

Description Usage Arguments Details Value

View source: R/fdr.R

Description

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

Usage

1
calc_fdr_multi(post_prob, threshold, col_names = NULL, col_idxs = 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_names

character vector of column names.

col_idxs

integer vector of column indices.

Details

At least one of col_names or col_idxs 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.