Description Usage Arguments Value Note
Calculate the empirical false discovery rate (FDR) given a vector of posterior probabilities and a specified threshold, adjusting for false positives identified by conditional analysis.
1 | calc_fdr_conditional(post_prob, threshold, fail_idx)
|
post_prob |
numeric vector of posterior probabilities. |
threshold |
numerical value of the posterior probability threshold at which to calculate the empirical FDR. |
fail_idx |
integer vector of the indices of observations which "failed" conditional analysis. These are the observations where the association pattern with the highest posterior probability changed after conditioning. See important Note. |
A numeric value of the empirical false discovery rate (FDR).
Note that if using collapsed posterior probability categories,
an observation where the association pattern with the highest posterior probability
changes may not indicate "failure" if the new pattern still fits the
description of the collapsed category. For example, if testing "associated
with at least 1 trait," an observation that changes from "associated with 2"
to "associated with 1" may not be considered failure. In such cases, the user
may wish fail_idx
to represent cases where the highest
association pattern no longer fits the description of the collapsed category.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.