Generate smooth graphs for the APF and FDR estimates
Generate smooth graphs for the APF and FDR estimates
apf_plot returns a graph with Average Power Function (APF), Bayes False Discovery Rate (FDR) and APF vs. FDR. In addition, when tab = TRUE, a table containing APF, FDR, tau and gamma values for a selected subset of APF and FDR is printed.
tab: If TRUE, a table with relevant values of APF, FDR, tau and gamma is printed.
APF_inf: Sets the minimum value of APF to appear in the table when tab = TRUE.
FDR_sup: Sets the maximum value of Bayes FDR to appear in the table when tab = TRUE.
Returns
Smooth graphs for APF vs Gamma (left), FDR vs Gamma (centre) and APF vs FDR (right). Regions where FDR ≤FDR_sup and APF ≥APF_inf (if presents) are highlighted in yellow and printed in a table (if tab = TRUE) together with the relative values of gamma and tau.
Examples
data("Ex2")apf_plot(Ex2)# Ex2 is an example of output obtained# from the apf_fdr() function.
References
Quatto, P, Margaritella, N, et al. Brain networks construction using Bayes FDR and average power function. Stat Methods Med Res. Published online May 14th, 2019; DOI:10.1177/0962280219844288.