pwrFDR.grid | R Documentation |
pwrFDR
on a grid.
Function for evaluating pwrFDR
on a factorial design of
possible parameters.
pwrFDR.grid(effect.size, n.sample, r.1, alpha, delta, groups, N.tests,
average.power, TPX.power, lambda, type, grpj.per.grp1,
corr.struct, FDP.control.method, distopt, control)
effect.size |
A vector of effect sizes to be looped over. The effect size (mean over standard deviation) for test statistics having non-zero means. Assumed to be a constant (in magnitude) over non-zero mean test statistics. |
n.sample |
A vector of sample sizes to be looped over. The sample size is the number of experimental replicates. Required for calculation of power |
r.1 |
A vector of mixing proportions to be looped over. The mixing proportion is the proportion of simultaneous tests that are non-centrally located |
alpha |
The false discovery rate (in the BH case) or the upper bound on the probability that the FDP exceeds delta (BHFDX and Romano case) |
delta |
If the "FDP.control.method" is set to 'Romano' or 'BHFDX', then this
optional argument can be set to the exceedance thresh-hold in
defining the FDP-tp: |
groups |
The number of experimental groups to compare. Must be integral and >=1. The default value is 2. |
N.tests |
The number of simultaneous hypothesis tests. |
average.power |
The desired average power. Calculation of sample size, effect size mixing proportion or alpha requires specification of either 'average.power' or 'TPX.power'. |
TPX.power |
The desired tp-power (see |
lambda |
The tp-power threshold, required when calculating the tp-power
(see |
type |
A character string specifying, in the groups=2 case, whether the test is 'paired', 'balanced', or 'unbalanced' and in the case when groups >=3, whether the test is 'balanced' or 'unbalanced'. The default in all cases is 'balanced'. Left unspecified in the one sample (groups=1) case. |
grpj.per.grp1 |
Required when |
corr.struct |
Specifies a block correlation structure between test
statistics which is used in both the simulation routine, and in the
computations based upon asymptotic approximation, e.g. the AFDX
control and the ATPP method. Its form is specified via the following
named elements. |
FDP.control.method |
A character string specifying how the false discovery proportion (FDP) is to be
controlled. You may specify the whole word or any shortened uniquely
identifying truncation. |
distopt |
Test statistic distribution in among null and alternatively distributed sub-populations. distopt=0 gives normal (2 groups), distop=1 gives t- (2 groups) and distopt=2 gives F- (2+ groups) |
control |
Optionally, a list with components with the following
components: |
Arguments may be specified as vectors of possible values or can be set to a single constant value.
A list having two components:
conditions |
A data.frame with one column for each argument listing the distinct settings for all parameters. |
results |
A list with components objects of class |
Grant Izmirlian <izmirlian at nih dot gov>
Izmirlian G. (2020) Strong consistency and asymptotic normality for quantities related to the Benjamini-Hochberg false discovery rate procedure. Statistics and Probability Letters; 108713, <doi:10.1016/j.spl.2020.108713>
Izmirlian G. (2017) Average Power and \lambda
-power in
Multiple Testing Scenarios when the Benjamini-Hochberg False
Discovery Rate Procedure is Used. <arXiv:1801.03989>
Jung S-H. (2005) Sample size for FDR-control in microarray data analysis. Bioinformatics; 21:3097-3104.
Kluger D. M., Owen A. B. (2023) A central limit theorem for the Benjamini-Hochberg false discovery proportion under a factor model. Bernoulli; xx:xxx-xxx.
Liu P. and Hwang J-T. G. (2007) Quick calculation for sample size while controlling false discovery rate with application to microarray analysis. Bioinformatics; 23:739-746.
Lehmann E. L., Romano J. P.. Generalizations of the familywise error rate. Ann. Stat.. 2005;33(3):1138-1154.
Romano Joseph P., Shaikh Azeem M.. Stepup procedures for control of generalizations of the familywise error rate. Ann. Stat.. 2006;34(4):1850-1873.
pwrFDR.grid
controlFDP
tst <- pwrFDR.grid(effect.size=c(0.6,0.9), n.sample=c(50,60,70), r.1=0.4+0.2*(0:1),
alpha=0.05+0.05*(0:3), N.tests=1000, FDP.control.method="Auto")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.