correct_mult_comp.RdApplies multiple comparison correction by controlling the false discovery rate (FDR) using the modified FDR procedure by Benjamini and Yekutieli (2001)
correct_mult_comp(data, var_name, threshold = 0.05)
| data | tbl. A tidy data frame with statistical test results |
|---|---|
| var_name | character (vector). Column name(s) with p-values |
| threshold | double. False discovery rate, Default: 0.05 |
tbl. The input data frame with an additional column indicating whether a p-value survived multiple comparison correction
Benjamini, Y., & Yekutieli, D. (2001). The control of the false discovery rate in multiple testing under dependency. The Annals of Statistics, 29 (4), 1165–1188.